From bf8836bb561e834b8a58bc5075b2d1732217a5d6 Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Fri, 9 Jan 2015 14:34:45 +0200 Subject: Separate pure client side util methods to a new class (#15553, #15544) * Deprecated old methods in Util for backwards compatibility Change-Id: I9de5e6b930d9f2c0268967dc7b1cf465e6310280 --- .../vaadin/tests/widgetset/client/BasicExtensionTestConnector.java | 6 +++--- uitest/src/com/vaadin/tests/widgetset/client/CustomUIConnector.java | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'uitest') diff --git a/uitest/src/com/vaadin/tests/widgetset/client/BasicExtensionTestConnector.java b/uitest/src/com/vaadin/tests/widgetset/client/BasicExtensionTestConnector.java index 6bd2abec60..18852f51c7 100644 --- a/uitest/src/com/vaadin/tests/widgetset/client/BasicExtensionTestConnector.java +++ b/uitest/src/com/vaadin/tests/widgetset/client/BasicExtensionTestConnector.java @@ -19,7 +19,7 @@ package com.vaadin.tests.widgetset.client; import com.google.gwt.dom.client.DivElement; import com.google.gwt.dom.client.Document; import com.vaadin.client.ServerConnector; -import com.vaadin.client.Util; +import com.vaadin.client.WidgetUtil; import com.vaadin.client.extensions.AbstractExtensionConnector; import com.vaadin.shared.ui.Connect; import com.vaadin.tests.extensions.BasicExtension; @@ -35,8 +35,8 @@ public class BasicExtensionTestConnector extends AbstractExtensionConnector { } private void appendMessage(String action) { - String message = Util.getSimpleName(this) + action - + Util.getSimpleName(target); + String message = WidgetUtil.getSimpleName(this) + action + + WidgetUtil.getSimpleName(target); DivElement element = Document.get().createDivElement(); element.setInnerText(message); diff --git a/uitest/src/com/vaadin/tests/widgetset/client/CustomUIConnector.java b/uitest/src/com/vaadin/tests/widgetset/client/CustomUIConnector.java index b43da8e27e..a6d9291873 100644 --- a/uitest/src/com/vaadin/tests/widgetset/client/CustomUIConnector.java +++ b/uitest/src/com/vaadin/tests/widgetset/client/CustomUIConnector.java @@ -18,7 +18,7 @@ package com.vaadin.tests.widgetset.client; import com.google.gwt.dom.client.Document; import com.google.gwt.dom.client.SpanElement; -import com.vaadin.client.Util; +import com.vaadin.client.WidgetUtil; import com.vaadin.client.ui.ui.UIConnector; import com.vaadin.shared.ui.Connect; import com.vaadin.ui.UI; @@ -33,7 +33,7 @@ public class CustomUIConnector extends UIConnector { public void test() { SpanElement span = Document.get().createSpanElement(); span.setInnerText("This is the " - + Util.getSimpleName(CustomUIConnector.this)); + + WidgetUtil.getSimpleName(CustomUIConnector.this)); Document.get().getBody().insertFirst(span); } }); -- cgit v1.2.3