summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIan Bull2010-12-03 01:44:40 (EST)
committerFabian Steeg2010-12-03 01:44:40 (EST)
commit42ed4e396ef6f354a3c5fa3a977f8e99cce260c0 (patch)
treee6969c2079236a18ca18fbf5b6e77eaf1969b5cc
parent8ef5f7689566e9d0b6ede581d0d286ab93ef6439 (diff)
downloadorg.eclipse.gef4-42ed4e396ef6f354a3c5fa3a977f8e99cce260c0.zip
org.eclipse.gef4-42ed4e396ef6f354a3c5fa3a977f8e99cce260c0.tar.gz
org.eclipse.gef4-42ed4e396ef6f354a3c5fa3a977f8e99cce260c0.tar.bz2
Do not fire changes to the layout if dynamic layout is not enabled.
-rw-r--r--org.eclipse.zest.core/src/org/eclipse/zest/core/widgets/GraphNode.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/org.eclipse.zest.core/src/org/eclipse/zest/core/widgets/GraphNode.java b/org.eclipse.zest.core/src/org/eclipse/zest/core/widgets/GraphNode.java
index ba3c473..2b82600 100644
--- a/org.eclipse.zest.core/src/org/eclipse/zest/core/widgets/GraphNode.java
+++ b/org.eclipse.zest.core/src/org/eclipse/zest/core/widgets/GraphNode.java
@@ -244,7 +244,9 @@ public class GraphNode extends GraphItem {
currentLocation.setPreciseX(x);
currentLocation.setPreciseY(y);
refreshBounds();
- parent.getLayoutContext().fireNodeMovedEvent(this.getLayout());
+ if (getGraphModel().isDynamicLayoutEnabled()) {
+ parent.getLayoutContext().fireNodeMovedEvent(this.getLayout());
+ }
}
}