diff options
author | Marc Englund <marc@vaadin.com> | 2013-06-13 16:16:06 +0300 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2013-06-14 07:27:44 +0000 |
commit | 28f72b61480d3b8877ad9e8758878d248001a5d9 (patch) | |
tree | a1f7bc14e2a71a1ee505103dee1f80b8febf6c77 /client | |
parent | 3067b2325ae081a9b0e11c43411bd886e1bfd4f8 (diff) | |
download | vaadin-framework-28f72b61480d3b8877ad9e8758878d248001a5d9.tar.gz vaadin-framework-28f72b61480d3b8877ad9e8758878d248001a5d9.zip |
Highlight on server when highlighting on client, for #12058
Change-Id: Ib109df81f4c56a7204ea01fd97162c323fcd3d3f
Diffstat (limited to 'client')
-rw-r--r-- | client/src/com/vaadin/client/debug/internal/HierarchySection.java | 6 | ||||
-rw-r--r-- | client/src/com/vaadin/client/debug/internal/Highlight.java | 15 |
2 files changed, 19 insertions, 2 deletions
diff --git a/client/src/com/vaadin/client/debug/internal/HierarchySection.java b/client/src/com/vaadin/client/debug/internal/HierarchySection.java index 0078832b87..85a9b51bab 100644 --- a/client/src/com/vaadin/client/debug/internal/HierarchySection.java +++ b/client/src/com/vaadin/client/debug/internal/HierarchySection.java @@ -168,6 +168,7 @@ public class HierarchySection implements Section { @Override public void onClick(ClickEvent event) { Highlight.showOnly(connector); + Highlight.showServerDebugInfo(connector); } }); widget = label; @@ -177,6 +178,7 @@ public class HierarchySection implements Section { protected void select(ClickEvent event) { super.select(event); Highlight.showOnly(connector); + Highlight.showServerDebugInfo(connector); } }; for (ServerConnector child : children) { @@ -417,7 +419,6 @@ public class HierarchySection implements Section { @Override public void onClick(ClickEvent event) { printState(connector); - Highlight.show(connector); } }); @@ -559,6 +560,7 @@ public class HierarchySection implements Section { private void printState(ServerConnector connector) { Highlight.showOnly(connector); + Highlight.showServerDebugInfo(connector); SharedState state = connector.getState(); @@ -681,4 +683,4 @@ public class HierarchySection implements Section { }; -}
\ No newline at end of file +} diff --git a/client/src/com/vaadin/client/debug/internal/Highlight.java b/client/src/com/vaadin/client/debug/internal/Highlight.java index f2695f58ca..3c1af445a9 100644 --- a/client/src/com/vaadin/client/debug/internal/Highlight.java +++ b/client/src/com/vaadin/client/debug/internal/Highlight.java @@ -207,4 +207,19 @@ public class Highlight { } } + /** + * Outputs debug information on the server - usually in the console of an + * IDE, with a clickable reference to the relevant code location. + * + * @since 7.1 + * @param connector + * show debug info for this connector + */ + static void showServerDebugInfo(ServerConnector connector) { + if (connector != null) { + connector.getConnection().getUIConnector() + .showServerDebugInfo(connector); + } + } + } |