[EMF.Edit] custom icons [message #519567] |
Tue, 09 March 2010 10:47 |
Ralf Messages: 25 Registered: March 2010 |
Junior Member |
|
|
Moin, Moin,
I'm trying to customize the popup menu of a generated GMF diagram editor. The used icons in the popup menu seems to be provided by the corresponding EMF.Edit code. Is it possible to provide custom icons for the EMF.Edit code during the generation process or do I have to overwrite the generated getImage() method ?
@Override
public Object getImage(Object object) {
return overlayImage(object, getResourceLocator().getImage("full/obj16/Start"));
}
|
|
|
Re: [EMF.Edit] custom icons [message #519592 is a reply to message #519567] |
Tue, 09 March 2010 07:08 |
Ed Merks Messages: 33142 Registered: July 2009 |
Senior Member |
|
|
Ralf,
Once the icons exist, they won't be regenerated, so you can replace the
generated ones with nice ones.
Ralf wrote:
> Moin, Moin,
>
> I'm trying to customize the popup menu of a generated GMF diagram
> editor. The used icons in the popup menu seems to be provided by the
> corresponding EMF.Edit code. Is it possible to provide custom icons
> for the EMF.Edit code during the generation process or do I have to
> overwrite the generated getImage() method ?
>
> @Override
> public Object getImage(Object object) {
> return overlayImage(object,
> getResourceLocator().getImage("full/obj16/Start"));
> }
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.02727 seconds