Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCedric Dumoulin2014-01-27 23:11:44 +0000
committerCedric Dumoulin2014-01-27 23:11:44 +0000
commit548b4274541122804c1e94b2bea547c1e345b2bb (patch)
tree762200c4dfea1eee41b50cea5eac249f3c52438b /extraplugins/layers/org.eclipse.papyrus.layers.stackmodel
parent393d734365895e9901bbbd7a78794e7682364d6b (diff)
downloadorg.eclipse.papyrus-548b4274541122804c1e94b2bea547c1e345b2bb.tar.gz
org.eclipse.papyrus-548b4274541122804c1e94b2bea547c1e345b2bb.tar.xz
org.eclipse.papyrus-548b4274541122804c1e94b2bea547c1e345b2bb.zip
330199 - Layers are created at index 0 in layer operators.
Let the top layer be at index 0, and bottom layer at the end of the list of layers.
Diffstat (limited to 'extraplugins/layers/org.eclipse.papyrus.layers.stackmodel')
-rw-r--r--extraplugins/layers/org.eclipse.papyrus.layers.stackmodel/src/org/eclipse/papyrus/layers/stackmodel/layers/impl/LayerOperatorImpl.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/extraplugins/layers/org.eclipse.papyrus.layers.stackmodel/src/org/eclipse/papyrus/layers/stackmodel/layers/impl/LayerOperatorImpl.java b/extraplugins/layers/org.eclipse.papyrus.layers.stackmodel/src/org/eclipse/papyrus/layers/stackmodel/layers/impl/LayerOperatorImpl.java
index 740ec69cb99..0131eaa69df 100644
--- a/extraplugins/layers/org.eclipse.papyrus.layers.stackmodel/src/org/eclipse/papyrus/layers/stackmodel/layers/impl/LayerOperatorImpl.java
+++ b/extraplugins/layers/org.eclipse.papyrus.layers.stackmodel/src/org/eclipse/papyrus/layers/stackmodel/layers/impl/LayerOperatorImpl.java
@@ -89,7 +89,9 @@ public abstract class LayerOperatorImpl extends LayerExpressionImpl implements L
* @generated NOT
*/
public void addLayer(LayerExpression layer) {
- getLayers().add(layer);
+// getLayers().add(layer);
+ // Add layer on top of the stack.
+ getLayers().add(0, layer);
}
/**

Back to the top