true
false
126127128129130131132133134135136
if(att==null){ att = new GSVAttribute(entity, this.selectedAttribute().name()); entity.addAttribute(att); } att.removeRule(currentRule); model.saveModel(); showAttribute = true; showEntity = false; showInspector = false; newFlag = false;
150151152153154155156157158159160
if(att==null){ att = new GSVAttribute(entity, this.selectedAttribute().name()); entity.addAttribute(att); } att.removeRule(this.selectedRule()); model.saveModel(); showAttribute = true; showEntity = false; showInspector = false; newFlag = false;
213214215216217218219220221222223
}else{ app.config().removeRule(selectedRule()); } if(newFlag) att.addRule(this.selectedRule()); model.saveModel(); app.saveConfiguration(); showAttribute = true; showEntity = false; showInspector = false; newFlag = false;
425426427428429430431432433434435
rules.removeObjectAtIndex(index); rules.insertObjectAtIndex(currentRule, index+1); } GSVModel model = session.model(); model.saveModel(); return null; } public WOComponent demoteRule(){ NSMutableArray rules = (NSMutableArray)this.rules();
443444445446447448449450451452453
rules.removeObjectAtIndex(index); rules.insertObjectAtIndex(currentRule, index-1); } GSVModel model = session.model(); model.saveModel(); return null; } }