Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas FAUVERGUE2019-02-15 13:01:48 -0500
committerNicolas FAUVERGUE2019-02-15 13:30:17 -0500
commit08557477db0ce7a3a43bafdb9eefe502e3fae8c4 (patch)
tree2e5fbd0595f79dbe33a6ba75f3c6eaaee2541715
parentcc77992a69240cae3a1ed6b0fa370fdd4e332bb9 (diff)
downloadorg.eclipse.papyrus-08557477db0ce7a3a43bafdb9eefe502e3fae8c4.tar.gz
org.eclipse.papyrus-08557477db0ce7a3a43bafdb9eefe502e3fae8c4.tar.xz
org.eclipse.papyrus-08557477db0ce7a3a43bafdb9eefe502e3fae8c4.zip
Bug 527940: [All Diagrams] EditPolicies "RemoveOrphanViewPolicy" for
each diagrams must be disabled Remove dead code after removing all the 'RemoveOrphanViewPolicy'. Change-Id: I5e9e433745974e870879e752ec0afd0b5fbae52e Signed-off-by: Nicolas FAUVERGUE <nicolas.fauvergue@cea.fr>
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/helper/CleanDiagramHelper.java9
1 files changed, 3 insertions, 6 deletions
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/helper/CleanDiagramHelper.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/helper/CleanDiagramHelper.java
index c409585f5e1..5aac1c73580 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/helper/CleanDiagramHelper.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/helper/CleanDiagramHelper.java
@@ -1,5 +1,5 @@
/*****************************************************************************
- * Copyright (c) 2009 CEA LIST.
+ * Copyright (c) 2009, 2019 CEA LIST.
*
*
* All rights reserved. This program and the accompanying materials
@@ -11,6 +11,7 @@
*
* Contributors:
* Patrick Tessier (CEA LIST) Patrick.tessier@cea.fr - Initial API and implementation
+ * Nicolas FAUVERGUE (CEA LIST) nicolas.fauvergue@cea.fr - Bug 527940
*
*****************************************************************************/
package org.eclipse.papyrus.uml.diagram.common.helper;
@@ -56,7 +57,7 @@ public class CleanDiagramHelper {
protected static CleanDiagramHelper cleanDiagramHelper;
/** The view to remove. */
- protected ArrayList<View> viewToRemove = new ArrayList<View>();
+ protected ArrayList<View> viewToRemove = new ArrayList<>();
protected DiagramEditPart selectedElement;
@@ -72,10 +73,6 @@ public class CleanDiagramHelper {
*/
public void run(DiagramEditPart diagramEditPart) {
this.selectedElement = diagramEditPart;
- OrphanViewPolicy removeOrphanViewPolicy = (OrphanViewPolicy) diagramEditPart.getEditPolicy("RemoveOrphanView");
- if (removeOrphanViewPolicy != null) {
- removeOrphanViewPolicy.forceRefresh();
- }
scan(diagramEditPart);
deleteUnknownViews();

Back to the top