Custom Label Provider [message #1822290] |
Tue, 03 March 2020 10:11  |
Alexandra Tritean Messages: 20 Registered: February 2019 |
Junior Member |
|
|
Hello,
I was in need on creating a list of EObjects based on the list of strings, so therefore I used the following code for 'converting' a string to an EObject.
SimpleAnyType wrapper = XMLTypeFactory.eINSTANCE.createSimpleAnyType();
wrapper.setInstanceType(EcorePackage.eINSTANCE.getEString());
wrapper.setValue(myString);
Is there a way in which I can override the LabelProvider for this specific type? More explicitly I would probably need to customize the getText method from the ReflectiveItemProvider class.
I tried to play around with the org.eclipse.emf.edit.itemProviderAdapterFactories extension, but I didn't managed to get it work. I guess I'm doing something wrong, but I'm not sure what exactly.
Thank you!
Kind Regards,
Alexandra
[Updated on: Tue, 03 March 2020 10:12] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.01576 seconds