Skip to main content



      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 05:03 Go to next message
Eclipse UserFriend
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 05:41] by Moderator

Re: Showing Problem Indiators and Problem Descriptions for a TreeViewer [message #1693045 is a reply to message #1693015] Tue, 21 April 2015 08:23 Go to previous message
Eclipse UserFriend
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: Sat Jul 12 14:04:21 EDT 2025

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

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

Back to the top