Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BPMN Modeler » New Object Metadata
New Object Metadata [message #5259] Sun, 04 January 2009 18:34 Go to next message
BPMNbeginner is currently offline BPMNbeginnerFriend
Messages: 7
Registered: July 2009
Junior Member
Hello Antoine,

Thank you very much for this newsgroup and for all your answers.

I have really big problems dealing with stp-bpmn. I am now developing an
extension to this and I have the following questions. Please don't forward
me to other tutorials because I have already seen every wiki tutorial but
it didn't help me. Please be patient with me, beacuse my questions might
be very basic and thank you so much. Now to my questions:

I want to create 2 additional tabs in the properties window. The content
of the tabs depends on the type of the bpmn object and the association to
the TextAnnotations. I added a new Tab like it is explained in
http://wiki.eclipse.org/STP/BPMN_Component/STP_BPMN_Presenta tion_Hands_on_tutorial
By doing so I had the following problems:

First question:
---------------
1- This will create and show the Tab always and statically. So How can I
hide/show Tabs in the Property window depending on the current selected
bpmn object and its connections to other bpmn objects. (A same example is
already done if one selects the digram element, the Rulers & Grid tab will
be hidden/shown)

Second question:
----------------
2- I extended the Class AbstractPropertySection. I coded the content of
the PropertySection in the method createControls. But also the content is
dynamic and depends on the current selected object and its connections.
How can I get the current selected bpmn object. I need the semantic
element, e.g. the class Activity or DataObject, etc... Unfortunately I can
access the selected object only in the method setInput(IWorkbenchPart
part, ISelection selection), but not in the createControls(Composite
parent, TabbedPropertySheetPage aTabbedPropertySheetPage).

Third question:
----------------
3- How can I be notified if an other object has been selected in the
diagram. How can I be notified if e.g. an association has been deleted.?

Thank you so much for your help. I really need this as soon as possible
for my thesis.

Sam
Re: New Object Metadata [message #5381 is a reply to message #5259] Sun, 04 January 2009 19:23 Go to previous message
Eclipse UserFriend
Originally posted by: atoulme.intalio.com

BPMNbeginner wrote:
> Hello Antoine,
>
> Thank you very much for this newsgroup and for all your answers.
>
> I have really big problems dealing with stp-bpmn. I am now developing an
> extension to this and I have the following questions. Please don't
> forward me to other tutorials because I have already seen every wiki
> tutorial but it didn't help me. Please be patient with me, beacuse my
> questions might be very basic and thank you so much. Now to my questions:
>
> I want to create 2 additional tabs in the properties window. The content
> of the tabs depends on the type of the bpmn object and the association
> to the TextAnnotations. I added a new Tab like it is explained in
> http://wiki.eclipse.org/STP/BPMN_Component/STP_BPMN_Presenta tion_Hands_on_tutorial
> By doing so I had the following problems:
>
> First question:
> ---------------
> 1- This will create and show the Tab always and statically. So How can I
> hide/show Tabs in the Property window depending on the current selected
> bpmn object and its connections to other bpmn objects. (A same example
> is already done if one selects the digram element, the Rulers & Grid tab
> will be hidden/shown)
You can use a filter. The type mapper is there for that.
You should consult the description of the extension point
org.eclipse.ui.views.properties.tabbed.propertySections on this point.
>
> Second question:
> ----------------
> 2- I extended the Class AbstractPropertySection. I coded the content of
> the PropertySection in the method createControls. But also the content
> is dynamic and depends on the current selected object and its
> connections. How can I get the current selected bpmn object. I need the
> semantic element, e.g. the class Activity or DataObject, etc...
> Unfortunately I can access the selected object only in the method
> setInput(IWorkbenchPart part, ISelection selection), but not in the
> createControls(Composite parent, TabbedPropertySheetPage
> aTabbedPropertySheetPage).
Indeed, it sounds like the setInput method is called after the
createControls.

I think that was made deliberately by Anthony Hunter.

You can workaround that by using a StackLayout, and switching the top
element depending of what is set.

The real workaround is to have different sections registered for each
type of element registered.

>
> Third question:
> ----------------
> 3- How can I be notified if an other object has been selected in the
> diagram. How can I be notified if e.g. an association has been deleted.?
You can set a listener on the editor.

You can also listen to the EMF resource, not sure what you'd rather use,
I'd say both.
>
> Thank you so much for your help. I really need this as soon as possible
> for my thesis.
>
> Sam
>
>
Previous Topic:Re: Use Error intermediate event ?
Next Topic:Error in EclipseCon2008 Tutorial
Goto Forum:
  


Current Time: Thu Apr 25 19:49:51 GMT 2024

Powered by FUDForum. Page generated in 0.02882 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top