if (basePath == null) {
return null;
}
- String simpleName = w.getClass().getSimpleName();
+ String simpleName = Util.getSimpleName(w);
/*
* Check if the parent implements Iterable. At least VPopupView does not
return basePath + PARENTCHILD_SEPARATOR + simpleName + "["
+ pos + "]";
}
- String simpleName2 = child.getClass().getSimpleName();
+ String simpleName2 = Util.getSimpleName(child);
if (simpleName.equals(simpleName2)) {
pos++;
}
// the same type before it
int nextIndex = 0;
for (Widget child : layout) {
- boolean matchingType = nextWidgetClassName.equals(child
- .getClass().getSimpleName());
+ boolean matchingType = nextWidgetClassName.equals(Util
+ .getSimpleName(child));
if (matchingType && widgetPosition == 0) {
// This is the n:th child that we looked for
break;
while (iterator.hasNext()) {
Widget child = iterator.next();
- String simpleName2 = child.getClass().getSimpleName();
+ String simpleName2 = Util.getSimpleName(child);
if (!widgetClassName.equals(simpleName2)
&& child instanceof Slot) {
* directly checking the stuff inside the slot
*/
child = ((Slot) child).getWidget();
- simpleName2 = child.getClass().getSimpleName();
+ simpleName2 = Util.getSimpleName(child);
}
if (widgetClassName.equals(simpleName2)) {
// If the server-side class name didn't match, fall back to testing for
// the explicit widget name
- String widget = connector.getWidget().getClass().getSimpleName();
+ String widget = Util.getSimpleName(connector.getWidget());
return widgetName.equals(widget)
|| widgetName.equals(widget + ".class");