Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Custom PopUp Menu
Custom PopUp Menu [message #134841] Tue, 12 June 2007 05:00 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
>
Previous Topic:Implemeting Delete action
Next Topic:when combining gmfmap model, there is no node and link ,why
Goto Forum:
  


Current Time: Tue Jul 22 02:37:41 EDT 2025

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

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

Back to the top