Author: koen.aers(a)jboss.com
Date: 2009-01-29 15:59:24 -0500 (Thu, 29 Jan 2009)
New Revision: 13389
Added:
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/editpart/
Modified:
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/editor/JpdlEditor.java
Log:
make extending possible on the level of the editpart/editpartfactory
Modified:
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/editor/JpdlEditor.java
===================================================================
---
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/editor/JpdlEditor.java 2009-01-29
20:57:45 UTC (rev 13388)
+++
trunk/jbpm/plugins/org.jboss.tools.flow.jpdl4/src/org/jboss/tools/flow/jpdl4/editor/JpdlEditor.java 2009-01-29
20:59:24 UTC (rev 13389)
@@ -4,13 +4,11 @@
import java.io.InputStream;
import java.io.OutputStream;
-import org.eclipse.gef.EditPartFactory;
import org.eclipse.gef.commands.CommandStack;
import org.eclipse.gef.palette.PaletteRoot;
import org.eclipse.ui.views.properties.IPropertySheetPage;
import org.eclipse.ui.views.properties.tabbed.ITabbedPropertySheetPageContributor;
import org.jboss.tools.flow.common.editor.GenericModelEditor;
-import org.jboss.tools.flow.common.editpart.DefaultEditPartFactory;
import org.jboss.tools.flow.common.registry.ElementRegistry;
import org.jboss.tools.flow.common.wrapper.Wrapper;
import org.jboss.tools.flow.jpdl4.properties.JpdlPropertySheetPage;
@@ -19,13 +17,11 @@
public static String ID = "org.jboss.tools.flow.jpdl4.editor";
- protected EditPartFactory createEditPartFactory() {
- return new DefaultEditPartFactory();
- }
-
protected PaletteRoot createPalette() {
return new JpdlPaletteFactory().createPalette();
}
+
+
protected Object createModel() {
return
ElementRegistry.createWrapper("org.jboss.tools.flow.jpdl4.process");
Show replies by date