Skip to main content


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
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 14:23 Go to previous message
Alexander Nittka is currently offline Alexander NittkaFriend
Messages: 1193
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: Fri Apr 26 19:57:08 GMT 2024

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

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

Back to the top