I want to ask, does graphiti support a tree view rather than the normal element diagram? what I'm trying to do is when the user click on one of the element in the diagram I want to provide a tree view diagram rather than the element diagram , if its possible to do that using graphiti could you please tell me how to do it?
Michael Wenz Messages: 1370 Registered: July 2009 Location: Walldorf, Germany
Senior Member
Abdallah,
not sure if I actually got your point.
You can arrange shapes so that they represent a tree and you can alos hinder
users from dragging stuff out of this tree structure.
On the other hand, if you would like to embed something like an SWT tree
into a diagram, that is not supported, as the underlying GEF soes not
support that.
Hi Michael, I have the same scenario where I need to embed a tree view into my diagram.
I'm new to Graphiti and GEF, but I was looking at the GEF API looks like there is support for a tree edit part (org.eclipse.gef.editparts.AbstractTreeEditPart). Is this something that I could use from Graphiti?
As you said, I can always arrange shapes and create my own tree viewer, but I'm hoping to find a reusable widget with the implementation of a tree viewer.
Michael Wenz Messages: 1370 Registered: July 2009 Location: Walldorf, Germany
Senior Member
Jorge,
Graphiti itself does not offer such a tree edit part wrapper, but it allows
to use native GEF edit parts inside Graphiti diagrams, maybe that would be
an option in this case?