Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » order icons in pop-up-menu
order icons in pop-up-menu [message #187230] Thu, 15 May 2008 11:35 Go to next message
Eclipse UserFriend
Originally posted by: rolfes.daniel.web.de

Hi,
i've changed the default icons to custom ones in the hover/popup menu
by customizing the code in getImage(IAdaptable hint) in the
XXXElementTypes class according to the slides in GMF Best Practices 07:
http://eclipsezilla.eclipsecon.org/php/attachment.php?bugid= 3739.
This works fine.

Now, I would like to change the order of the elements in the popup-menu.
How can I do this? Thanks in advance.

Daniel
Re: order icons in pop-up-menu [message #187247 is a reply to message #187230] Thu, 15 May 2008 12:03 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: tobk42.gmx.de

D. Rolfes schrieb:
> Hi,
> i've changed the default icons to custom ones in the hover/popup menu
> by customizing the code in getImage(IAdaptable hint) in the
> XXXElementTypes class according to the slides in GMF Best Practices 07:
> http://eclipsezilla.eclipsecon.org/php/attachment.php?bugid= 3739.
> This works fine.
>
> Now, I would like to change the order of the elements in the popup-menu.
> How can I do this? Thanks in advance.
>
> Daniel


You should have a look in the YourModelModellingAssistantProvider class
in the providers package. There you will find a number of methods
responsible for the actions supported by the popup-bars (and some other
nice stuff). The order in which the several element types are put in the
lists should reflect 1:1 the order in which they appear in the
popupbars, IIRC.

Tobias
Re: order icons in pop-up-menu [message #187253 is a reply to message #187247] Thu, 15 May 2008 12:05 Go to previous message
Eclipse UserFriend
Originally posted by: rolfes.daniel.web.de

Tobias schrieb:
> D. Rolfes schrieb:
>> Hi,
>> i've changed the default icons to custom ones in the hover/popup menu
>> by customizing the code in getImage(IAdaptable hint) in the
>> XXXElementTypes class according to the slides in GMF Best Practices 07:
>> http://eclipsezilla.eclipsecon.org/php/attachment.php?bugid= 3739.
>> This works fine.
>>
>> Now, I would like to change the order of the elements in the
>> popup-menu. How can I do this? Thanks in advance.
>>
>> Daniel
>
>
> You should have a look in the YourModelModellingAssistantProvider class
> in the providers package. There you will find a number of methods
> responsible for the actions supported by the popup-bars (and some other
> nice stuff). The order in which the several element types are put in the
> lists should reflect 1:1 the order in which they appear in the
> popupbars, IIRC.
>
> Tobias

Hi,
thanks for your answer. I just changed the order of how the types are
inserted in the List in getTypesForPopupBar(IAdaptable host) and it
works fine. Thanks
Previous Topic:Can't change the line color
Next Topic:Problem with shared domain model
Goto Forum:
  


Current Time: Fri Apr 19 05:39:35 GMT 2024

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

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

Back to the top