Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » Adding icons to the palette
Adding icons to the palette [message #884175] Sun, 10 June 2012 06:04 Go to next message
David cousinsa is currently offline David cousinsa
Messages: 1
Registered: June 2012
Junior Member
Hello,

I've done the graphiti tutorial (not every part, but almost), i registered an ImageProvider, i modified the palette with a MuseeToolBehaviorProvider.

When i add a ObjectCreationEntry to a PaletteCompartmentEntry, we use a "getCreateImageId()" as parameter. I guess it represents the small icon in the palette to show a small picture of what we are going to add. However, i can't find where we define this imageid (in the createFeature ?), i already searched, but i only find a setImageId for a contextButton, not for a CreateFeature.

So, my question is, how can i add this small picture in my Palette ?

Thank you for your time
Re: Adding icons to the palette [message #884508 is a reply to message #884175] Mon, 11 June 2012 04:08 Go to previous message
Michael Wenz is currently offline Michael Wenz
Messages: 1587
Registered: July 2009
Location: Walldorf, Germany
Senior Member
Usually, you would simply define your CreateFeature and override
getCreateImageId(). The create features are automatically added to the
editor's palette along with the icon, there's no need to modify editor code
for that.

Does that help?
Michael
Previous Topic:ICreateConnection.create(): returning null Connection allowed?
Next Topic:Problem Marker deleted at diagram opening
Goto Forum:
  


Current Time: Wed Aug 27 15:11:05 EDT 2014

Powered by FUDForum. Page generated in 0.01535 seconds