Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » ZEST Custom figures(How to highlight custom nodes?)
ZEST Custom figures [message #669521] Tue, 10 May 2011 14:59 Go to next message
Joaquin Morcate is currently offline Joaquin MorcateFriend
Messages: 52
Registered: March 2010

I have a graph with custom images for nodes. For it I have implemented MyGraphLabelProvider:
public class MyGraphLabelProvider extends LabelProvider 
       implements IFigureProvider, IEntityLabelProvider {



I would like to highlight the selected node in my graph displaying a yellow background but I don't know how to do it. Apparently the information about selections is in GraphNode and in method updateFigureForModel you have something like:
   if (highlighted == HICHLIGHTING_ON) {

But as my label provider implements IFigureProvider, instead of GraphNode I have CGraphNode that has the method updateFigureForModel overriden to do nothing.

Any idea how can I get my selected nodes highlighted?

Thank you very much

Re: ZEST Custom figures [message #731389 is a reply to message #669521] Fri, 30 September 2011 19:55 Go to previous message
Martin BurgerFriend
Messages: 21
Registered: July 2009
Junior Member
This seems to be a bug:
Previous Topic:Fire a property change from View
Next Topic:One-click drag of the endpoint of a connector
Goto Forum:

Current Time: Thu Jun 21 14:43:54 GMT 2018

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

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

Back to the top