protected PaletteRoot createPalette() {
return RuleFlowPaletteFactory.createPalette();
}
protected Object createModel() {
RuleFlowProcessWrapper result = new RuleFlowProcessWrapper();
StartNodeWrapper start = new StartNodeWrapper();
start.setConstraint(new Rectangle(100, 100, -1, -1));
result.addElement(start);
start.setParent(result);
IFile file = ((IFileEditorInput)getEditorInput()).getFile();
String name = file.getName();
result.setName(name.substring(0, name.length() - 5));
result.setId("com.sample.process");
return result;
}