Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraradermache2013-02-25 09:40:01 +0000
committeraradermache2013-02-25 09:40:01 +0000
commit126a9b91db1cb40e14de4f94a08f39b669b71c7c (patch)
tree8207d173ed0c0d597b758949ccfb3514f18a839b /plugins/developer/org.eclipse.papyrus.gmf.editpartview
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.editpartview')
-rw-r--r--plugins/developer/org.eclipse.papyrus.gmf.editpartview/src/org/eclipse/papyrus/gmf/editpartview/view/EditPartHierarchyView.java19
1 files changed, 1 insertions, 18 deletions
diff --git a/plugins/developer/org.eclipse.papyrus.gmf.editpartview/src/org/eclipse/papyrus/gmf/editpartview/view/EditPartHierarchyView.java b/plugins/developer/org.eclipse.papyrus.gmf.editpartview/src/org/eclipse/papyrus/gmf/editpartview/view/EditPartHierarchyView.java
index e734e07f4cd..acbc45119b4 100644
--- a/plugins/developer/org.eclipse.papyrus.gmf.editpartview/src/org/eclipse/papyrus/gmf/editpartview/view/EditPartHierarchyView.java
+++ b/plugins/developer/org.eclipse.papyrus.gmf.editpartview/src/org/eclipse/papyrus/gmf/editpartview/view/EditPartHierarchyView.java
@@ -13,9 +13,6 @@
*/
package org.eclipse.papyrus.gmf.editpartview.view;
-import java.util.ArrayList;
-
-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;
@@ -41,19 +38,6 @@ import org.eclipse.ui.part.ViewPart;
*/
public class EditPartHierarchyView 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;
@@ -222,10 +206,9 @@ public class EditPartHierarchyView 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