From 46d0e0c60077665f3cf1f80503bd30313d7fa61e Mon Sep 17 00:00:00 2001 From: Teemu Suo-Anttila Date: Tue, 12 May 2015 11:49:50 +0300 Subject: [PATCH] Fix Grid and Escalator accessing of SubPartArguments This patch removes an extra static method from Escalator and makes Grid and Escalator call SubPartArguments create(String) method directly. Change-Id: I6825bc89540c6183a8fddeded8133fb7ef8e23f1 --- client/src/com/vaadin/client/widgets/Escalator.java | 6 +----- client/src/com/vaadin/client/widgets/Grid.java | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/client/src/com/vaadin/client/widgets/Escalator.java b/client/src/com/vaadin/client/widgets/Escalator.java index 16d1a9f5c2..a196c7f7d7 100644 --- a/client/src/com/vaadin/client/widgets/Escalator.java +++ b/client/src/com/vaadin/client/widgets/Escalator.java @@ -6653,7 +6653,7 @@ public class Escalator extends Widget implements RequiresResize, @Override @SuppressWarnings("deprecation") public com.google.gwt.user.client.Element getSubPartElement(String subPart) { - SubPartArguments args = parseSubPartArguments(subPart); + SubPartArguments args = SubPartArguments.create(subPart); Element tableStructureElement = getSubPartElementTableStructure(args); if (tableStructureElement != null) { @@ -6816,8 +6816,4 @@ public class Escalator extends Widget implements RequiresResize, private String getSubPartNameSpacer(Element subElement) { return body.spacerContainer.getSubPartName(subElement); } - - public static SubPartArguments parseSubPartArguments(String subPart) { - return SubPartArguments.create(subPart); - } } diff --git a/client/src/com/vaadin/client/widgets/Grid.java b/client/src/com/vaadin/client/widgets/Grid.java index 51f44edd8a..92827c47f0 100644 --- a/client/src/com/vaadin/client/widgets/Grid.java +++ b/client/src/com/vaadin/client/widgets/Grid.java @@ -6513,7 +6513,7 @@ public class Grid extends ResizeComposite implements return DOM.asOld(escalatorElement); } - SubPartArguments args = Escalator.parseSubPartArguments(subPart); + SubPartArguments args = SubPartArguments.create(subPart); Element editor = getSubPartElementEditor(args); if (editor != null) { -- 2.39.5