Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Customize myFile icon in Explorer Panels
Customize myFile icon in Explorer Panels [message #721612] Fri, 02 September 2011 10:17 Go to next message
Luigi  is currently offline Luigi Friend
Messages: 5
Registered: April 2011
Junior Member
Hi All,

I need to customize the icon of files with myExtension in the Explorer panel of eclipse.

It is possible?
Re: Customize myFile icon in Explorer Panels [message #721627 is a reply to message #721612] Fri, 02 September 2011 11:02 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
Hi,

nothing easier than this

plugin.xml
<extension
            point="org.eclipse.ui.editors">
        <editor
            class="org.xtext.example.mydsl.ui.MyDslExecutableExtensionFactory:org.eclipse.xtext.ui.editor.XtextEditor"
            contributorClass="org.eclipse.ui.editors.text.TextEditorActionContributor"
            default="true"
            extensions="mydsl"
            icon="icons/editor.gif"
            id="org.xtext.example.mydsl.MyDsl"
            name="MyDsl Editor">
        </editor>
    </extension>


~Christian


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Customize myFile icon in Explorer Panels [message #721631 is a reply to message #721627] Fri, 02 September 2011 11:23 Go to previous message
Luigi  is currently offline Luigi Friend
Messages: 5
Registered: April 2011
Junior Member
Thanks!! It works!!
Previous Topic:[Xtend2] How to integrate a Java Bufferedreader in *.xtend file
Next Topic:How do I handle xtext 1.0-indexes?
Goto Forum:
  


Current Time: Fri Apr 19 23:09:45 GMT 2024

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

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

Back to the top