| Extend Annotation [message #1018749] |
Thu, 14 March 2013 08:06  |
Mauro P. Messages: 13 Registered: April 2011 |
Junior Member |
|
|
Hi all,
I'm new to the bpmn modeler, and i've got some question.
I need to extend the bpmn modeler to support custom "Annotation".
I've followed the tutorial videos provided by the docuemntation page of the bpmn2.0 modeler site. The video explain how is possible to add custom task.
I tryed to replicate it adpating to my needs, but unfortunately i couldn't get it work.
The extension point "org.eclipse.bpmn2.modeleler.runtime" has a specific "customTask" subnode, and i couldn't add my custom "Annotation".
I've also looked at the modeler.runtime.example plugin but it hasn't help me much more.
How I can achieve my objective? Can someone help me?
Tanks in advance
Mauro.
|
|
|
| Re: Extend Annotation [message #1018989 is a reply to message #1018749] |
Thu, 14 March 2013 17:20   |
|
Hi Mauro,
The <customTask> extension is somewhat of a misnomer, because you can actually use it to extend any BPMN2 model element that subclasses BaseElement. All you need to do is change the "type" attribute to something like type="TextAnnotation". I have a working example that does exactly this and even changes the Text Annotation graphic from its default "[" to something that looks like a Task with custom image decorators. I will try to add this to the examples branch in the Git repository, when I get back from vacation next week.
Cheers!
Bob
|
|
|
|
| Re: Extend Annotation [message #1019719 is a reply to message #1019032] |
Sat, 16 March 2013 09:03   |
|
Hi Mauro,
Just realized the example I was thinking of is already available in the org.eclipse.bpmn2.modeler.runtime.example plugin. Have a look at the plugin.xml in that project - you'll see that the <customTask> extension does specify type="TextAnnotation".
Let me know if you need help!
Bob
|
|
|
|
| Re: Extend Annotation [message #1043288 is a reply to message #1022686] |
Wed, 17 April 2013 10:07  |
|
Wow, almost a month and I haven't replied to your question yet - shame on me! 
In general, to disable a property tab, the Property Section's appliesTo(IWorkbenchPart,ISelection) method should return "false". You can do this by overriding the default property section and providing your own appliesTo().
HTH,
Bob
|
|
|
Powered by
FUDForum. Page generated in 0.01929 seconds