Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 11:40 Go to next message
Pascal  is currently offline Pascal Friend
Messages: 8
Registered: October 2011
Junior Member
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] Tue, 08 November 2011 02:21 Go to previous messageGo to next message
Max Goltzsche is currently offline Max GoltzscheFriend
Messages: 40
Registered: November 2011
Member
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 08:24 Go to previous message
Pascal  is currently offline Pascal Friend
Messages: 8
Registered: October 2011
Junior Member
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: Fri Feb 26 22:23:24 GMT 2021

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

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

Back to the top