using addNode(Object) [message #246445] |
Wed, 03 December 2008 13:43 |
Anders Nawroth Messages: 1 Registered: July 2009 |
Junior Member |
|
|
Hi!
I'm currently implementing the IGraphContentProvider interface in an
application as it is the best match to the domain, choosing from the
available content provider variations.
However, I have an edge case: when there are no relationships to/from the
current input node, I still want to be able to show this node only. My
current solution is to add the node manually by calling addNode(Object).
But this method is in org.eclipse.zest.core.viewers.internal which has an
access restriction (well, it's internal).
IGraphEntityRelationshipContentProvider isn't a good choice, as I want to
preserve traversal dephts (only showing relationships inside a specific
distance(== number of edges) from the input entity). As this variation
doesn't fit my domain very well, it also consumes much resources.
And the IGraphEntityContentProvider doesn't seem to let me provide my own
relationship model.
So what's my best option to solve this problem? Relying on the internal
API? Some other solution I didn't think of?
Regards,
Anders
|
|
|
Powered by
FUDForum. Page generated in 0.04425 seconds