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 14:19 Go to next message
Felix Neutatz is currently offline Felix Neutatz
Messages: 1
Registered: January 2013
Junior Member
Hi,

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!

 @Inject
 private PluginImageHelper imageHelper;

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


Thank you for your help,

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

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.

Alex


Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext@itemis.de
Previous Topic:Calling the serializer preserving original formatting
Next Topic:Xtext, debug and method calls
Goto Forum:
  


Current Time: Sat Jul 26 05:15:47 EDT 2014

Powered by FUDForum. Page generated in 0.02660 seconds