Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » uml editor (add menu)
uml editor (add menu) [message #472930] Wed, 23 May 2007 01:20 Go to next message
charfi asma is currently offline charfi asmaFriend
Messages: 78
Registered: July 2009
Member
hi,
I want to add a new sub-menu to the UML Editor.
I create a popup menu plugin and I have now my new sub-menu when I right
click to any UML object,but I want to find my new sub-menu when I click on
UML Editor
how could I do it?
thank you
Re: uml editor (add menu) [message #472932 is a reply to message #472930] Tue, 22 May 2007 21:57 Go to previous messageGo to next message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Charfi,

Have a look at the UML examples to see how those menus are populated.

Regards,

- James.

"charfi asma" <asma@charfi.com> wrote in message
news:f2v58v$7dc$1@build.eclipse.org...
> hi,
> I want to add a new sub-menu to the UML Editor.
> I create a popup menu plugin and I have now my new sub-menu when I right
> click to any UML object,but I want to find my new sub-menu when I click
on
> UML Editor
> how could I do it?
> thank you
>
>
Re: uml editor (add menu) [message #472976 is a reply to message #472932] Wed, 23 May 2007 13:21 Go to previous messageGo to next message
Kenn Hussey is currently offline Kenn HusseyFriend
Messages: 1620
Registered: July 2009
Senior Member
Specifically, classes in org.eclipse.uml2.uml.editor.actions and
org.eclipse.uml2.examples.uml.ui.actions, along with the associated plug-in
manifests, should be of interest.

Kenn

"James Bruck" <jbruck@ca.ibm.com> wrote in message
news:f2vovh$gee$2@build.eclipse.org...
> Hi Charfi,
>
> Have a look at the UML examples to see how those menus are populated.
>
> Regards,
>
> - James.
>
> "charfi asma" <asma@charfi.com> wrote in message
> news:f2v58v$7dc$1@build.eclipse.org...
>> hi,
>> I want to add a new sub-menu to the UML Editor.
>> I create a popup menu plugin and I have now my new sub-menu when I right
>> click to any UML object,but I want to find my new sub-menu when I click
> on
>> UML Editor
>> how could I do it?
>> thank you
>>
>>
>
>
Re: uml editor (add menu) [message #472987 is a reply to message #472976] Thu, 24 May 2007 20:21 Go to previous messageGo to next message
charfi asma is currently offline charfi asmaFriend
Messages: 78
Registered: July 2009
Member
Hi,
thank your for your help it works now!
I have one othet question:
How could I know the type of my right clicked UML Object ?
I want to get this type, and if it is a class I want to get the applied
steryotype.
thanks a lot!
asma

"Kenn Hussey" <khussey@ca.ibm.com> a
Re: uml editor (add menu) [message #473004 is a reply to message #472987] Fri, 25 May 2007 20:02 Go to previous messageGo to next message
Kenn Hussey is currently offline Kenn HusseyFriend
Messages: 1620
Registered: July 2009
Senior Member
asma,

The example actions we pointed you to should show how to get the current
selection and determine what kind of object is selected. The code for a
pop-up menu action should be similar, i.e. obtain the current selection and
test the selected element(s) against specific types...

Kenn

"charfi asma" <asma@charfi.com> wrote in message
news:f33sfm$1po$1@build.eclipse.org...
> Hi,
> thank your for your help it works now!
> I have one othet question:
> How could I know the type of my right clicked UML Object ?
> I want to get this type, and if it is a class I want to get the applied
> steryotype.
> thanks a lot!
> asma
>
> "Kenn Hussey" <khussey@ca.ibm.com> a
Re: uml editor (add menu) [message #473009 is a reply to message #473004] Sun, 27 May 2007 01:50 Go to previous message
charfi asma is currently offline charfi asmaFriend
Messages: 78
Registered: July 2009
Member
Hi kenn,
thank you very much for your help!!
I get the type of the selected object as well as the applied stereotypes:-)
asma

"Kenn Hussey" <khussey@ca.ibm.com> a
Re: uml editor (add menu) [message #617179 is a reply to message #472930] Tue, 22 May 2007 21:57 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Charfi,

Have a look at the UML examples to see how those menus are populated.

Regards,

- James.

"charfi asma" <asma@charfi.com> wrote in message
news:f2v58v$7dc$1@build.eclipse.org...
> hi,
> I want to add a new sub-menu to the UML Editor.
> I create a popup menu plugin and I have now my new sub-menu when I right
> click to any UML object,but I want to find my new sub-menu when I click
on
> UML Editor
> how could I do it?
> thank you
>
>
Re: uml editor (add menu) [message #617183 is a reply to message #472932] Wed, 23 May 2007 13:21 Go to previous message
Kenn Hussey is currently offline Kenn HusseyFriend
Messages: 1620
Registered: July 2009
Senior Member
Specifically, classes in org.eclipse.uml2.uml.editor.actions and
org.eclipse.uml2.examples.uml.ui.actions, along with the associated plug-in
manifests, should be of interest.

Kenn

"James Bruck" <jbruck@ca.ibm.com> wrote in message
news:f2vovh$gee$2@build.eclipse.org...
> Hi Charfi,
>
> Have a look at the UML examples to see how those menus are populated.
>
> Regards,
>
> - James.
>
> "charfi asma" <asma@charfi.com> wrote in message
> news:f2v58v$7dc$1@build.eclipse.org...
>> hi,
>> I want to add a new sub-menu to the UML Editor.
>> I create a popup menu plugin and I have now my new sub-menu when I right
>> click to any UML object,but I want to find my new sub-menu when I click
> on
>> UML Editor
>> how could I do it?
>> thank you
>>
>>
>
>
Re: uml editor (add menu) [message #617554 is a reply to message #472976] Thu, 24 May 2007 20:21 Go to previous message
charfi asma is currently offline charfi asmaFriend
Messages: 78
Registered: July 2009
Member
Hi,
thank your for your help it works now!
I have one othet question:
How could I know the type of my right clicked UML Object ?
I want to get this type, and if it is a class I want to get the applied
steryotype.
thanks a lot!
asma

"Kenn Hussey" <khussey@ca.ibm.com> a
Re: uml editor (add menu) [message #618134 is a reply to message #472987] Fri, 25 May 2007 20:02 Go to previous message
Kenn Hussey is currently offline Kenn HusseyFriend
Messages: 1620
Registered: July 2009
Senior Member
asma,

The example actions we pointed you to should show how to get the current
selection and determine what kind of object is selected. The code for a
pop-up menu action should be similar, i.e. obtain the current selection and
test the selected element(s) against specific types...

Kenn

"charfi asma" <asma@charfi.com> wrote in message
news:f33sfm$1po$1@build.eclipse.org...
> Hi,
> thank your for your help it works now!
> I have one othet question:
> How could I know the type of my right clicked UML Object ?
> I want to get this type, and if it is a class I want to get the applied
> steryotype.
> thanks a lot!
> asma
>
> "Kenn Hussey" <khussey@ca.ibm.com> a
Re: uml editor (add menu) [message #618145 is a reply to message #473004] Sun, 27 May 2007 01:50 Go to previous message
charfi asma is currently offline charfi asmaFriend
Messages: 78
Registered: July 2009
Member
Hi kenn,
thank you very much for your help!!
I get the type of the selected object as well as the applied stereotypes:-)
asma

"Kenn Hussey" <khussey@ca.ibm.com> a
Previous Topic:Sequence Diagram - return value on message
Next Topic:Sequence Diagram - return value on message
Goto Forum:
  


Current Time: Thu Apr 25 21:17:26 GMT 2024

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

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

Back to the top