return false;
children[i].dispose();
}
TreeItem item = tree.getSelection()[0];
TreeData data = (TreeData) item.getData();
if(data == null)
return false;
//System.out.println("test: " + item.getText());
_dom.setInit(true);
switch (data.getType()) {
case Editor.ACTIONS:
new sos.scheduler.editor.actions.forms.ActionsListForm(c, SWT.NONE, _dom, data.getElement(), _gui);
break;
case Editor.ACTION:
new sos.scheduler.editor.actions.forms.ActionForm(c, SWT.NONE, _dom, data.getElement(), _gui);
break;
case Editor.EVENTS:
new EventsForm(c, SWT.NONE, _dom, data.getElement(), _gui);
break;
case Editor.EVENT_GROUP:
new EventForm(c, SWT.NONE, _dom, data.getElement(), Editor.EVENT_GROUP);
break;
case Editor.ADD_EVENT_GROUP:
new EventForm(c, SWT.NONE, _dom, data.getElement(), Editor.ADD_EVENT_GROUP);
break;
case Editor.REMOVE_EVENT_GROUP:
new EventForm(c, SWT.NONE, _dom, data.getElement(), Editor.REMOVE_EVENT_GROUP);
break;
case Editor.ACTION_COMMANDS:
//new JobCommandsForm(c, SWT.NONE, _dom, data.getElement(), _gui, this);
new JobCommandsForm(c, SWT.NONE, _dom, data.getElement(), _gui);
break;
case Editor.JOB_COMMAND_EXIT_CODES:
new sos.scheduler.editor.actions.forms.JobCommandNamesForm(c, SWT.NONE, _dom, data.getElement(), _gui);
break;
case Editor.JOB_COMMAND:
new JobCommandForm(c, SWT.NONE, _dom, data.getElement(), _gui);
break;
case Editor.PARAMETER:
//int type = getType(data.getElement());
new sos.scheduler.editor.actions.forms.ParameterForm(c, SWT.NONE, _dom, data.getElement(), _gui, Editor.JOB_COMMANDS);
break;
default:
System.out.println("no form found for " + item.getText());
}