Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Showing Problem Indiators and Problem Descriptions for a TreeViewer
Showing Problem Indiators and Problem Descriptions for a TreeViewer [message #1693015] Tue, 21 April 2015 09:03 Go to next message
Simon BBBBBBB is currently offline Simon BBBBBBBFriend
Messages: 60
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 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 30553
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
Previous Topic:Looking for public domain EMF domain models
Next Topic:[CDO] IAdaptable name clash
Goto Forum:
  


Current Time: Tue Oct 22 23:36:34 GMT 2019

Powered by FUDForum. Page generated in 0.02020 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top