Skip to main content



      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
Eclipse UserFriend
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
Eclipse UserFriend
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
Previous Topic:Calling the serializer preserving original formatting
Next Topic:Xtext, debug and method calls
Goto Forum:
  


Current Time: Sun Jul 13 00:27:53 EDT 2025

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

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

Back to the top