Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraradermache2013-02-25 04:40:01 -0500
committeraradermache2013-02-25 04:40:01 -0500
commit126a9b91db1cb40e14de4f94a08f39b669b71c7c (patch)
tree8207d173ed0c0d597b758949ccfb3514f18a839b /plugins/developer/org.eclipse.papyrus.gmf.figureview
parent101f1820249c1c6c38d8ab62993638f61b4288d4 (diff)
downloadorg.eclipse.papyrus-126a9b91db1cb40e14de4f94a08f39b669b71c7c.tar.gz
org.eclipse.papyrus-126a9b91db1cb40e14de4f94a08f39b669b71c7c.tar.xz
org.eclipse.papyrus-126a9b91db1cb40e14de4f94a08f39b669b71c7c.zip
Clean-up unneeded edit-policies code
Diffstat (limited to 'plugins/developer/org.eclipse.papyrus.gmf.figureview')
-rw-r--r--plugins/developer/org.eclipse.papyrus.gmf.figureview/src/org/eclipse/papyrus/gmf/figureview/view/FigureHierarchyView.java19
1 files changed, 1 insertions, 18 deletions
diff --git a/plugins/developer/org.eclipse.papyrus.gmf.figureview/src/org/eclipse/papyrus/gmf/figureview/view/FigureHierarchyView.java b/plugins/developer/org.eclipse.papyrus.gmf.figureview/src/org/eclipse/papyrus/gmf/figureview/view/FigureHierarchyView.java
index 1e0b1f16e30..fec6cb57121 100644
--- a/plugins/developer/org.eclipse.papyrus.gmf.figureview/src/org/eclipse/papyrus/gmf/figureview/view/FigureHierarchyView.java
+++ b/plugins/developer/org.eclipse.papyrus.gmf.figureview/src/org/eclipse/papyrus/gmf/figureview/view/FigureHierarchyView.java
@@ -13,10 +13,7 @@
*/
package org.eclipse.papyrus.gmf.figureview.view;
-import java.util.ArrayList;
-
import org.eclipse.draw2d.IFigure;
-import org.eclipse.gef.EditPolicy;
import org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPart;
import org.eclipse.jface.action.Action;
import org.eclipse.jface.action.IToolBarManager;
@@ -43,19 +40,6 @@ import org.eclipse.ui.part.ViewPart;
*/
public class FigureHierarchyView extends ViewPart {
- /**
- * this a object that represents a line into the table
- */
- class EditPolicyDescriptor {
-
- public String role = "NO ROLE";
-
- public EditPolicy policy = null;
- }
-
-
- private ArrayList<EditPolicyDescriptor> editPolicyList = new ArrayList<EditPolicyDescriptor>();
-
private ISelectionListener myEditPartlistener;
private TreeViewer viewer;
@@ -225,10 +209,9 @@ public class FigureHierarchyView extends ViewPart {
super.dispose();
ISelectionService selectionService = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getSelectionService();
selectionService.removeSelectionListener(myEditPartlistener);
- clear();
}
private void clear() {
- this.editPolicyList.clear();
+ viewer.setInput(null);
}
}

Back to the top