Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Label decoration in e4
Label decoration in e4 [message #1749404] Tue, 06 December 2016 10:02 Go to next message
Roman Zimmer is currently offline Roman ZimmerFriend
Messages: 27
Registered: November 2010
Junior Member
Hey @ll,

we have a pure e4 RCP application, which has a lot TreeViewers displaying domain items. We wanted to visualize validation issues on these items using label decorations. Essentially, we want to show the some overlay icons, which the Eclipse IDE displays, when some compilation unit has an error and/or warning.

The only resource we found in the e4 context was a wiki article.

Unfortunately, PlatformUI.getWorkbench() throws an IllegalStateException: Workbench has not been created yet. on e4. As I understand, this is intended as this method is only valid in e3. But then, how to display item decorations in e4?

Any help is really appreciated, thank you in advance!
Re: Label decoration in e4 [message #1752545 is a reply to message #1749404] Wed, 25 January 2017 00:48 Go to previous message
Patrik Suzzi is currently offline Patrik SuzziFriend
Messages: 91
Registered: June 2010
Location: Urdorf, Switzerland


I think you should you decorate a JFace tree using a "treeviewer label provider"

Please, take a look at the following articles:

In case you need further details, please check also the articles below:

Kind Regards,

Ing. Patrik Suzzi
Consultant Software Engineer,
Eclipse Platform Committer
Previous Topic:e4xmi view class uri
Next Topic:Slow reaction of Eclipse Editors on a Windows VM
Goto Forum:

Current Time: Wed Sep 23 11:11:31 GMT 2020

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

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

Back to the top