Nodes with image defined at run-time [message #1271120] |
Fri, 14 March 2014 06:10  |
Eclipse User |
|
|
|
Hi,
I have taken the example of:
http://eclipse.org/epsilon/doc/articles/eugenia-nodes-with-runtime-images/
and i have some questions on this method
protected IFigure createNodeShape() {
primaryShape = new ComponentFigure();
Component component = (Component) ((Node)getNotationView()).getElement();
((ComponentFigure) primaryShape).setImagePath(component.getImagePath());
return primaryShape;
}
Basically the questions are about the types that should be the Node and Component.
When I imported Node as org.eclipse.draw2d.graph.Node
i cannot use the method .getElement()
Could you help me to solve it?
Thanks
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.08497 seconds