Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCedric Dumoulin2013-11-09 13:19:55 +0000
committerCedric Dumoulin2014-01-27 13:54:51 +0000
commit2970b66f622f9703c1ef0082d1f9afbe1d38bf08 (patch)
tree7e9d4e968f33b01b4ae55180fe1dd66791b7b772 /extraplugins/layers/org.eclipse.papyrus.layers.stackmodel
parented751aa7fbf111e5d9994fe406f9aec5300f4023 (diff)
downloadorg.eclipse.papyrus-2970b66f622f9703c1ef0082d1f9afbe1d38bf08.tar.gz
org.eclipse.papyrus-2970b66f622f9703c1ef0082d1f9afbe1d38bf08.tar.xz
org.eclipse.papyrus-2970b66f622f9703c1ef0082d1f9afbe1d38bf08.zip
Allows isLayerEnabled properties and explorer delete, move.
Factorization of methods in LayerStackSynchronizer.
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/AbstractLayerOperatorImpl.java16
1 files changed, 16 insertions, 0 deletions
diff --git a/extraplugins/layers/org.eclipse.papyrus.layers.stackmodel/src/org/eclipse/papyrus/layers/stackmodel/layers/impl/AbstractLayerOperatorImpl.java b/extraplugins/layers/org.eclipse.papyrus.layers.stackmodel/src/org/eclipse/papyrus/layers/stackmodel/layers/impl/AbstractLayerOperatorImpl.java
index 0e4636ef110..692416e78fb 100644
--- a/extraplugins/layers/org.eclipse.papyrus.layers.stackmodel/src/org/eclipse/papyrus/layers/stackmodel/layers/impl/AbstractLayerOperatorImpl.java
+++ b/extraplugins/layers/org.eclipse.papyrus.layers.stackmodel/src/org/eclipse/papyrus/layers/stackmodel/layers/impl/AbstractLayerOperatorImpl.java
@@ -334,6 +334,12 @@ public abstract class AbstractLayerOperatorImpl extends LayerOperatorImpl implem
@Override
public ComputePropertyValueCommand getComputePropertyValueCommand(View view, Property property) throws LayersException {
+ // Do nothing if the layer is disable.
+ if( ! isLayerEnabled() ) {
+ return null;
+ }
+
+
// The list of commands provided by each layers
EList<ComputePropertyValueCommand> collectedCmds = new BasicEList<ComputePropertyValueCommand>(getLayers().size());
@@ -369,6 +375,11 @@ public abstract class AbstractLayerOperatorImpl extends LayerOperatorImpl implem
@Override
public EList<ComputePropertyValueCommand> getPropertiesComputePropertyValueCommand(View view, List<Property> properties) throws LayersException {
+ // Do nothing if the layer is disable.
+ if( ! isLayerEnabled() ) {
+ return null;
+ }
+
// Simple implementation
// TODO Check if we can optimize
@@ -415,6 +426,11 @@ public abstract class AbstractLayerOperatorImpl extends LayerOperatorImpl implem
@Override
public EList<ComputePropertyValueCommand> getViewsComputePropertyValueCommand(List<View> views, Property property) throws LayersException {
+ // Do nothing if the layer is disable.
+ if( ! isLayerEnabled() ) {
+ return null;
+ }
+
// Simple implementation
// TODO Check if we can optimize

Back to the top