eclipse / xtext-eclipse

xtext-eclipse
Eclipse Public License 2.0
49 stars 73 forks source link

Quick Assist Change icon #1750

Closed v703612 closed 2 years ago

v703612 commented 3 years ago

Hi,

We are trying to change the icon in the quick assist for our model language. What is the best way of doing this? We want different icon for quick assist for model and name. Is this in the Proposalprovider or is there easier way of doing this? image

Model: 'model' '{' 'name' name=MODEL_ID

cdietrich commented 3 years ago

org.eclipse.xtext.ui.editor.contentassist.AbstractContentProposalProvider.getImage(EObject) is called for it. it will be called with the Keyword class and delegate to the label provider. so you have to customize that one and if else on it or overide getImage in the proprosal provider

cdietrich commented 2 years ago

ping @v703612

v703612 commented 2 years ago

thank you for the help