use of org.eclipse.titan.common.parsers.cfg.indices.GroupSectionHandler in project titan.EclipsePlug-ins by eclipse.
the class GroupsSubPage method createNewGroup.
private Group createNewGroup() {
if (groupSectionHandler == null) {
return null;
}
final Group newGroup = new GroupSectionHandler.Group();
final ParseTree root = new ParserRuleContext();
newGroup.setRoot(root);
final ParseTree groupName = new AddedParseTree("group_name");
final ParseTree item = new AddedParseTree("item");
newGroup.setGroupName(groupName);
newGroup.setGroupItems(new ArrayList<GroupItem>());
newGroup.getGroupItems().add(new GroupSectionHandler.GroupItem(item));
ConfigTreeNodeUtilities.addChild(root, ConfigTreeNodeUtilities.createHiddenTokenNode("\n"));
ConfigTreeNodeUtilities.addChild(root, groupName);
ConfigTreeNodeUtilities.addChild(root, new AddedParseTree(" := "));
ConfigTreeNodeUtilities.addChild(root, item);
return newGroup;
}
Aggregations