Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorptessier2017-06-09 09:19:47 +0000
committerPatrick Tessier2017-06-12 08:26:29 +0000
commit78192cdedb97a84a4bf8e8f519b6c1ea9ed07a76 (patch)
tree7a64702b5c41192ec34a9d3f5eb6bd9d01986c3d /plugins/views
parent519e874732f310b755c3aea68fe7dde3c7677ec4 (diff)
downloadorg.eclipse.papyrus-78192cdedb97a84a4bf8e8f519b6c1ea9ed07a76.tar.gz
org.eclipse.papyrus-78192cdedb97a84a4bf8e8f519b6c1ea9ed07a76.tar.xz
org.eclipse.papyrus-78192cdedb97a84a4bf8e8f519b6c1ea9ed07a76.zip
Bug 518046 - [Model Explorer] when all customizations are removed , it
is impossible to add one Change-Id: If340f07c52fadd50f02e8546af78c3631a4a6f01
Diffstat (limited to 'plugins/views')
-rw-r--r--plugins/views/modelexplorer/org.eclipse.papyrus.views.modelexplorer/src/org/eclipse/papyrus/views/modelexplorer/handler/LoadBrowserCustomization.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/views/modelexplorer/org.eclipse.papyrus.views.modelexplorer/src/org/eclipse/papyrus/views/modelexplorer/handler/LoadBrowserCustomization.java b/plugins/views/modelexplorer/org.eclipse.papyrus.views.modelexplorer/src/org/eclipse/papyrus/views/modelexplorer/handler/LoadBrowserCustomization.java
index 8cf0fbd2a1f..f38ed914951 100644
--- a/plugins/views/modelexplorer/org.eclipse.papyrus.views.modelexplorer/src/org/eclipse/papyrus/views/modelexplorer/handler/LoadBrowserCustomization.java
+++ b/plugins/views/modelexplorer/org.eclipse.papyrus.views.modelexplorer/src/org/eclipse/papyrus/views/modelexplorer/handler/LoadBrowserCustomization.java
@@ -91,7 +91,9 @@ public class LoadBrowserCustomization extends AbstractHandler {
ILoadCustomizationsDialog dialog = ILoadCustomizationsDialogFactory.DEFAULT.createLoadCustomizationDialog(shell, registeredCustomizations, customizationManager.getManagedCustomizations(), dialogCallBack);
if (Window.OK == dialog.open()) {
- customizationManager.getManagedCustomizations().clear();
+ if( customizationManager.getManagedCustomizations().size()>0) {
+ customizationManager.getManagedCustomizations().clear();
+ }
customizationManager.getManagedCustomizations().addAll(dialog.getSelectedCustomizations());
// Save the current state of the customizations
org.eclipse.papyrus.infra.ui.internal.emf.Activator.getDefault().saveCustomizationManagerState();

Back to the top