Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [EMF.Edit] custom icons
[EMF.Edit] custom icons [message #519567] Tue, 09 March 2010 10:47
Ralf is currently offline RalfFriend
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 Go to previous message
Ed Merks is currently offline Ed MerksFriend
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/
Previous Topic:Derived features and change event notifications
Next Topic:[Validation] Dynamic constraints?
Goto Forum:
  


Current Time: Fri Apr 26 22:30:41 GMT 2024

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

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

Back to the top