Esempio n. 1
0
 private static void checkForDefaultInstances(Widget w) {
   for (DefaultInstance di : w.getDefaultInstances()) {
     if (!defaultExists(di)) {
       WidgetInstance.createFromDefault(di);
     }
   }
 }
Esempio n. 2
0
 public static VirtualFile findDefaultInstanceDefs(Widget widget) {
   String path = widgetPath(widget.packageName()) + defaultInstanceDefs;
   return VirtualFile.search(Play.javaPath, path);
 }
Esempio n. 3
0
 public static VirtualFile findJS(Widget widget) {
   return findJS(widget.packageName());
 }
Esempio n. 4
0
 public static SortedSet<String> getAllWidgetNames() {
   SortedSet<String> names = new TreeSet<String>();
   for (Widget w : getAllWidgets()) names.add(w.fullName());
   return names;
 }
Esempio n. 5
0
 public void add(String widgetName) throws InvalidWidgetException {
   Widget w = getWidget(widgetName);
   widgets.put(w.fullName(), w);
 }
Esempio n. 6
0
 public static String widgetPath(Widget w) {
   return (basePath + w.packageName() + ".").replace(".", File.separator);
 }