Custom PopUp Menu [message #134841] |
Tue, 12 June 2007 05:00  |
Eclipse User |
|
|
|
Hi All,
I want to show a Pop up menu whose contents shall be dynamic, and the pop
up menu would appear as soon as i drop a connection from one figure on to
another,
just as the way it is done in BPMN example. But the problem with BPMN pop
up menu is , its kind of static , the contents are pre-specified in the
Plugin.xml , whereas in my case the pop up menu would be populated from a
list that i will get from the model.
Any Pointers in this direction?
Please show me a way out... (there is a class called Popupmenu in gmf but
i m not very sure how to utilize it.)
Thanks in advance,
Arpit
|
|
|
Re: Custom PopUp Menu [message #135667 is a reply to message #134841] |
Wed, 13 June 2007 09:48  |
Eclipse User |
|
|
|
Arpit,
Showing a popup menu whose contents are dynamic is not a GMF specific
task. The PopupMenu and PopupMenuCommand classes in GMF were created
because in GMF we were commonly creating a popup menu from which the
user can choose one item. One such case in GMF that uses this, is when
you create a polygon from the geoshapes palette -- the popup menu asks
which type of geoshape to create. If you want something similar to
this, then you can probably reuse these classes.
Regards,
Cherie
Arpit Khandelwal wrote:
> Hi All,
>
> I want to show a Pop up menu whose contents shall be dynamic, and the
> pop up menu would appear as soon as i drop a connection from one figure
> on to another,
> just as the way it is done in BPMN example. But the problem with BPMN
> pop up menu is , its kind of static , the contents are pre-specified in
> the Plugin.xml , whereas in my case the pop up menu would be populated
> from a list that i will get from the model.
>
> Any Pointers in this direction?
>
> Please show me a way out... (there is a class called Popupmenu in gmf
> but i m not very sure how to utilize it.)
>
> Thanks in advance,
> Arpit
>
|
|
|
Powered by
FUDForum. Page generated in 0.04573 seconds