Label Provider not being invoked [message #1844535] |
Thu, 16 September 2021 03:06  |
Eclipse User |
|
|
|
I customised the label provider for my DSL, but in the outline tree I don't get the labels I customised. While debugging, my custom methods never get called.
During debugging, I noticed that when creating nodes, OutlineTreeProvicer#_text , my custom label provider is an instance of IStyledLabelProvider, so instead of invoking the methods, it calls IStyledLabelProvider#getStyledText that does not call the custom getText methods.
Is this the intended behaviour? How can I get the styled label provider to use the custom getText methods? I see doGetText called, but not the getText ones.
|
|
|
|
|
|
|
|
|
|
Re: Label Provider not being invoked [message #1844585 is a reply to message #1844563] |
Fri, 17 September 2021 02:43  |
Eclipse User |
|
|
|
Hi,
It somehow resolved it self. I think it was linked to an imported metamodel not being found at runtime (i.e. EPackage not registered exception). Perhaps the label provider logic catches the exception and just returns null.
|
|
|
Powered by
FUDForum. Page generated in 0.03607 seconds