public WOComponent addRule() { ERD2WExtendedRule rule = new ERD2WExtendedRule(); rule.setAuthor(50); rule.setRhs(new Assignment("test", null)); group.insertObjectAtIndex(rule, 0); setSelectedRule(rule); return null; }
public WOComponent cloneRule() { currentRule = currentRule.cloneRule(); group.insertObjectAtIndex(currentRule, 0); setSelectedRule(currentRule); return null; }