Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » plugin.xml - popupMenus - 2 objectClasses
plugin.xml - popupMenus - 2 objectClasses [message #187517] Fri, 16 May 2008 15:16 Go to next message
Eclipse UserFriend
Originally posted by: rolfes.daniel.web.de

Hi,
I added a new objectContribution to the popupMenu extension point,
specified the name of a XXX1EditPart in the objectClass attribute and
the action to perform etc.
It works fine.
Now I would like to use the exact same pop-up menu to be used for
another different XXX2EditPart. So I tried to insert a second
objectClass attribute in the same objectContribution. But it failed
because I'm only allowed to use one.
So, my question is: How to I specify 2 or more EditParts, which use the
same popup menu? I've seen an OR-Element, could that be useful?

Thanks in advance,
Daniel
Re: plugin.xml - popupMenus - 2 objectClasses [message #189264 is a reply to message #187517] Sat, 24 May 2008 10:11 Go to previous message
Eclipse UserFriend
Originally posted by: rolfes.daniel.web.de

anyone?

D. Rolfes schrieb:
> Hi,
> I added a new objectContribution to the popupMenu extension point,
> specified the name of a XXX1EditPart in the objectClass attribute and
> the action to perform etc.
> It works fine.
> Now I would like to use the exact same pop-up menu to be used for
> another different XXX2EditPart. So I tried to insert a second
> objectClass attribute in the same objectContribution. But it failed
> because I'm only allowed to use one.
> So, my question is: How to I specify 2 or more EditParts, which use the
> same popup menu? I've seen an OR-Element, could that be useful?
>
> Thanks in advance,
> Daniel
Previous Topic:Loading images into diagram editor
Next Topic:Custom ConnectionAnchor - How to set the connection points to the center of each side?
Goto Forum:
  


Current Time: Fri Apr 26 12:06:58 GMT 2024

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

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

Back to the top