Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » how to create a popup menu in eclipse using commands and handlers(create a popup menu in eclipse using commands and handlers)
how to create a popup menu in eclipse using commands and handlers [message #1011587] Tue, 19 February 2013 21:23 Go to next message
sabrina ing is currently offline sabrina ing
Messages: 39
Registered: February 2013
Member
Hi,

I'm doing a project using the Plug-in papyrus Marte in eclipse, I want to add a popup menu

named "import Qompass" using commands and Handlers in the view of the Model Explorer when

creating a papyrus Model.

But, I don't know the location uri of the Model Explorer to create my popup menu.

So can you help me please.

If you have some link or if you can advise me I would appreciate.

Thanks in advance.

Best Regards
Re: how to create a popup menu in eclipse using commands and handlers [message #1011592 is a reply to message #1011587] Tue, 19 February 2013 21:33 Go to previous messageGo to next message
Christian W. Damus is currently offline Christian W. Damus
Messages: 789
Registered: July 2009
Senior Member
Hi,

You can start by seeing what the ID of the Model Explorer view is in
the plugin.xml in the org.eclipse.papyrus.view.modelexplorer plug-in:
org.eclipse.papyrus.views.modelexplorer.modelexplorer.

That is the basis of various menu URIs, and this plugin.xml has
examples of contributions to those menus.

HTH,

Christian


On 2013-02-19 21:23:56 +0000, Mariem Makni said:

> Hi,
>
> I'm doing a project using the Plug-in papyrus Marte in eclipse, I want
> to add a popup menu
>
> named "import Qompass" using commands and Handlers in the view of the
> Model Explorer when
> creating a papyrus Model.
>
> But, I don't know the location uri of the Model Explorer to create my
> popup menu.
>
> So can you help me please.
>
> If you have some link or if you can advise me I would appreciate.
>
> Thanks in advance.
>
> Best Regards
Re: how to create a popup menu in eclipse using commands and handlers [message #1011596 is a reply to message #1011592] Tue, 19 February 2013 21:41 Go to previous messageGo to next message
Ed Willink is currently offline Ed Willink
Messages: 4046
Registered: July 2009
Senior Member
Hi

Alt+Shift+F1 and Alt+Shift+F2 allow you to peek at many useful IDs and
classes.

Regards

Ed Willink

On 19/02/2013 21:33, Christian W. Damus wrote:
> Hi,
>
> You can start by seeing what the ID of the Model Explorer view is in
> the plugin.xml in the org.eclipse.papyrus.view.modelexplorer plug-in:
> org.eclipse.papyrus.views.modelexplorer.modelexplorer.
>
> That is the basis of various menu URIs, and this plugin.xml has
> examples of contributions to those menus.
>
> HTH,
>
> Christian
>
>
> On 2013-02-19 21:23:56 +0000, Mariem Makni said:
>
>> Hi,
>>
>> I'm doing a project using the Plug-in papyrus Marte in eclipse, I
>> want to add a popup menu
>>
>> named "import Qompass" using commands and Handlers in the view of
>> the Model Explorer when
>> creating a papyrus Model.
>>
>> But, I don't know the location uri of the Model Explorer to create my
>> popup menu.
>>
>> So can you help me please.
>>
>> If you have some link or if you can advise me I would appreciate.
>>
>> Thanks in advance.
>>
>> Best Regards
>
>
Re: how to create a popup menu in eclipse using commands and handlers [message #1011605 is a reply to message #1011596] Tue, 19 February 2013 22:08 Go to previous message
sabrina ing is currently offline sabrina ing
Messages: 39
Registered: February 2013
Member

Hi,

Thank you.

I'm very grateful for your help Smile

Previous Topic:Applying mutliple same stereotype
Next Topic:Data Modeling using Eclipse Papyrus
Goto Forum:
  


Current Time: Sun Sep 21 20:14:46 GMT 2014

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

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