Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/util/ASDEditPartFactoryHelper.java')
-rw-r--r--bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/util/ASDEditPartFactoryHelper.java38
1 files changed, 0 insertions, 38 deletions
diff --git a/bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/util/ASDEditPartFactoryHelper.java b/bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/util/ASDEditPartFactoryHelper.java
deleted file mode 100644
index 5741cd7e5..000000000
--- a/bundles/org.eclipse.wst.wsdl.ui/src-asd/org/eclipse/wst/wsdl/ui/internal/asd/util/ASDEditPartFactoryHelper.java
+++ /dev/null
@@ -1,38 +0,0 @@
-package org.eclipse.wst.wsdl.ui.internal.asd.util;
-
-import org.eclipse.gef.EditPartFactory;
-import org.eclipse.gef.GraphicalViewer;
-import org.eclipse.ui.IEditorPart;
-import org.eclipse.ui.PlatformUI;
-import org.eclipse.wst.wsdl.ui.internal.asd.design.DesignViewGraphicalViewer;
-import org.eclipse.wst.wsdl.ui.internal.asd.design.editparts.ASDEditPartFactory;
-
-public class ASDEditPartFactoryHelper {
- private static ASDEditPartFactoryHelper instance;
-
- private EditPartFactory editPartFactory;
-
- public static ASDEditPartFactoryHelper getInstance() {
- if (instance == null) {
- instance = new ASDEditPartFactoryHelper();
- }
-
- return instance;
- }
-
- public EditPartFactory getEditPartFactory() {
- if (editPartFactory == null) {
- editPartFactory = new ASDEditPartFactory();
- }
- return editPartFactory;
- }
-
- public void setEditPartFactory(EditPartFactory factory) {
- editPartFactory = factory;
- IEditorPart editor = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getActiveEditor();
- Object adapter = editor.getAdapter(GraphicalViewer.class);
- if (adapter instanceof DesignViewGraphicalViewer) {
- ((DesignViewGraphicalViewer) adapter).setEditPartFactory(factory);
- }
- }
-}

Back to the top