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