Пример #1
0
 public void setRuleFileName(String value) {
   fileName = value;
   model = new ERD2WRuleEditorModel(new File(fileName));
   group = new WODisplayGroup();
   group.setObjectArray(model.publicRules());
   group.setDefaultStringMatchFormat("*%@*");
 }
Пример #2
0
 public NSArray modelPages() {
   Enumeration e = model.publicDynamicPages().elements();
   NSMutableArray arr = new NSMutableArray();
   while (e.hasMoreElements()) {
     arr.addObject(fixString(e.nextElement()));
   }
   return arr;
 }
Пример #3
0
 public NSArray modelTasks() {
   Enumeration e = model.publicTasks();
   NSMutableArray arr = new NSMutableArray();
   while (e.hasMoreElements()) arr.addObject(fixString(e.nextElement()));
   return arr;
 }
Пример #4
0
 public NSArray modelKeys() {
   Class c = ERXArrayUtilities.class;
   NSArray keys = (NSArray) model.publicRules().valueForKey("rhsKeyPath");
   keys = (NSArray) (new NSSet(keys).allObjects().valueForKey("@sort.toString"));
   return keys;
 }
Пример #5
0
 public ERD2WRuleEditorModel(File file) {
   super(new EOKeyValueUnarchiver(ERD2WRuleEditorModel._dictionaryFromFile(file)));
 }