has.addDoubleClickHandler(new DoubleClickHandler() {
@Override
public void onDoubleClick(DoubleClickEvent event) {
- printState(connector);
+ printState(connector, true);
}
});
}
errorDetails.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
- printState(connector);
+ printState(connector, true);
}
});
public void onClick(ClickEvent event) {
if (event.getNativeEvent().getEventTarget().cast() == errorNode
.getElement().getChild(1).cast()) {
- printState(connector);
+ printState(connector, true);
}
}
}, ClickEvent.getType());
}
}
- 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();
RootPanel.get(), eventTarget);
}
if (connector != null) {
- printState(connector);
+ printState(connector, false);
event.cancel();
event.consume();
event.getNativeEvent().stopPropagation();
}
if (connector != null) {
- printState(connector);
+ printState(connector, true);
return;
}
}