|
Re: order icons in pop-up-menu [message #187247 is a reply to message #187230] |
Thu, 15 May 2008 12:03 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.01813 seconds