Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurent Redor2017-10-12 15:41:07 +0000
committerLaurent Redor2017-10-26 10:46:00 +0000
commit506aa8f3fdabb04ad31c8a783abbd388c5714798 (patch)
treeb9b8370b649b066c22dfba5e6ec3ad3d20a3bf61
parenta4e0636395b159e7dd2fa6c8a8d2c727f2a2eff1 (diff)
downloadorg.eclipse.sirius-506aa8f3fdabb04ad31c8a783abbd388c5714798.tar.gz
org.eclipse.sirius-506aa8f3fdabb04ad31c8a783abbd388c5714798.tar.xz
org.eclipse.sirius-506aa8f3fdabb04ad31c8a783abbd388c5714798.zip
[525933] Fix palette update after transient optional layer activation
Bug: 525933 Change-Id: I9c7c37dc299c04987010eef2eaafd708530c6527 Signed-off-by: Laurent Redor <laurent.redor@obeo.fr>
-rw-r--r--plugins/org.eclipse.sirius.diagram.ui/src-diag/org/eclipse/sirius/diagram/ui/tools/internal/views/providers/layers/LayersActivationAdapter.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/org.eclipse.sirius.diagram.ui/src-diag/org/eclipse/sirius/diagram/ui/tools/internal/views/providers/layers/LayersActivationAdapter.java b/plugins/org.eclipse.sirius.diagram.ui/src-diag/org/eclipse/sirius/diagram/ui/tools/internal/views/providers/layers/LayersActivationAdapter.java
index baaa5535e6..d6cecc3b15 100644
--- a/plugins/org.eclipse.sirius.diagram.ui/src-diag/org/eclipse/sirius/diagram/ui/tools/internal/views/providers/layers/LayersActivationAdapter.java
+++ b/plugins/org.eclipse.sirius.diagram.ui/src-diag/org/eclipse/sirius/diagram/ui/tools/internal/views/providers/layers/LayersActivationAdapter.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2008, 2009 THALES GLOBAL SERVICES.
+ * Copyright (c) 2008, 2017 THALES GLOBAL SERVICES.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -57,6 +57,7 @@ public class LayersActivationAdapter extends AdapterImpl {
private void update(final DDiagram diagram, final Layer layer, final boolean activate) {
EclipseUIUtil.displayAsyncExec(new Runnable() {
+ @Override
public void run() {
if (viewer != null) {
viewer.update(layer, null);
@@ -85,7 +86,7 @@ public class LayersActivationAdapter extends AdapterImpl {
final Object notifier = msg.getNotifier();
if (notifier instanceof DDiagram) {
final int featureID = msg.getFeatureID(DDiagram.class);
- if (featureID == DiagramPackage.DDIAGRAM__ACTIVATED_LAYERS) {
+ if (featureID == DiagramPackage.DDIAGRAM__ACTIVATED_LAYERS || featureID == DiagramPackage.DDIAGRAM__ACTIVATED_TRANSIENT_LAYERS) {
switch (msg.getEventType()) {

Back to the top