|
|
@@ -178,22 +178,15 @@ public abstract class UIProvider implements Serializable { |
|
|
|
return new WidgetsetInfoImpl(uiWidgetset.value()); |
|
|
|
} |
|
|
|
|
|
|
|
// Second case: We might have an init parameter, use that |
|
|
|
String initParameterWidgetSet = event.getService() |
|
|
|
.getDeploymentConfiguration().getWidgetset(null); |
|
|
|
if (initParameterWidgetSet != null) { |
|
|
|
return new WidgetsetInfoImpl(initParameterWidgetSet); |
|
|
|
} |
|
|
|
|
|
|
|
// Find the class AppWidgetset in the default package if one exists |
|
|
|
WidgetsetInfo info = getWidgetsetClassInfo(); |
|
|
|
|
|
|
|
// Third case: we have a generated class called APP_WIDGETSET_NAME |
|
|
|
// Second case: we have a generated class called APP_WIDGETSET_NAME |
|
|
|
if (info != null) { |
|
|
|
return info; |
|
|
|
} |
|
|
|
|
|
|
|
// Fourth case: we have an AppWidgetset.gwt.xml file |
|
|
|
// third case: we have an AppWidgetset.gwt.xml file |
|
|
|
else { |
|
|
|
InputStream resource = event.getUIClass() |
|
|
|
.getResourceAsStream("/" + APP_WIDGETSET_NAME + ".gwt.xml"); |