Showing Problem Indiators and Problem Descriptions for a TreeViewer [message #1693015] |
Tue, 21 April 2015 09:03 |
Simon BBBBBBB Messages: 63 Registered: March 2015 |
Member |
|
|
Hello together,
i have a treeViewer that displays an EMFModel of mine. I use a ValidateAction to validate this model and this creates all the problem indicators that i need. i can see these in the Problem view.
But how can i mark my elements in the treeViewer with the red-error sign? and i need the description when i hover over the error-element.
i just dont know how to start
thanks for any help
PS: i tryed the following:
DiagnosticDecorator decorator = new DiagnosticDecorator(resourceSet, treeViewer);
DecoratingLabelProvider decoratorLabelProvider = new DecoratingLabelProvider(labelProvider, decorator);
treeViewer.setLabelProvider(decoratorLabelProvider);
[Updated on: Tue, 21 April 2015 09:41] Report message to a moderator
|
|
|
Re: Showing Problem Indiators and Problem Descriptions for a TreeViewer [message #1693045 is a reply to message #1693015] |
Tue, 21 April 2015 12:23 |
Ed Merks Messages: 33137 Registered: July 2009 |
Senior Member |
|
|
Simon,
Try setting the GenModel Decoration property to Live. That will let you
enable live validation in the generated editor and the model will be
automatically validated each time it changes and will decorate the tree
with the results, including hover help for the error messages.
On 21.04.2015 11:03, Simon BBBBBBB wrote:
> Hello together,
>
> i have a treeViewer that displays an EMFModel of mine. I use a
> ValidateAction to validate this model and this creates all the problem
> indicators that i need. i can see these in the Problem view.
> But how can i mark my elements in the treeViewer with the red-error
> sign? and i need the description when i hover over the error-element.
> i just dont know how to start
>
> thanks for any help
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.02352 seconds