I am trying to do the same task, but could not find any documentation. Did you find anything about this ? Please let me know.
I haven't found out anything yet I'm afraid. However if and when I do, I will let you know
Hi Paul and Sunil,
Extending the designer is not really easy at the moment. There are a couple of extension points that allow you to do these kinds of things, but they are not documented and will probably change in the future. Have a look at the plugin.xml file of the org.jbpm.gd.jpdl.ui project.
You will find the 'editPolicies' and 'graphElements' extension points. You can see how they are used in the following excerpts:
<graphElement name="state" contributor="org.jbpm.ui.contributor.StateContributor"> <entry category="org.jbpm.palette.1.BasicNodeTools" id="org.jbpm.ui.palette.2.State" label="State" tooltip="Creates a State node" type="node"/> </graphElement>
<editPolicy id="org.jbpm.ui.NodeComponentEditPolicy" part="org.jbpm.ui.part.graph.NodeGraphicalEditPart" policy="org.jbpm.ui.policy.NodeComponentEditPolicy" role="ComponentEditPolicy"/>
Certainly the use of the 'editPolicy' extension point (which serves to modify and customize the way graphical objects react to user input) requires a fair amount of GEF knowledge.
Hopefully this helps.