Adding icons to the palette [message #884175] |
Sun, 10 June 2012 06:04  |
Eclipse User |
|
|
|
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 #1413436 is a reply to message #1413293] |
Thu, 28 August 2014 10:00  |
Eclipse User |
|
|
|
Have you registered your image provider with your diagram type provider?
Here's the example for the tutorial:
<extension
point="org.eclipse.graphiti.ui.diagramTypeProviders">
<diagramTypeProvider
class="org.eclipse.graphiti.examples.tutorial.diagram.TutorialDiagramTypeProvider"
description="This is the editor for the Graphiti tutorial"
id="org.eclipse.graphiti.examples.tutorial.diagram.TutorialDiagramTypeProvider"
name="Graphiti Tutorial Editor">
<diagramType
id="org.eclipse.graphiti.examples.tutorial.diagram.TutorialDiagramType">
</diagramType>
<imageProvider
id="org.eclipse.graphiti.examples.tutorial.TutorialImageProvider">
<-------
</imageProvider>
<imageProvider
id="org.eclipse.graphiti.examples.common.ExampleImageProvider">
</imageProvider>
</diagramTypeProvider>
</extension>
Michael
|
|
|
Powered by
FUDForum. Page generated in 0.05381 seconds