Xtext 2.0.0 - Problem with custom DescriptionLabelProvider [message #826063] |
Wed, 21 March 2012 15:58 |
Steffen Schuette Messages: 26 Registered: August 2010 |
Junior Member |
|
|
Hi,
I uncimmented the Descriptionlabelprovider in the ui project and now it looks like htis:
public class DslDescriptionLabelProvider extends DefaultDescriptionLabelProvider {
public String text(IEObjectDescription ele) {
return "my "+ele.getName();
}
/*
String image(IEObjectDescription ele) {
return ele.getEClass().getName() + ".gif";
}
*/
}
I also added the following code to the UiModule.java
public void configureResourceUIServiceLabelProvider(Binder binder) {
binder.bind(ILabelProvider.class)
.annotatedWith(ResourceServiceDescriptionLabelProvider.class)
.to(DslDescriptionLabelProvider.class);
}
However, I do not get the "my ..." text, e.g. in the autocompletion dropdown menu.
All other providers (outline, label, etc...) worke like charm.
What's wrong with my code?
Thanks
Steffen
[Updated on: Wed, 21 March 2012 15:58] Report message to a moderator
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04594 seconds