Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Zest: Multiple distinguishable connections
Zest: Multiple distinguishable connections [message #779780] Mon, 16 January 2012 14:53 Go to next message
Hannes Sörensson is currently offline Hannes SörenssonFriend
Messages: 1
Registered: January 2012
Junior Member
Hi,

When creating multiple connections between the same nodes in Zest the connections will not be distinguishable, but will display "on top of" each other. This is in contrast to what you typically get with dot.

For illustration, I have here rendered the following dot file:

digraph s{ 
 n1[label="A"];
 n2[label="B"];
 
 n1 -> n1; 
 n1 -> n2;
 n1 -> n2;
}


...using Zest/Dot in Zest 2 and the built-in Zest Graph looks like this:

index.php/fa/6751/0/

...and when rendered with dot I get this:

index.php/fa/6752/0/

The second image is typically what I want in regards to the edges (for a multitude of reasons I would like to use Zest, however). Notice also that the self-connection is much more visible here.

Does anyone know of a simple way to achieve this?
  • Attachment: graph1.png
    (Size: 6.71KB, Downloaded 353 times)
  • Attachment: graph1dot.png
    (Size: 2.73KB, Downloaded 333 times)
Re: Zest: Multiple distinguishable connections [message #779873 is a reply to message #779780] Mon, 16 January 2012 18:05 Go to previous message
Fabian Steeg is currently offline Fabian SteegFriend
Messages: 72
Registered: July 2009
Member
Unfortunately, this is currently only supported in GraphViewers (see [1] for a sample), but not for plain Graphs (which are created by the DOT support). Contributions are very welcome - see [2] for details on what we have so far.

[1] http://git.eclipse.org/c/gef/org.eclipse.zest.git/tree/org.eclipse.zest.examples/src/org/eclipse/zest/examples/jface/GraphJFaceSnippet8.java
[2] https://bugs.eclipse.org/bugs/show_bug.cgi?id=190223
Previous Topic:Scrolling the GEF Editor at the end
Next Topic:Retrieve point of selection
Goto Forum:
  


Current Time: Tue Dec 23 05:19:11 GMT 2014

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

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