1

I have a need to create a diagram viewer. There is hierarchical tree that I want to visualize in Eclipse plugin. I manage to know GEF, and there is Zest. But in Zest, I don't success in creating custom shape in graphic nodes and there is no tutorial to create the custom node (I have been searching all day). So I want to know if there are alternatives beside Zest. What I like most from Zest is it provides layouting algorithms.

4

3 回答 3

0

You can use GraphViz which is popular and has an eclipse plugin. Note that I have never used it.

于 2012-04-05T08:34:14.010 回答
0

Do you need to edit that tree? If not, I would use the Zest framework.

This might help you to create the custom shape.

于 2012-04-11T12:29:51.390 回答
0

You need to have your LabelProvider implement the IFigureProvider interface, and override the getFigure method to return a custom IFigure implementation which draws your custom shape and has its colors set the way you want them.

However, there seems to be a bug in support for highlighting support for a custom node. The bug report gives a patch, and claims it has been fixed, but I don't see the fix appearing in current (4.3) version of the Eclipse plugins. I don't know why. (Does anybody else?) I made a copy of the plugin and patched it manually. Here is the bug:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=335136

于 2013-08-27T00:10:43.087 回答