Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » using addNode(Object)
using addNode(Object) [message #246445] Wed, 03 December 2008 13:43
Anders Nawroth is currently offline Anders NawrothFriend
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
Previous Topic:Selection of elements in a different layer
Next Topic:[Announce] GEF 3.5.0 I200812031449 is available
Goto Forum:
  


Current Time: Fri Mar 29 10:43:06 GMT 2024

Powered by FUDForum. Page generated in 0.04425 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top