[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.tmf] Re: Icons in outline and completion proposals window

The label provider is not implemented for a rule but for types (EClasses).
That is where ever you want to display an instance of a certain type in your IDE you can use the corresponding ILabelProvider in order to create a label and an icon. For code completion the label provider is used for cross references in order to compute the icon.


Cheers,
Sven

Ilyas Keser schrieb:
Hi,

if I implement the methods getImage(Object) and getText(Object) for a rule in MyDslLabelProvider the specified image is only shown in the outline view and for the references in the proposals window. But the icon/image is not shown for the rule itself. For example, if I define an entity the image doesn't appear in the window that displays completion proposals when content assist was invoked to get the proposal with "entity" string.
Is there a trick to show the icons for the rules in the proposals window?


ILyas


--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com