|
Re: Extend Annotation [message #1018989 is a reply to message #1018749] |
Thu, 14 March 2013 21: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 13: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 14: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.03113 seconds