Skip to main content


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
Mariem Makni is currently offline Mariem MakniFriend
Messages: 46
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 Damus is currently offline Christian DamusFriend
Messages: 1270
Registered: July 2009
Location: Canada
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 WillinkFriend
Messages: 7655
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
Mariem Makni is currently offline Mariem MakniFriend
Messages: 46
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: Thu Apr 25 05:09:43 GMT 2024

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

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

Back to the top