Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Icons for Code Completion Proposals(Icons for Code Completion Proposals)
Icons for Code Completion Proposals [message #650039] Fri, 21 January 2011 14:21 Go to next message
Dani is currently offline DaniFriend
Messages: 41
Registered: October 2010
Member
Hi,
Dear All,
I want to know how I can put icons to completion proposals in XText? I mean to say if I press crl+space the proposals given by XText should have icons in beginning does any one know how I can do it?

/Dani
Re: Icons for Code Completion Proposals [message #650056 is a reply to message #650039] Fri, 21 January 2011 15:07 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
Hi Dani,

just use someting like

org.xtext.example.mydsl.ui.contentassist.MyDslProposalProvider.createCompletionProposal(String, String, Image, ContentAssistContext)


to create your proposals in your proposalprovider

~Christian


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:Generating code in project with classpath awareness
Next Topic:EMF and importing namespace
Goto Forum:
  


Current Time: Fri Apr 26 12:58:25 GMT 2024

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

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

Back to the top