summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorMarc Englund <marc@vaadin.com>2013-06-14 14:55:38 +0300
committerMarc Englund <marc@vaadin.com>2013-06-14 14:55:38 +0300
commit2d54adfee21a5d76b42246df4d6a62bcd20f9486 (patch)
treecb42e14a7ae3391e645e2de394bf25fefef78577 /client
parent8c4800a6a1cd735046085ba56acb3d50283eb42c (diff)
downloadvaadin-framework-2d54adfee21a5d76b42246df4d6a62bcd20f9486.tar.gz
vaadin-framework-2d54adfee21a5d76b42246df4d6a62bcd20f9486.zip
Highlight on server was still spamming in one instance, for #12058
Change-Id: Ic704c86913ed0ddd30c15b1de0debfc0f7ee8bf7
Diffstat (limited to 'client')
-rw-r--r--client/src/com/vaadin/client/debug/internal/HierarchySection.java16
1 files changed, 9 insertions, 7 deletions
diff --git a/client/src/com/vaadin/client/debug/internal/HierarchySection.java b/client/src/com/vaadin/client/debug/internal/HierarchySection.java
index 85a9b51bab..90c9086d7d 100644
--- a/client/src/com/vaadin/client/debug/internal/HierarchySection.java
+++ b/client/src/com/vaadin/client/debug/internal/HierarchySection.java
@@ -192,7 +192,7 @@ public class HierarchySection implements Section {
has.addDoubleClickHandler(new DoubleClickHandler() {
@Override
public void onDoubleClick(DoubleClickEvent event) {
- printState(connector);
+ printState(connector, true);
}
});
}
@@ -418,7 +418,7 @@ public class HierarchySection implements Section {
errorDetails.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
- printState(connector);
+ printState(connector, true);
}
});
@@ -469,7 +469,7 @@ public class HierarchySection implements Section {
public void onClick(ClickEvent event) {
if (event.getNativeEvent().getEventTarget().cast() == errorNode
.getElement().getChild(1).cast()) {
- printState(connector);
+ printState(connector, true);
}
}
}, ClickEvent.getType());
@@ -558,9 +558,11 @@ public class HierarchySection implements Section {
}
}
- private void printState(ServerConnector connector) {
+ private void printState(ServerConnector connector, boolean serverDebug) {
Highlight.showOnly(connector);
- Highlight.showServerDebugInfo(connector);
+ if (serverDebug) {
+ Highlight.showServerDebugInfo(connector);
+ }
SharedState state = connector.getState();
@@ -645,7 +647,7 @@ public class HierarchySection implements Section {
RootPanel.get(), eventTarget);
}
if (connector != null) {
- printState(connector);
+ printState(connector, false);
event.cancel();
event.consume();
event.getNativeEvent().stopPropagation();
@@ -673,7 +675,7 @@ public class HierarchySection implements Section {
}
if (connector != null) {
- printState(connector);
+ printState(connector, true);
return;
}
}