interaction with editor [message #471204] |
Fri, 29 June 2007 13:37 |
Eclipse User |
|
|
|
Originally posted by: nickkirtley.gmail.com
hi,
could someone tell me where I can edit/ extend the menus of the editors?
for example, i want to add a menu item when I right click a component port
and (when it is working in component diagram) component prov/required
interface.
thx
nick
|
|
|
|
Re: interaction with editor [message #471221 is a reply to message #471206] |
Wed, 04 July 2007 13:29 |
Eclipse User |
|
|
|
Originally posted by: nickkirtley.gmail.com
Hi Nick,
We implemented several custom actions for Class Diagram editor. You could
have a look at their implementation, it is quite clear. Implementation is
located in org.eclipse.uml2.diagram.clazz.action package, and extension
point
org.eclipse.gmf.runtime.common.ui.services.action.contributi onItemProviders
is registered in plugin.xml.
Good luck,
Tatiana.
Hi Tatiana ,
I pretty much understand the changes made in the class diagram editor to
allow for menu's with extra options based on which object is selected.
However, I still don't understand how eclipse knows when to show which
menu (and thus class). For example, if I right click on an association I
get the association options. How does eclipse know that it should then go
to Assocationxxxx.java. I can see that it is defined in extension of
plugin.xml.
I'd like to know because I'd also like to select port for example and have
a specific menu.
thx
Nick
|
|
|
|
|
Re: interaction with editor [message #602154 is a reply to message #471206] |
Wed, 04 July 2007 13:29 |
Eclipse User |
|
|
|
Originally posted by: nickkirtley.gmail.com
Hi Nick,
We implemented several custom actions for Class Diagram editor. You could
have a look at their implementation, it is quite clear. Implementation is
located in org.eclipse.uml2.diagram.clazz.action package, and extension
point
org.eclipse.gmf.runtime.common.ui.services.action.contributi onItemProviders
is registered in plugin.xml.
Good luck,
Tatiana.
Hi Tatiana ,
I pretty much understand the changes made in the class diagram editor to
allow for menu's with extra options based on which object is selected.
However, I still don't understand how eclipse knows when to show which
menu (and thus class). For example, if I right click on an association I
get the association options. How does eclipse know that it should then go
to Assocationxxxx.java. I can see that it is defined in extension of
plugin.xml.
I'd like to know because I'd also like to select port for example and have
a specific menu.
thx
Nick
|
|
|
|
Powered by
FUDForum. Page generated in 5.03903 seconds