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: 86
Registered: June 2010
Location: Imola, Italy
Member

Roman,

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

Please, take a look at the following articles:
- http://stackoverflow.com/questions/6263338/items-decorations-in-a-treeviewer
- https://wiki.eclipse.org/FAQ_How_to_decorate_a_TableViewer_or_TreeViewer_with_Columns%3F

In case you need further details, please check also the articles below:
- https://wiki.eclipse.org/FAQ_What_is_a_label_decorator%3F
- http://www.vogella.com/tutorials/EclipseJFace/article.html

Kind Regards,

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


Current Time: Mon Sep 24 02:06:44 GMT 2018

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

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

Back to the top