summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorujhelyiz2011-06-28 16:47:09 (EDT)
committerFabian Steeg2011-06-28 16:47:09 (EDT)
commit447ced521070874982e2ab1c3b88eb2caaacd0a4 (patch)
tree8cef4e7387d556261b0daadfa30887c6c73d4345
parentaf59a12312d1b884b3d23e23a263cfac7e2c6d8c (diff)
downloadorg.eclipse.gef4-447ced521070874982e2ab1c3b88eb2caaacd0a4.zip
org.eclipse.gef4-447ced521070874982e2ab1c3b88eb2caaacd0a4.tar.gz
org.eclipse.gef4-447ced521070874982e2ab1c3b88eb2caaacd0a4.tar.bz2
Option for setting a GraphConnections router from outside the connection
-rw-r--r--org.eclipse.zest.core/src/org/eclipse/zest/core/widgets/GraphConnection.java14
1 files changed, 13 insertions, 1 deletions
diff --git a/org.eclipse.zest.core/src/org/eclipse/zest/core/widgets/GraphConnection.java b/org.eclipse.zest.core/src/org/eclipse/zest/core/widgets/GraphConnection.java
index c5389c7..740c15b 100644
--- a/org.eclipse.zest.core/src/org/eclipse/zest/core/widgets/GraphConnection.java
+++ b/org.eclipse.zest.core/src/org/eclipse/zest/core/widgets/GraphConnection.java
@@ -745,9 +745,11 @@ public class GraphConnection extends GraphItem {
}
/**
- * Sets the connection router
+ * Applies the connection router with a possible fallback to the default
+ * connection router to the graph
*
* @param conn
+ * @since 2.0
*/
void applyConnectionRouter(Connection conn) {
if (router != null) {
@@ -756,4 +758,14 @@ public class GraphConnection extends GraphItem {
conn.setConnectionRouter(graph.getDefaultConnectionRouter());
}
}
+
+ /**
+ * Sets the connection router of the connection
+ *
+ * @param router
+ */
+ public void setRouter(ConnectionRouter router) {
+ this.router = router;
+ }
+
}