summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2013-06-04 22:29:26 +0300
committerVaadin Code Review <review@vaadin.com>2013-06-05 09:19:10 +0000
commitaa99259eac14854e1e9a33fbbd429d0c5ffa9c52 (patch)
treed13f4ce84e739cc21cdb1ee139721ada556966f3 /client
parent132eee59b8914fdbf9c42a9314e3db95f2f51520 (diff)
downloadvaadin-framework-aa99259eac14854e1e9a33fbbd429d0c5ffa9c52.tar.gz
vaadin-framework-aa99259eac14854e1e9a33fbbd429d0c5ffa9c52.zip
Send connector debug (highlight) using RPC (#11536)
Change-Id: I8995e9affd371543457f16568f1245f7467e0804
Diffstat (limited to 'client')
-rw-r--r--client/src/com/vaadin/client/ApplicationConnection.java8
-rw-r--r--client/src/com/vaadin/client/ui/ui/UIConnector.java16
2 files changed, 20 insertions, 4 deletions
diff --git a/client/src/com/vaadin/client/ApplicationConnection.java b/client/src/com/vaadin/client/ApplicationConnection.java
index 2f5401a75b..4dd68cc24f 100644
--- a/client/src/com/vaadin/client/ApplicationConnection.java
+++ b/client/src/com/vaadin/client/ApplicationConnection.java
@@ -691,12 +691,12 @@ public class ApplicationConnection {
* source code.
*
* @param serverConnector
+ * @deprecated as of 7.1. Replaced by
+ * {@link UIConnector#showServerDebugInfo(ServerConnector)}
*/
+ @Deprecated
void highlightConnector(ServerConnector serverConnector) {
- String params = getRepaintAllParameters() + "&"
- + ApplicationConstants.PARAM_HIGHLIGHT_CONNECTOR + "="
- + serverConnector.getConnectorId();
- makeUidlRequest("", params);
+ getUIConnector().showServerDebugInfo(serverConnector);
}
/**
diff --git a/client/src/com/vaadin/client/ui/ui/UIConnector.java b/client/src/com/vaadin/client/ui/ui/UIConnector.java
index bba9252d47..38c26a77e6 100644
--- a/client/src/com/vaadin/client/ui/ui/UIConnector.java
+++ b/client/src/com/vaadin/client/ui/ui/UIConnector.java
@@ -50,6 +50,7 @@ import com.vaadin.client.ConnectorHierarchyChangeEvent;
import com.vaadin.client.ConnectorMap;
import com.vaadin.client.Focusable;
import com.vaadin.client.Paintable;
+import com.vaadin.client.ServerConnector;
import com.vaadin.client.UIDL;
import com.vaadin.client.VConsole;
import com.vaadin.client.communication.StateChangeEvent;
@@ -68,6 +69,7 @@ import com.vaadin.shared.communication.MethodInvocation;
import com.vaadin.shared.ui.ComponentStateUtil;
import com.vaadin.shared.ui.Connect;
import com.vaadin.shared.ui.Connect.LoadStyle;
+import com.vaadin.shared.ui.ui.DebugWindowServerRpc;
import com.vaadin.shared.ui.ui.PageClientRpc;
import com.vaadin.shared.ui.ui.PageState;
import com.vaadin.shared.ui.ui.ScrollClientRpc;
@@ -659,4 +661,18 @@ public class UIConnector extends AbstractSingleComponentContainerConnector
.getName(), "poll"));
}
}
+
+ /**
+ * Sends a request to the server to print details to console that will help
+ * the developer to locate the corresponding server-side connector in the
+ * source code.
+ *
+ * @since 7.1
+ * @param serverConnector
+ * the connector to locate
+ */
+ public void showServerDebugInfo(ServerConnector serverConnector) {
+ getRpcProxy(DebugWindowServerRpc.class).showServerDebugInfo(
+ serverConnector);
+ }
}