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 10:59 Go to next message
Joaquin Morcate is currently offline Joaquin Morcate
Messages: 49
Registered: March 2010
Member
Hi,

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) {
	figure.setBackgroundGolor(....)
        .....
    }

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

Joaquin
Re: ZEST Custom figures [message #731389 is a reply to message #669521] Fri, 30 September 2011 15:55 Go to previous message
Martin Burger
Messages: 21
Registered: July 2009
Junior Member
This seems to be a bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=335136
Previous Topic:[Zest] Layout Algorithms aren't working for me in Zest 2
Next Topic:Properties view
Goto Forum:
  


Current Time: Fri Aug 22 15:44:38 EDT 2014

Powered by FUDForum. Page generated in 0.01611 seconds