Skip to main content



      Home
Home » Modeling » TMF (Xtext) » Icons in auto completion Window(How to change them)
Icons in auto completion Window [message #755101] Mon, 07 November 2011 06:40 Go to next message
Eclipse UserFriend
Hi all,

I'm new to Xtext and wanted to change the icons in the Auto-Completion Window.
I couldn't find any Information where and how i can change it.
(e.g. in Java the green Icon with a "C" left to a Class)

Anyone with an idea?

best regards,
pascal
Re: Icons in auto completion Window [message #755303 is a reply to message #755101] Mon, 07 November 2011 21:21 Go to previous messageGo to next message
Eclipse UserFriend
Hey, I am also new to Xtext but I think what you're looking for can be found in the xtext domainmodel example project you can create with eclipse by default: The UI project (eclipse editor plugin) contains the class org.eclipse.xtext.example.domainmodel.ui.labeling.DomainmodelDescriptionLabelProvider with the overridden method
@Override
public String image(IEObjectDescription description) {
	return description.getEClass().getName() + ".gif"; 
}

The class is bound in the generated org.eclipse.xtext.example.domainmodel.ui.AbstractDomainmodelUIModule.
Hope this helps.

regards,
Max
Re: Icons in auto completion Window [message #755645 is a reply to message #755303] Wed, 09 November 2011 03:24 Go to previous message
Eclipse UserFriend
this was also my first intension, but i think that's not exactly what i mean:
In the domainmodel example DSL, when i hit ctrl+space, Entity/Import/Package don't have an icon. So i think that's the wrong location to get/set an icon.
Perhaps the Contentassist, but in the XbaseProposalProvider i don't find something useful for icons...or my beginner skills aren't enough...
Previous Topic:Ordered groups question
Next Topic:LIBDBUSMENU-GTK-CRITICAL **: watch_submenu: assertion `GTK_IS_MENU_SHELL(menu)' failed
Goto Forum:
  


Current Time: Sun Jul 06 23:15:29 EDT 2025

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

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

Back to the top