Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Image path for PluginImageHelper
Image path for PluginImageHelper [message #1002892] Sat, 19 January 2013 19:19 Go to next message
Felix Neutatz is currently offline Felix NeutatzFriend
Messages: 1
Registered: January 2013
Junior Member

I want to style my outline view nodes with images. Therefore I want to use the PluginImageHelper as it is advised. My problem is that I don't know where to locate the image file!

 private PluginImageHelper imageHelper;

((org.eclipse.xtext.ui.editor.outline.impl.EObjectNode) node).setImage(imageHelper.getImage("test.gif"));

Thank you for your help,

Re: Image path for PluginImageHelper [message #1003566 is a reply to message #1002892] Mon, 21 January 2013 14:23 Go to previous message
Alexander Nittka is currently offline Alexander NittkaFriend
Messages: 1193
Registered: July 2009
Senior Member

if you look at the PluginImageHelper source code, you see that the pathSuffix is "icons/" (in case it is not overriden by an injected string.

Previous Topic:Limiting scoped elements, but allowing simple names to be used
Next Topic:Registering/creating your own fragments to be used in the workflow
Goto Forum:

Current Time: Sun Apr 30 03:30:07 GMT 2017

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

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