Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoratikhomirov2009-02-23 18:45:18 +0000
committeratikhomirov2009-02-23 18:45:18 +0000
commitc70959f539113fc09d3ece86d3926514b6944ab0 (patch)
tree46ef800c47d77ef2276c285d81fdcf9a46043935 /examples
parent64cc497aad2a97a48bcc4a5ab6cd59d3b181d80d (diff)
downloadorg.eclipse.gmf-tooling-c70959f539113fc09d3ece86d3926514b6944ab0.tar.gz
org.eclipse.gmf-tooling-c70959f539113fc09d3ece86d3926514b6944ab0.tar.xz
org.eclipse.gmf-tooling-c70959f539113fc09d3ece86d3926514b6944ab0.zip
regenerated with [257119] Get rid of ViewFactories
Diffstat (limited to 'examples')
-rw-r--r--examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/providers/EcoreViewProvider.java9
-rw-r--r--examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EAnnotation2ViewFactory.java46
-rw-r--r--examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EAnnotationDetailsViewFactory.java75
-rw-r--r--examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EAnnotationReferencesViewFactory.java49
-rw-r--r--examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EAnnotationSourceViewFactory.java32
-rw-r--r--examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EAnnotationViewFactory.java69
-rw-r--r--examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EAttributeViewFactory.java46
-rw-r--r--examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EClass2ViewFactory.java46
-rw-r--r--examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EClassAttributesViewFactory.java75
-rw-r--r--examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EClassClassAnnotationsViewFactory.java75
-rw-r--r--examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EClassESuperTypesViewFactory.java49
-rw-r--r--examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EClassNameViewFactory.java32
-rw-r--r--examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EClassOperationsViewFactory.java75
-rw-r--r--examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EClassViewFactory.java73
-rw-r--r--examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EDataType2ViewFactory.java46
-rw-r--r--examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EDataTypeDataTypeAnnotationsViewFactory.java75
-rw-r--r--examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EDataTypeNameViewFactory.java32
-rw-r--r--examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EDataTypeViewFactory.java69
-rw-r--r--examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EEnum2ViewFactory.java46
-rw-r--r--examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EEnumEnumAnnotationsViewFactory.java75
-rw-r--r--examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EEnumLiteralViewFactory.java46
-rw-r--r--examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EEnumLiteralsViewFactory.java75
-rw-r--r--examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EEnumNameViewFactory.java32
-rw-r--r--examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EEnumViewFactory.java71
-rw-r--r--examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EOperationViewFactory.java46
-rw-r--r--examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EPackage2ViewFactory.java82
-rw-r--r--examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EPackage3ViewFactory.java46
-rw-r--r--examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EPackageClassesViewFactory.java75
-rw-r--r--examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EPackageDataTypesViewFactory.java75
-rw-r--r--examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EPackageEnumsViewFactory.java75
-rw-r--r--examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EPackageNameViewFactory.java32
-rw-r--r--examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EPackagePackageAnnotationsViewFactory.java75
-rw-r--r--examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EPackagePackagesViewFactory.java75
-rw-r--r--examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EPackageViewFactory.java42
-rw-r--r--examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EReference2ViewFactory.java61
-rw-r--r--examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EReferenceLowerBoundUpperBound2ViewFactory.java50
-rw-r--r--examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EReferenceLowerBoundUpperBoundViewFactory.java50
-rw-r--r--examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EReferenceName2ViewFactory.java50
-rw-r--r--examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EReferenceNameViewFactory.java50
-rw-r--r--examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EReferenceViewFactory.java61
-rw-r--r--examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EStringToStringMapEntryViewFactory.java46
41 files changed, 6 insertions, 2303 deletions
diff --git a/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/providers/EcoreViewProvider.java b/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/providers/EcoreViewProvider.java
index 59b9215aa..a4f287f31 100644
--- a/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/providers/EcoreViewProvider.java
+++ b/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/providers/EcoreViewProvider.java
@@ -77,6 +77,7 @@ import org.eclipse.gmf.runtime.emf.type.core.IHintedType;
import org.eclipse.gmf.runtime.notation.BasicCompartment;
import org.eclipse.gmf.runtime.notation.BasicDecorationNode;
import org.eclipse.gmf.runtime.notation.Connector;
+import org.eclipse.gmf.runtime.notation.DecorationNode;
import org.eclipse.gmf.runtime.notation.Diagram;
import org.eclipse.gmf.runtime.notation.Edge;
import org.eclipse.gmf.runtime.notation.FontStyle;
@@ -212,7 +213,7 @@ public class EcoreViewProvider extends AbstractProvider implements IViewProvider
return false; // foreign element type
}
String elementTypeHint = ((IHintedType) elementType).getSemanticHint();
- if (elementTypeHint == null || !elementTypeHint.equals(op.getSemanticHint())) {
+ if (elementTypeHint == null || (op.getSemanticHint() != null && !elementTypeHint.equals(op.getSemanticHint()))) {
return false; // our hint is visual id and must be specified, and it should be the same as in element type
}
int visualID = EcoreVisualIDRegistry.getVisualID(elementTypeHint);
@@ -284,7 +285,9 @@ public class EcoreViewProvider extends AbstractProvider implements IViewProvider
* @generated
*/
public Edge createEdge(IAdaptable semanticAdapter, View containerView, String semanticHint, int index, boolean persisted, PreferencesHint preferencesHint) {
- switch (EcoreVisualIDRegistry.getVisualID(semanticHint)) {
+ IElementType elementType = getSemanticElementType(semanticAdapter);
+ String elementTypeHint = ((IHintedType) elementType).getSemanticHint();
+ switch (EcoreVisualIDRegistry.getVisualID(elementTypeHint)) {
case EAnnotationReferencesEditPart.VISUAL_ID:
return createEAnnotationReferences_4001(containerView, index, persisted, preferencesHint);
case EReferenceEditPart.VISUAL_ID:
@@ -742,7 +745,7 @@ public class EcoreViewProvider extends AbstractProvider implements IViewProvider
* @generated
*/
private Node createLabel(View owner, String hint) {
- BasicDecorationNode rv = NotationFactory.eINSTANCE.createBasicDecorationNode();
+ DecorationNode rv = NotationFactory.eINSTANCE.createDecorationNode();
rv.setType(hint);
ViewUtil.insertChildView(owner, rv, ViewUtil.APPEND, true);
return rv;
diff --git a/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EAnnotation2ViewFactory.java b/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EAnnotation2ViewFactory.java
deleted file mode 100644
index a9e0f8c0b..000000000
--- a/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EAnnotation2ViewFactory.java
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- * Copyright (c) 2006, 2008 Borland Software Corp.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Alexander Shatalin (Borland) - initial API and implementation
- */
-package org.eclipse.gmf.ecore.view.factories;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.gmf.ecore.edit.parts.EAnnotation2EditPart;
-import org.eclipse.gmf.ecore.part.EcoreVisualIDRegistry;
-import org.eclipse.gmf.runtime.diagram.ui.view.factories.AbstractLabelViewFactory;
-import org.eclipse.gmf.runtime.notation.View;
-
-/**
- * @generated
- */
-public class EAnnotation2ViewFactory extends AbstractLabelViewFactory {
-
- /**
- * @generated
- */
- protected List createStyles(View view) {
- List styles = new ArrayList();
- return styles;
- }
-
- /**
- * @generated
- */
- protected void decorateView(View containerView, View view, IAdaptable semanticAdapter, String semanticHint, int index, boolean persisted) {
- if (semanticHint == null) {
- semanticHint = EcoreVisualIDRegistry.getType(EAnnotation2EditPart.VISUAL_ID);
- view.setType(semanticHint);
- }
- super.decorateView(containerView, view, semanticAdapter, semanticHint, index, persisted);
- }
-}
diff --git a/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EAnnotationDetailsViewFactory.java b/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EAnnotationDetailsViewFactory.java
deleted file mode 100644
index cb60a0762..000000000
--- a/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EAnnotationDetailsViewFactory.java
+++ /dev/null
@@ -1,75 +0,0 @@
-/*
- * Copyright (c) 2006, 2008 Borland Software Corp.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Alexander Shatalin (Borland) - initial API and implementation
- */
-package org.eclipse.gmf.ecore.view.factories;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.gmf.ecore.edit.parts.EAnnotationDetailsEditPart;
-import org.eclipse.gmf.ecore.part.EcoreVisualIDRegistry;
-import org.eclipse.gmf.runtime.diagram.ui.view.factories.BasicNodeViewFactory;
-import org.eclipse.gmf.runtime.notation.DrawerStyle;
-import org.eclipse.gmf.runtime.notation.NotationFactory;
-import org.eclipse.gmf.runtime.notation.NotationPackage;
-import org.eclipse.gmf.runtime.notation.TitleStyle;
-import org.eclipse.gmf.runtime.notation.View;
-
-/**
- * @generated
- */
-public class EAnnotationDetailsViewFactory extends BasicNodeViewFactory {
-
- /**
- * @generated
- */
- protected List createStyles(View view) {
- List styles = new ArrayList();
- styles.add(NotationFactory.eINSTANCE.createDrawerStyle());
- styles.add(NotationFactory.eINSTANCE.createSortingStyle());
- styles.add(NotationFactory.eINSTANCE.createFilteringStyle());
- return styles;
- }
-
- /**
- * @generated
- */
- protected void decorateView(View containerView, View view, IAdaptable semanticAdapter, String semanticHint, int index, boolean persisted) {
- if (semanticHint == null) {
- semanticHint = EcoreVisualIDRegistry.getType(EAnnotationDetailsEditPart.VISUAL_ID);
- view.setType(semanticHint);
- }
- super.decorateView(containerView, view, semanticAdapter, semanticHint, index, persisted);
- setupCompartmentTitle(view);
- setupCompartmentCollapsed(view);
- }
-
- /**
- * @generated
- */
- protected void setupCompartmentTitle(View view) {
- TitleStyle titleStyle = (TitleStyle) view.getStyle(NotationPackage.eINSTANCE.getTitleStyle());
- if (titleStyle != null) {
- titleStyle.setShowTitle(true);
- }
- }
-
- /**
- * @generated
- */
- protected void setupCompartmentCollapsed(View view) {
- DrawerStyle drawerStyle = (DrawerStyle) view.getStyle(NotationPackage.eINSTANCE.getDrawerStyle());
- if (drawerStyle != null) {
- drawerStyle.setCollapsed(false);
- }
- }
-}
diff --git a/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EAnnotationReferencesViewFactory.java b/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EAnnotationReferencesViewFactory.java
deleted file mode 100644
index 0291d0a68..000000000
--- a/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EAnnotationReferencesViewFactory.java
+++ /dev/null
@@ -1,49 +0,0 @@
-/*
- * Copyright (c) 2006, 2008 Borland Software Corp.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Alexander Shatalin (Borland) - initial API and implementation
- */
-package org.eclipse.gmf.ecore.view.factories;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.gmf.ecore.edit.parts.EAnnotationReferencesEditPart;
-import org.eclipse.gmf.ecore.part.EcoreVisualIDRegistry;
-import org.eclipse.gmf.runtime.diagram.ui.view.factories.ConnectionViewFactory;
-import org.eclipse.gmf.runtime.notation.NotationFactory;
-import org.eclipse.gmf.runtime.notation.View;
-
-/**
- * @generated
- */
-public class EAnnotationReferencesViewFactory extends ConnectionViewFactory {
-
- /**
- * @generated
- */
- protected List createStyles(View view) {
- List styles = new ArrayList();
- styles.add(NotationFactory.eINSTANCE.createConnectorStyle());
- styles.add(NotationFactory.eINSTANCE.createFontStyle());
- return styles;
- }
-
- /**
- * @generated
- */
- protected void decorateView(View containerView, View view, IAdaptable semanticAdapter, String semanticHint, int index, boolean persisted) {
- if (semanticHint == null) {
- semanticHint = EcoreVisualIDRegistry.getType(EAnnotationReferencesEditPart.VISUAL_ID);
- view.setType(semanticHint);
- }
- super.decorateView(containerView, view, semanticAdapter, semanticHint, index, persisted);
- }
-}
diff --git a/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EAnnotationSourceViewFactory.java b/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EAnnotationSourceViewFactory.java
deleted file mode 100644
index 7a94bca3f..000000000
--- a/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EAnnotationSourceViewFactory.java
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * Copyright (c) 2006, 2008 Borland Software Corp.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Alexander Shatalin (Borland) - initial API and implementation
- */
-package org.eclipse.gmf.ecore.view.factories;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.gmf.runtime.diagram.ui.view.factories.BasicNodeViewFactory;
-import org.eclipse.gmf.runtime.notation.View;
-
-/**
- * @generated
- */
-public class EAnnotationSourceViewFactory extends BasicNodeViewFactory {
-
- /**
- * @generated
- */
- protected List createStyles(View view) {
- List styles = new ArrayList();
- return styles;
- }
-}
diff --git a/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EAnnotationViewFactory.java b/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EAnnotationViewFactory.java
deleted file mode 100644
index 9820a7575..000000000
--- a/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EAnnotationViewFactory.java
+++ /dev/null
@@ -1,69 +0,0 @@
-/*
- * Copyright (c) 2006, 2008 Borland Software Corp.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Alexander Shatalin (Borland) - initial API and implementation
- */
-package org.eclipse.gmf.ecore.view.factories;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.emf.ecore.EAnnotation;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EcoreFactory;
-import org.eclipse.gmf.ecore.edit.parts.EAnnotationDetailsEditPart;
-import org.eclipse.gmf.ecore.edit.parts.EAnnotationEditPart;
-import org.eclipse.gmf.ecore.edit.parts.EAnnotationSourceEditPart;
-import org.eclipse.gmf.ecore.edit.parts.EPackageEditPart;
-import org.eclipse.gmf.ecore.part.EcoreVisualIDRegistry;
-import org.eclipse.gmf.runtime.diagram.core.util.ViewUtil;
-import org.eclipse.gmf.runtime.diagram.ui.view.factories.AbstractShapeViewFactory;
-import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
-import org.eclipse.gmf.runtime.notation.NotationFactory;
-import org.eclipse.gmf.runtime.notation.View;
-
-/**
- * @generated
- */
-public class EAnnotationViewFactory extends AbstractShapeViewFactory {
-
- /**
- * @generated
- */
- protected List createStyles(View view) {
- List styles = new ArrayList();
- styles.add(NotationFactory.eINSTANCE.createShapeStyle());
- return styles;
- }
-
- /**
- * @generated
- */
- protected void decorateView(View containerView, View view, IAdaptable semanticAdapter, String semanticHint, int index, boolean persisted) {
- if (semanticHint == null) {
- semanticHint = EcoreVisualIDRegistry.getType(EAnnotationEditPart.VISUAL_ID);
- view.setType(semanticHint);
- }
- super.decorateView(containerView, view, semanticAdapter, semanticHint, index, persisted);
- if (!EPackageEditPart.MODEL_ID.equals(EcoreVisualIDRegistry.getModelID(containerView))) {
- EAnnotation shortcutAnnotation = EcoreFactory.eINSTANCE.createEAnnotation();
- shortcutAnnotation.setSource("Shortcut"); //$NON-NLS-1$
- shortcutAnnotation.getDetails().put("modelID", EPackageEditPart.MODEL_ID); //$NON-NLS-1$
- view.getEAnnotations().add(shortcutAnnotation);
- }
- IAdaptable eObjectAdapter = null;
- EObject eObject = (EObject) semanticAdapter.getAdapter(EObject.class);
- if (eObject != null) {
- eObjectAdapter = new EObjectAdapter(eObject);
- }
- getViewService().createNode(eObjectAdapter, view, EcoreVisualIDRegistry.getType(EAnnotationSourceEditPart.VISUAL_ID), ViewUtil.APPEND, true, getPreferencesHint());
- getViewService().createNode(eObjectAdapter, view, EcoreVisualIDRegistry.getType(EAnnotationDetailsEditPart.VISUAL_ID), ViewUtil.APPEND, true, getPreferencesHint());
- }
-}
diff --git a/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EAttributeViewFactory.java b/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EAttributeViewFactory.java
deleted file mode 100644
index 9f10f4301..000000000
--- a/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EAttributeViewFactory.java
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- * Copyright (c) 2006, 2008 Borland Software Corp.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Alexander Shatalin (Borland) - initial API and implementation
- */
-package org.eclipse.gmf.ecore.view.factories;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.gmf.ecore.edit.parts.EAttributeEditPart;
-import org.eclipse.gmf.ecore.part.EcoreVisualIDRegistry;
-import org.eclipse.gmf.runtime.diagram.ui.view.factories.AbstractLabelViewFactory;
-import org.eclipse.gmf.runtime.notation.View;
-
-/**
- * @generated
- */
-public class EAttributeViewFactory extends AbstractLabelViewFactory {
-
- /**
- * @generated
- */
- protected List createStyles(View view) {
- List styles = new ArrayList();
- return styles;
- }
-
- /**
- * @generated
- */
- protected void decorateView(View containerView, View view, IAdaptable semanticAdapter, String semanticHint, int index, boolean persisted) {
- if (semanticHint == null) {
- semanticHint = EcoreVisualIDRegistry.getType(EAttributeEditPart.VISUAL_ID);
- view.setType(semanticHint);
- }
- super.decorateView(containerView, view, semanticAdapter, semanticHint, index, persisted);
- }
-}
diff --git a/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EClass2ViewFactory.java b/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EClass2ViewFactory.java
deleted file mode 100644
index b1ce48d07..000000000
--- a/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EClass2ViewFactory.java
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- * Copyright (c) 2006, 2008 Borland Software Corp.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Alexander Shatalin (Borland) - initial API and implementation
- */
-package org.eclipse.gmf.ecore.view.factories;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.gmf.ecore.edit.parts.EClass2EditPart;
-import org.eclipse.gmf.ecore.part.EcoreVisualIDRegistry;
-import org.eclipse.gmf.runtime.diagram.ui.view.factories.AbstractLabelViewFactory;
-import org.eclipse.gmf.runtime.notation.View;
-
-/**
- * @generated
- */
-public class EClass2ViewFactory extends AbstractLabelViewFactory {
-
- /**
- * @generated
- */
- protected List createStyles(View view) {
- List styles = new ArrayList();
- return styles;
- }
-
- /**
- * @generated
- */
- protected void decorateView(View containerView, View view, IAdaptable semanticAdapter, String semanticHint, int index, boolean persisted) {
- if (semanticHint == null) {
- semanticHint = EcoreVisualIDRegistry.getType(EClass2EditPart.VISUAL_ID);
- view.setType(semanticHint);
- }
- super.decorateView(containerView, view, semanticAdapter, semanticHint, index, persisted);
- }
-}
diff --git a/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EClassAttributesViewFactory.java b/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EClassAttributesViewFactory.java
deleted file mode 100644
index 3f8707ca7..000000000
--- a/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EClassAttributesViewFactory.java
+++ /dev/null
@@ -1,75 +0,0 @@
-/*
- * Copyright (c) 2006, 2008 Borland Software Corp.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Alexander Shatalin (Borland) - initial API and implementation
- */
-package org.eclipse.gmf.ecore.view.factories;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.gmf.ecore.edit.parts.EClassAttributesEditPart;
-import org.eclipse.gmf.ecore.part.EcoreVisualIDRegistry;
-import org.eclipse.gmf.runtime.diagram.ui.view.factories.BasicNodeViewFactory;
-import org.eclipse.gmf.runtime.notation.DrawerStyle;
-import org.eclipse.gmf.runtime.notation.NotationFactory;
-import org.eclipse.gmf.runtime.notation.NotationPackage;
-import org.eclipse.gmf.runtime.notation.TitleStyle;
-import org.eclipse.gmf.runtime.notation.View;
-
-/**
- * @generated
- */
-public class EClassAttributesViewFactory extends BasicNodeViewFactory {
-
- /**
- * @generated
- */
- protected List createStyles(View view) {
- List styles = new ArrayList();
- styles.add(NotationFactory.eINSTANCE.createDrawerStyle());
- styles.add(NotationFactory.eINSTANCE.createSortingStyle());
- styles.add(NotationFactory.eINSTANCE.createFilteringStyle());
- return styles;
- }
-
- /**
- * @generated
- */
- protected void decorateView(View containerView, View view, IAdaptable semanticAdapter, String semanticHint, int index, boolean persisted) {
- if (semanticHint == null) {
- semanticHint = EcoreVisualIDRegistry.getType(EClassAttributesEditPart.VISUAL_ID);
- view.setType(semanticHint);
- }
- super.decorateView(containerView, view, semanticAdapter, semanticHint, index, persisted);
- setupCompartmentTitle(view);
- setupCompartmentCollapsed(view);
- }
-
- /**
- * @generated
- */
- protected void setupCompartmentTitle(View view) {
- TitleStyle titleStyle = (TitleStyle) view.getStyle(NotationPackage.eINSTANCE.getTitleStyle());
- if (titleStyle != null) {
- titleStyle.setShowTitle(true);
- }
- }
-
- /**
- * @generated
- */
- protected void setupCompartmentCollapsed(View view) {
- DrawerStyle drawerStyle = (DrawerStyle) view.getStyle(NotationPackage.eINSTANCE.getDrawerStyle());
- if (drawerStyle != null) {
- drawerStyle.setCollapsed(false);
- }
- }
-}
diff --git a/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EClassClassAnnotationsViewFactory.java b/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EClassClassAnnotationsViewFactory.java
deleted file mode 100644
index 287aa798c..000000000
--- a/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EClassClassAnnotationsViewFactory.java
+++ /dev/null
@@ -1,75 +0,0 @@
-/*
- * Copyright (c) 2006, 2008 Borland Software Corp.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Alexander Shatalin (Borland) - initial API and implementation
- */
-package org.eclipse.gmf.ecore.view.factories;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.gmf.ecore.edit.parts.EClassClassAnnotationsEditPart;
-import org.eclipse.gmf.ecore.part.EcoreVisualIDRegistry;
-import org.eclipse.gmf.runtime.diagram.ui.view.factories.BasicNodeViewFactory;
-import org.eclipse.gmf.runtime.notation.DrawerStyle;
-import org.eclipse.gmf.runtime.notation.NotationFactory;
-import org.eclipse.gmf.runtime.notation.NotationPackage;
-import org.eclipse.gmf.runtime.notation.TitleStyle;
-import org.eclipse.gmf.runtime.notation.View;
-
-/**
- * @generated
- */
-public class EClassClassAnnotationsViewFactory extends BasicNodeViewFactory {
-
- /**
- * @generated
- */
- protected List createStyles(View view) {
- List styles = new ArrayList();
- styles.add(NotationFactory.eINSTANCE.createDrawerStyle());
- styles.add(NotationFactory.eINSTANCE.createSortingStyle());
- styles.add(NotationFactory.eINSTANCE.createFilteringStyle());
- return styles;
- }
-
- /**
- * @generated
- */
- protected void decorateView(View containerView, View view, IAdaptable semanticAdapter, String semanticHint, int index, boolean persisted) {
- if (semanticHint == null) {
- semanticHint = EcoreVisualIDRegistry.getType(EClassClassAnnotationsEditPart.VISUAL_ID);
- view.setType(semanticHint);
- }
- super.decorateView(containerView, view, semanticAdapter, semanticHint, index, persisted);
- setupCompartmentTitle(view);
- setupCompartmentCollapsed(view);
- }
-
- /**
- * @generated
- */
- protected void setupCompartmentTitle(View view) {
- TitleStyle titleStyle = (TitleStyle) view.getStyle(NotationPackage.eINSTANCE.getTitleStyle());
- if (titleStyle != null) {
- titleStyle.setShowTitle(true);
- }
- }
-
- /**
- * @generated
- */
- protected void setupCompartmentCollapsed(View view) {
- DrawerStyle drawerStyle = (DrawerStyle) view.getStyle(NotationPackage.eINSTANCE.getDrawerStyle());
- if (drawerStyle != null) {
- drawerStyle.setCollapsed(false);
- }
- }
-}
diff --git a/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EClassESuperTypesViewFactory.java b/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EClassESuperTypesViewFactory.java
deleted file mode 100644
index 76bf0bef9..000000000
--- a/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EClassESuperTypesViewFactory.java
+++ /dev/null
@@ -1,49 +0,0 @@
-/*
- * Copyright (c) 2006, 2008 Borland Software Corp.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Alexander Shatalin (Borland) - initial API and implementation
- */
-package org.eclipse.gmf.ecore.view.factories;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.gmf.ecore.edit.parts.EClassESuperTypesEditPart;
-import org.eclipse.gmf.ecore.part.EcoreVisualIDRegistry;
-import org.eclipse.gmf.runtime.diagram.ui.view.factories.ConnectionViewFactory;
-import org.eclipse.gmf.runtime.notation.NotationFactory;
-import org.eclipse.gmf.runtime.notation.View;
-
-/**
- * @generated
- */
-public class EClassESuperTypesViewFactory extends ConnectionViewFactory {
-
- /**
- * @generated
- */
- protected List createStyles(View view) {
- List styles = new ArrayList();
- styles.add(NotationFactory.eINSTANCE.createConnectorStyle());
- styles.add(NotationFactory.eINSTANCE.createFontStyle());
- return styles;
- }
-
- /**
- * @generated
- */
- protected void decorateView(View containerView, View view, IAdaptable semanticAdapter, String semanticHint, int index, boolean persisted) {
- if (semanticHint == null) {
- semanticHint = EcoreVisualIDRegistry.getType(EClassESuperTypesEditPart.VISUAL_ID);
- view.setType(semanticHint);
- }
- super.decorateView(containerView, view, semanticAdapter, semanticHint, index, persisted);
- }
-}
diff --git a/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EClassNameViewFactory.java b/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EClassNameViewFactory.java
deleted file mode 100644
index 1ac2fc778..000000000
--- a/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EClassNameViewFactory.java
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * Copyright (c) 2006, 2008 Borland Software Corp.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Alexander Shatalin (Borland) - initial API and implementation
- */
-package org.eclipse.gmf.ecore.view.factories;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.gmf.runtime.diagram.ui.view.factories.BasicNodeViewFactory;
-import org.eclipse.gmf.runtime.notation.View;
-
-/**
- * @generated
- */
-public class EClassNameViewFactory extends BasicNodeViewFactory {
-
- /**
- * @generated
- */
- protected List createStyles(View view) {
- List styles = new ArrayList();
- return styles;
- }
-}
diff --git a/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EClassOperationsViewFactory.java b/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EClassOperationsViewFactory.java
deleted file mode 100644
index 88a409238..000000000
--- a/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EClassOperationsViewFactory.java
+++ /dev/null
@@ -1,75 +0,0 @@
-/*
- * Copyright (c) 2006, 2008 Borland Software Corp.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Alexander Shatalin (Borland) - initial API and implementation
- */
-package org.eclipse.gmf.ecore.view.factories;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.gmf.ecore.edit.parts.EClassOperationsEditPart;
-import org.eclipse.gmf.ecore.part.EcoreVisualIDRegistry;
-import org.eclipse.gmf.runtime.diagram.ui.view.factories.BasicNodeViewFactory;
-import org.eclipse.gmf.runtime.notation.DrawerStyle;
-import org.eclipse.gmf.runtime.notation.NotationFactory;
-import org.eclipse.gmf.runtime.notation.NotationPackage;
-import org.eclipse.gmf.runtime.notation.TitleStyle;
-import org.eclipse.gmf.runtime.notation.View;
-
-/**
- * @generated
- */
-public class EClassOperationsViewFactory extends BasicNodeViewFactory {
-
- /**
- * @generated
- */
- protected List createStyles(View view) {
- List styles = new ArrayList();
- styles.add(NotationFactory.eINSTANCE.createDrawerStyle());
- styles.add(NotationFactory.eINSTANCE.createSortingStyle());
- styles.add(NotationFactory.eINSTANCE.createFilteringStyle());
- return styles;
- }
-
- /**
- * @generated
- */
- protected void decorateView(View containerView, View view, IAdaptable semanticAdapter, String semanticHint, int index, boolean persisted) {
- if (semanticHint == null) {
- semanticHint = EcoreVisualIDRegistry.getType(EClassOperationsEditPart.VISUAL_ID);
- view.setType(semanticHint);
- }
- super.decorateView(containerView, view, semanticAdapter, semanticHint, index, persisted);
- setupCompartmentTitle(view);
- setupCompartmentCollapsed(view);
- }
-
- /**
- * @generated
- */
- protected void setupCompartmentTitle(View view) {
- TitleStyle titleStyle = (TitleStyle) view.getStyle(NotationPackage.eINSTANCE.getTitleStyle());
- if (titleStyle != null) {
- titleStyle.setShowTitle(true);
- }
- }
-
- /**
- * @generated
- */
- protected void setupCompartmentCollapsed(View view) {
- DrawerStyle drawerStyle = (DrawerStyle) view.getStyle(NotationPackage.eINSTANCE.getDrawerStyle());
- if (drawerStyle != null) {
- drawerStyle.setCollapsed(false);
- }
- }
-}
diff --git a/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EClassViewFactory.java b/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EClassViewFactory.java
deleted file mode 100644
index 73527ab7b..000000000
--- a/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EClassViewFactory.java
+++ /dev/null
@@ -1,73 +0,0 @@
-/*
- * Copyright (c) 2006, 2008 Borland Software Corp.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Alexander Shatalin (Borland) - initial API and implementation
- */
-package org.eclipse.gmf.ecore.view.factories;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.emf.ecore.EAnnotation;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EcoreFactory;
-import org.eclipse.gmf.ecore.edit.parts.EClassAttributesEditPart;
-import org.eclipse.gmf.ecore.edit.parts.EClassClassAnnotationsEditPart;
-import org.eclipse.gmf.ecore.edit.parts.EClassEditPart;
-import org.eclipse.gmf.ecore.edit.parts.EClassNameEditPart;
-import org.eclipse.gmf.ecore.edit.parts.EClassOperationsEditPart;
-import org.eclipse.gmf.ecore.edit.parts.EPackageEditPart;
-import org.eclipse.gmf.ecore.part.EcoreVisualIDRegistry;
-import org.eclipse.gmf.runtime.diagram.core.util.ViewUtil;
-import org.eclipse.gmf.runtime.diagram.ui.view.factories.AbstractShapeViewFactory;
-import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
-import org.eclipse.gmf.runtime.notation.NotationFactory;
-import org.eclipse.gmf.runtime.notation.View;
-
-/**
- * @generated
- */
-public class EClassViewFactory extends AbstractShapeViewFactory {
-
- /**
- * @generated
- */
- protected List createStyles(View view) {
- List styles = new ArrayList();
- styles.add(NotationFactory.eINSTANCE.createShapeStyle());
- return styles;
- }
-
- /**
- * @generated
- */
- protected void decorateView(View containerView, View view, IAdaptable semanticAdapter, String semanticHint, int index, boolean persisted) {
- if (semanticHint == null) {
- semanticHint = EcoreVisualIDRegistry.getType(EClassEditPart.VISUAL_ID);
- view.setType(semanticHint);
- }
- super.decorateView(containerView, view, semanticAdapter, semanticHint, index, persisted);
- if (!EPackageEditPart.MODEL_ID.equals(EcoreVisualIDRegistry.getModelID(containerView))) {
- EAnnotation shortcutAnnotation = EcoreFactory.eINSTANCE.createEAnnotation();
- shortcutAnnotation.setSource("Shortcut"); //$NON-NLS-1$
- shortcutAnnotation.getDetails().put("modelID", EPackageEditPart.MODEL_ID); //$NON-NLS-1$
- view.getEAnnotations().add(shortcutAnnotation);
- }
- IAdaptable eObjectAdapter = null;
- EObject eObject = (EObject) semanticAdapter.getAdapter(EObject.class);
- if (eObject != null) {
- eObjectAdapter = new EObjectAdapter(eObject);
- }
- getViewService().createNode(eObjectAdapter, view, EcoreVisualIDRegistry.getType(EClassNameEditPart.VISUAL_ID), ViewUtil.APPEND, true, getPreferencesHint());
- getViewService().createNode(eObjectAdapter, view, EcoreVisualIDRegistry.getType(EClassAttributesEditPart.VISUAL_ID), ViewUtil.APPEND, true, getPreferencesHint());
- getViewService().createNode(eObjectAdapter, view, EcoreVisualIDRegistry.getType(EClassOperationsEditPart.VISUAL_ID), ViewUtil.APPEND, true, getPreferencesHint());
- getViewService().createNode(eObjectAdapter, view, EcoreVisualIDRegistry.getType(EClassClassAnnotationsEditPart.VISUAL_ID), ViewUtil.APPEND, true, getPreferencesHint());
- }
-}
diff --git a/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EDataType2ViewFactory.java b/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EDataType2ViewFactory.java
deleted file mode 100644
index fe4da938f..000000000
--- a/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EDataType2ViewFactory.java
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- * Copyright (c) 2006, 2008 Borland Software Corp.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Alexander Shatalin (Borland) - initial API and implementation
- */
-package org.eclipse.gmf.ecore.view.factories;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.gmf.ecore.edit.parts.EDataType2EditPart;
-import org.eclipse.gmf.ecore.part.EcoreVisualIDRegistry;
-import org.eclipse.gmf.runtime.diagram.ui.view.factories.AbstractLabelViewFactory;
-import org.eclipse.gmf.runtime.notation.View;
-
-/**
- * @generated
- */
-public class EDataType2ViewFactory extends AbstractLabelViewFactory {
-
- /**
- * @generated
- */
- protected List createStyles(View view) {
- List styles = new ArrayList();
- return styles;
- }
-
- /**
- * @generated
- */
- protected void decorateView(View containerView, View view, IAdaptable semanticAdapter, String semanticHint, int index, boolean persisted) {
- if (semanticHint == null) {
- semanticHint = EcoreVisualIDRegistry.getType(EDataType2EditPart.VISUAL_ID);
- view.setType(semanticHint);
- }
- super.decorateView(containerView, view, semanticAdapter, semanticHint, index, persisted);
- }
-}
diff --git a/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EDataTypeDataTypeAnnotationsViewFactory.java b/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EDataTypeDataTypeAnnotationsViewFactory.java
deleted file mode 100644
index c2541623e..000000000
--- a/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EDataTypeDataTypeAnnotationsViewFactory.java
+++ /dev/null
@@ -1,75 +0,0 @@
-/*
- * Copyright (c) 2006, 2008 Borland Software Corp.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Alexander Shatalin (Borland) - initial API and implementation
- */
-package org.eclipse.gmf.ecore.view.factories;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.gmf.ecore.edit.parts.EDataTypeDataTypeAnnotationsEditPart;
-import org.eclipse.gmf.ecore.part.EcoreVisualIDRegistry;
-import org.eclipse.gmf.runtime.diagram.ui.view.factories.BasicNodeViewFactory;
-import org.eclipse.gmf.runtime.notation.DrawerStyle;
-import org.eclipse.gmf.runtime.notation.NotationFactory;
-import org.eclipse.gmf.runtime.notation.NotationPackage;
-import org.eclipse.gmf.runtime.notation.TitleStyle;
-import org.eclipse.gmf.runtime.notation.View;
-
-/**
- * @generated
- */
-public class EDataTypeDataTypeAnnotationsViewFactory extends BasicNodeViewFactory {
-
- /**
- * @generated
- */
- protected List createStyles(View view) {
- List styles = new ArrayList();
- styles.add(NotationFactory.eINSTANCE.createDrawerStyle());
- styles.add(NotationFactory.eINSTANCE.createSortingStyle());
- styles.add(NotationFactory.eINSTANCE.createFilteringStyle());
- return styles;
- }
-
- /**
- * @generated
- */
- protected void decorateView(View containerView, View view, IAdaptable semanticAdapter, String semanticHint, int index, boolean persisted) {
- if (semanticHint == null) {
- semanticHint = EcoreVisualIDRegistry.getType(EDataTypeDataTypeAnnotationsEditPart.VISUAL_ID);
- view.setType(semanticHint);
- }
- super.decorateView(containerView, view, semanticAdapter, semanticHint, index, persisted);
- setupCompartmentTitle(view);
- setupCompartmentCollapsed(view);
- }
-
- /**
- * @generated
- */
- protected void setupCompartmentTitle(View view) {
- TitleStyle titleStyle = (TitleStyle) view.getStyle(NotationPackage.eINSTANCE.getTitleStyle());
- if (titleStyle != null) {
- titleStyle.setShowTitle(true);
- }
- }
-
- /**
- * @generated
- */
- protected void setupCompartmentCollapsed(View view) {
- DrawerStyle drawerStyle = (DrawerStyle) view.getStyle(NotationPackage.eINSTANCE.getDrawerStyle());
- if (drawerStyle != null) {
- drawerStyle.setCollapsed(false);
- }
- }
-}
diff --git a/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EDataTypeNameViewFactory.java b/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EDataTypeNameViewFactory.java
deleted file mode 100644
index 6f3bca048..000000000
--- a/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EDataTypeNameViewFactory.java
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * Copyright (c) 2006, 2008 Borland Software Corp.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Alexander Shatalin (Borland) - initial API and implementation
- */
-package org.eclipse.gmf.ecore.view.factories;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.gmf.runtime.diagram.ui.view.factories.BasicNodeViewFactory;
-import org.eclipse.gmf.runtime.notation.View;
-
-/**
- * @generated
- */
-public class EDataTypeNameViewFactory extends BasicNodeViewFactory {
-
- /**
- * @generated
- */
- protected List createStyles(View view) {
- List styles = new ArrayList();
- return styles;
- }
-}
diff --git a/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EDataTypeViewFactory.java b/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EDataTypeViewFactory.java
deleted file mode 100644
index 7e1e1a1d3..000000000
--- a/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EDataTypeViewFactory.java
+++ /dev/null
@@ -1,69 +0,0 @@
-/*
- * Copyright (c) 2006, 2008 Borland Software Corp.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Alexander Shatalin (Borland) - initial API and implementation
- */
-package org.eclipse.gmf.ecore.view.factories;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.emf.ecore.EAnnotation;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EcoreFactory;
-import org.eclipse.gmf.ecore.edit.parts.EDataTypeDataTypeAnnotationsEditPart;
-import org.eclipse.gmf.ecore.edit.parts.EDataTypeEditPart;
-import org.eclipse.gmf.ecore.edit.parts.EDataTypeNameEditPart;
-import org.eclipse.gmf.ecore.edit.parts.EPackageEditPart;
-import org.eclipse.gmf.ecore.part.EcoreVisualIDRegistry;
-import org.eclipse.gmf.runtime.diagram.core.util.ViewUtil;
-import org.eclipse.gmf.runtime.diagram.ui.view.factories.AbstractShapeViewFactory;
-import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
-import org.eclipse.gmf.runtime.notation.NotationFactory;
-import org.eclipse.gmf.runtime.notation.View;
-
-/**
- * @generated
- */
-public class EDataTypeViewFactory extends AbstractShapeViewFactory {
-
- /**
- * @generated
- */
- protected List createStyles(View view) {
- List styles = new ArrayList();
- styles.add(NotationFactory.eINSTANCE.createShapeStyle());
- return styles;
- }
-
- /**
- * @generated
- */
- protected void decorateView(View containerView, View view, IAdaptable semanticAdapter, String semanticHint, int index, boolean persisted) {
- if (semanticHint == null) {
- semanticHint = EcoreVisualIDRegistry.getType(EDataTypeEditPart.VISUAL_ID);
- view.setType(semanticHint);
- }
- super.decorateView(containerView, view, semanticAdapter, semanticHint, index, persisted);
- if (!EPackageEditPart.MODEL_ID.equals(EcoreVisualIDRegistry.getModelID(containerView))) {
- EAnnotation shortcutAnnotation = EcoreFactory.eINSTANCE.createEAnnotation();
- shortcutAnnotation.setSource("Shortcut"); //$NON-NLS-1$
- shortcutAnnotation.getDetails().put("modelID", EPackageEditPart.MODEL_ID); //$NON-NLS-1$
- view.getEAnnotations().add(shortcutAnnotation);
- }
- IAdaptable eObjectAdapter = null;
- EObject eObject = (EObject) semanticAdapter.getAdapter(EObject.class);
- if (eObject != null) {
- eObjectAdapter = new EObjectAdapter(eObject);
- }
- getViewService().createNode(eObjectAdapter, view, EcoreVisualIDRegistry.getType(EDataTypeNameEditPart.VISUAL_ID), ViewUtil.APPEND, true, getPreferencesHint());
- getViewService().createNode(eObjectAdapter, view, EcoreVisualIDRegistry.getType(EDataTypeDataTypeAnnotationsEditPart.VISUAL_ID), ViewUtil.APPEND, true, getPreferencesHint());
- }
-}
diff --git a/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EEnum2ViewFactory.java b/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EEnum2ViewFactory.java
deleted file mode 100644
index 4f887d6fd..000000000
--- a/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EEnum2ViewFactory.java
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- * Copyright (c) 2006, 2008 Borland Software Corp.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Alexander Shatalin (Borland) - initial API and implementation
- */
-package org.eclipse.gmf.ecore.view.factories;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.gmf.ecore.edit.parts.EEnum2EditPart;
-import org.eclipse.gmf.ecore.part.EcoreVisualIDRegistry;
-import org.eclipse.gmf.runtime.diagram.ui.view.factories.AbstractLabelViewFactory;
-import org.eclipse.gmf.runtime.notation.View;
-
-/**
- * @generated
- */
-public class EEnum2ViewFactory extends AbstractLabelViewFactory {
-
- /**
- * @generated
- */
- protected List createStyles(View view) {
- List styles = new ArrayList();
- return styles;
- }
-
- /**
- * @generated
- */
- protected void decorateView(View containerView, View view, IAdaptable semanticAdapter, String semanticHint, int index, boolean persisted) {
- if (semanticHint == null) {
- semanticHint = EcoreVisualIDRegistry.getType(EEnum2EditPart.VISUAL_ID);
- view.setType(semanticHint);
- }
- super.decorateView(containerView, view, semanticAdapter, semanticHint, index, persisted);
- }
-}
diff --git a/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EEnumEnumAnnotationsViewFactory.java b/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EEnumEnumAnnotationsViewFactory.java
deleted file mode 100644
index cca5e2663..000000000
--- a/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EEnumEnumAnnotationsViewFactory.java
+++ /dev/null
@@ -1,75 +0,0 @@
-/*
- * Copyright (c) 2006, 2008 Borland Software Corp.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Alexander Shatalin (Borland) - initial API and implementation
- */
-package org.eclipse.gmf.ecore.view.factories;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.gmf.ecore.edit.parts.EEnumEnumAnnotationsEditPart;
-import org.eclipse.gmf.ecore.part.EcoreVisualIDRegistry;
-import org.eclipse.gmf.runtime.diagram.ui.view.factories.BasicNodeViewFactory;
-import org.eclipse.gmf.runtime.notation.DrawerStyle;
-import org.eclipse.gmf.runtime.notation.NotationFactory;
-import org.eclipse.gmf.runtime.notation.NotationPackage;
-import org.eclipse.gmf.runtime.notation.TitleStyle;
-import org.eclipse.gmf.runtime.notation.View;
-
-/**
- * @generated
- */
-public class EEnumEnumAnnotationsViewFactory extends BasicNodeViewFactory {
-
- /**
- * @generated
- */
- protected List createStyles(View view) {
- List styles = new ArrayList();
- styles.add(NotationFactory.eINSTANCE.createDrawerStyle());
- styles.add(NotationFactory.eINSTANCE.createSortingStyle());
- styles.add(NotationFactory.eINSTANCE.createFilteringStyle());
- return styles;
- }
-
- /**
- * @generated
- */
- protected void decorateView(View containerView, View view, IAdaptable semanticAdapter, String semanticHint, int index, boolean persisted) {
- if (semanticHint == null) {
- semanticHint = EcoreVisualIDRegistry.getType(EEnumEnumAnnotationsEditPart.VISUAL_ID);
- view.setType(semanticHint);
- }
- super.decorateView(containerView, view, semanticAdapter, semanticHint, index, persisted);
- setupCompartmentTitle(view);
- setupCompartmentCollapsed(view);
- }
-
- /**
- * @generated
- */
- protected void setupCompartmentTitle(View view) {
- TitleStyle titleStyle = (TitleStyle) view.getStyle(NotationPackage.eINSTANCE.getTitleStyle());
- if (titleStyle != null) {
- titleStyle.setShowTitle(true);
- }
- }
-
- /**
- * @generated
- */
- protected void setupCompartmentCollapsed(View view) {
- DrawerStyle drawerStyle = (DrawerStyle) view.getStyle(NotationPackage.eINSTANCE.getDrawerStyle());
- if (drawerStyle != null) {
- drawerStyle.setCollapsed(false);
- }
- }
-}
diff --git a/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EEnumLiteralViewFactory.java b/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EEnumLiteralViewFactory.java
deleted file mode 100644
index 3b26d3a07..000000000
--- a/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EEnumLiteralViewFactory.java
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- * Copyright (c) 2006, 2008 Borland Software Corp.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Alexander Shatalin (Borland) - initial API and implementation
- */
-package org.eclipse.gmf.ecore.view.factories;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.gmf.ecore.edit.parts.EEnumLiteralEditPart;
-import org.eclipse.gmf.ecore.part.EcoreVisualIDRegistry;
-import org.eclipse.gmf.runtime.diagram.ui.view.factories.AbstractLabelViewFactory;
-import org.eclipse.gmf.runtime.notation.View;
-
-/**
- * @generated
- */
-public class EEnumLiteralViewFactory extends AbstractLabelViewFactory {
-
- /**
- * @generated
- */
- protected List createStyles(View view) {
- List styles = new ArrayList();
- return styles;
- }
-
- /**
- * @generated
- */
- protected void decorateView(View containerView, View view, IAdaptable semanticAdapter, String semanticHint, int index, boolean persisted) {
- if (semanticHint == null) {
- semanticHint = EcoreVisualIDRegistry.getType(EEnumLiteralEditPart.VISUAL_ID);
- view.setType(semanticHint);
- }
- super.decorateView(containerView, view, semanticAdapter, semanticHint, index, persisted);
- }
-}
diff --git a/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EEnumLiteralsViewFactory.java b/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EEnumLiteralsViewFactory.java
deleted file mode 100644
index da03b8a04..000000000
--- a/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EEnumLiteralsViewFactory.java
+++ /dev/null
@@ -1,75 +0,0 @@
-/*
- * Copyright (c) 2006, 2008 Borland Software Corp.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Alexander Shatalin (Borland) - initial API and implementation
- */
-package org.eclipse.gmf.ecore.view.factories;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.gmf.ecore.edit.parts.EEnumLiteralsEditPart;
-import org.eclipse.gmf.ecore.part.EcoreVisualIDRegistry;
-import org.eclipse.gmf.runtime.diagram.ui.view.factories.BasicNodeViewFactory;
-import org.eclipse.gmf.runtime.notation.DrawerStyle;
-import org.eclipse.gmf.runtime.notation.NotationFactory;
-import org.eclipse.gmf.runtime.notation.NotationPackage;
-import org.eclipse.gmf.runtime.notation.TitleStyle;
-import org.eclipse.gmf.runtime.notation.View;
-
-/**
- * @generated
- */
-public class EEnumLiteralsViewFactory extends BasicNodeViewFactory {
-
- /**
- * @generated
- */
- protected List createStyles(View view) {
- List styles = new ArrayList();
- styles.add(NotationFactory.eINSTANCE.createDrawerStyle());
- styles.add(NotationFactory.eINSTANCE.createSortingStyle());
- styles.add(NotationFactory.eINSTANCE.createFilteringStyle());
- return styles;
- }
-
- /**
- * @generated
- */
- protected void decorateView(View containerView, View view, IAdaptable semanticAdapter, String semanticHint, int index, boolean persisted) {
- if (semanticHint == null) {
- semanticHint = EcoreVisualIDRegistry.getType(EEnumLiteralsEditPart.VISUAL_ID);
- view.setType(semanticHint);
- }
- super.decorateView(containerView, view, semanticAdapter, semanticHint, index, persisted);
- setupCompartmentTitle(view);
- setupCompartmentCollapsed(view);
- }
-
- /**
- * @generated
- */
- protected void setupCompartmentTitle(View view) {
- TitleStyle titleStyle = (TitleStyle) view.getStyle(NotationPackage.eINSTANCE.getTitleStyle());
- if (titleStyle != null) {
- titleStyle.setShowTitle(true);
- }
- }
-
- /**
- * @generated
- */
- protected void setupCompartmentCollapsed(View view) {
- DrawerStyle drawerStyle = (DrawerStyle) view.getStyle(NotationPackage.eINSTANCE.getDrawerStyle());
- if (drawerStyle != null) {
- drawerStyle.setCollapsed(false);
- }
- }
-}
diff --git a/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EEnumNameViewFactory.java b/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EEnumNameViewFactory.java
deleted file mode 100644
index df773e8b5..000000000
--- a/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EEnumNameViewFactory.java
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * Copyright (c) 2006, 2008 Borland Software Corp.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Alexander Shatalin (Borland) - initial API and implementation
- */
-package org.eclipse.gmf.ecore.view.factories;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.gmf.runtime.diagram.ui.view.factories.BasicNodeViewFactory;
-import org.eclipse.gmf.runtime.notation.View;
-
-/**
- * @generated
- */
-public class EEnumNameViewFactory extends BasicNodeViewFactory {
-
- /**
- * @generated
- */
- protected List createStyles(View view) {
- List styles = new ArrayList();
- return styles;
- }
-}
diff --git a/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EEnumViewFactory.java b/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EEnumViewFactory.java
deleted file mode 100644
index 4e8e34118..000000000
--- a/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EEnumViewFactory.java
+++ /dev/null
@@ -1,71 +0,0 @@
-/*
- * Copyright (c) 2006, 2008 Borland Software Corp.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Alexander Shatalin (Borland) - initial API and implementation
- */
-package org.eclipse.gmf.ecore.view.factories;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.emf.ecore.EAnnotation;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EcoreFactory;
-import org.eclipse.gmf.ecore.edit.parts.EEnumEditPart;
-import org.eclipse.gmf.ecore.edit.parts.EEnumEnumAnnotationsEditPart;
-import org.eclipse.gmf.ecore.edit.parts.EEnumLiteralsEditPart;
-import org.eclipse.gmf.ecore.edit.parts.EEnumNameEditPart;
-import org.eclipse.gmf.ecore.edit.parts.EPackageEditPart;
-import org.eclipse.gmf.ecore.part.EcoreVisualIDRegistry;
-import org.eclipse.gmf.runtime.diagram.core.util.ViewUtil;
-import org.eclipse.gmf.runtime.diagram.ui.view.factories.AbstractShapeViewFactory;
-import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
-import org.eclipse.gmf.runtime.notation.NotationFactory;
-import org.eclipse.gmf.runtime.notation.View;
-
-/**
- * @generated
- */
-public class EEnumViewFactory extends AbstractShapeViewFactory {
-
- /**
- * @generated
- */
- protected List createStyles(View view) {
- List styles = new ArrayList();
- styles.add(NotationFactory.eINSTANCE.createShapeStyle());
- return styles;
- }
-
- /**
- * @generated
- */
- protected void decorateView(View containerView, View view, IAdaptable semanticAdapter, String semanticHint, int index, boolean persisted) {
- if (semanticHint == null) {
- semanticHint = EcoreVisualIDRegistry.getType(EEnumEditPart.VISUAL_ID);
- view.setType(semanticHint);
- }
- super.decorateView(containerView, view, semanticAdapter, semanticHint, index, persisted);
- if (!EPackageEditPart.MODEL_ID.equals(EcoreVisualIDRegistry.getModelID(containerView))) {
- EAnnotation shortcutAnnotation = EcoreFactory.eINSTANCE.createEAnnotation();
- shortcutAnnotation.setSource("Shortcut"); //$NON-NLS-1$
- shortcutAnnotation.getDetails().put("modelID", EPackageEditPart.MODEL_ID); //$NON-NLS-1$
- view.getEAnnotations().add(shortcutAnnotation);
- }
- IAdaptable eObjectAdapter = null;
- EObject eObject = (EObject) semanticAdapter.getAdapter(EObject.class);
- if (eObject != null) {
- eObjectAdapter = new EObjectAdapter(eObject);
- }
- getViewService().createNode(eObjectAdapter, view, EcoreVisualIDRegistry.getType(EEnumNameEditPart.VISUAL_ID), ViewUtil.APPEND, true, getPreferencesHint());
- getViewService().createNode(eObjectAdapter, view, EcoreVisualIDRegistry.getType(EEnumLiteralsEditPart.VISUAL_ID), ViewUtil.APPEND, true, getPreferencesHint());
- getViewService().createNode(eObjectAdapter, view, EcoreVisualIDRegistry.getType(EEnumEnumAnnotationsEditPart.VISUAL_ID), ViewUtil.APPEND, true, getPreferencesHint());
- }
-}
diff --git a/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EOperationViewFactory.java b/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EOperationViewFactory.java
deleted file mode 100644
index b0a4628cd..000000000
--- a/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EOperationViewFactory.java
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- * Copyright (c) 2006, 2008 Borland Software Corp.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Alexander Shatalin (Borland) - initial API and implementation
- */
-package org.eclipse.gmf.ecore.view.factories;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.gmf.ecore.edit.parts.EOperationEditPart;
-import org.eclipse.gmf.ecore.part.EcoreVisualIDRegistry;
-import org.eclipse.gmf.runtime.diagram.ui.view.factories.AbstractLabelViewFactory;
-import org.eclipse.gmf.runtime.notation.View;
-
-/**
- * @generated
- */
-public class EOperationViewFactory extends AbstractLabelViewFactory {
-
- /**
- * @generated
- */
- protected List createStyles(View view) {
- List styles = new ArrayList();
- return styles;
- }
-
- /**
- * @generated
- */
- protected void decorateView(View containerView, View view, IAdaptable semanticAdapter, String semanticHint, int index, boolean persisted) {
- if (semanticHint == null) {
- semanticHint = EcoreVisualIDRegistry.getType(EOperationEditPart.VISUAL_ID);
- view.setType(semanticHint);
- }
- super.decorateView(containerView, view, semanticAdapter, semanticHint, index, persisted);
- }
-}
diff --git a/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EPackage2ViewFactory.java b/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EPackage2ViewFactory.java
deleted file mode 100644
index c680e00ad..000000000
--- a/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EPackage2ViewFactory.java
+++ /dev/null
@@ -1,82 +0,0 @@
-/*
- * Copyright (c) 2006, 2008 Borland Software Corp.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Alexander Shatalin (Borland) - initial API and implementation
- */
-package org.eclipse.gmf.ecore.view.factories;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.emf.ecore.EAnnotation;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EcoreFactory;
-import org.eclipse.gmf.ecore.edit.parts.EPackage2EditPart;
-import org.eclipse.gmf.ecore.edit.parts.EPackageClassesEditPart;
-import org.eclipse.gmf.ecore.edit.parts.EPackageDataTypesEditPart;
-import org.eclipse.gmf.ecore.edit.parts.EPackageEditPart;
-import org.eclipse.gmf.ecore.edit.parts.EPackageEnumsEditPart;
-import org.eclipse.gmf.ecore.edit.parts.EPackageNameEditPart;
-import org.eclipse.gmf.ecore.edit.parts.EPackagePackageAnnotationsEditPart;
-import org.eclipse.gmf.ecore.edit.parts.EPackagePackagesEditPart;
-import org.eclipse.gmf.ecore.part.EcoreVisualIDRegistry;
-import org.eclipse.gmf.runtime.diagram.core.util.ViewUtil;
-import org.eclipse.gmf.runtime.diagram.ui.view.factories.AbstractShapeViewFactory;
-import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
-import org.eclipse.gmf.runtime.notation.HintedDiagramLinkStyle;
-import org.eclipse.gmf.runtime.notation.NotationFactory;
-import org.eclipse.gmf.runtime.notation.View;
-
-/**
- * @generated
- */
-public class EPackage2ViewFactory extends AbstractShapeViewFactory {
-
- /**
- * @generated
- */
- protected List createStyles(View view) {
- List styles = new ArrayList();
- styles.add(NotationFactory.eINSTANCE.createShapeStyle());
- {
- HintedDiagramLinkStyle diagramFacet = NotationFactory.eINSTANCE.createHintedDiagramLinkStyle();
- styles.add(diagramFacet);
- }
- return styles;
- }
-
- /**
- * @generated
- */
- protected void decorateView(View containerView, View view, IAdaptable semanticAdapter, String semanticHint, int index, boolean persisted) {
- if (semanticHint == null) {
- semanticHint = EcoreVisualIDRegistry.getType(EPackage2EditPart.VISUAL_ID);
- view.setType(semanticHint);
- }
- super.decorateView(containerView, view, semanticAdapter, semanticHint, index, persisted);
- if (!EPackageEditPart.MODEL_ID.equals(EcoreVisualIDRegistry.getModelID(containerView))) {
- EAnnotation shortcutAnnotation = EcoreFactory.eINSTANCE.createEAnnotation();
- shortcutAnnotation.setSource("Shortcut"); //$NON-NLS-1$
- shortcutAnnotation.getDetails().put("modelID", EPackageEditPart.MODEL_ID); //$NON-NLS-1$
- view.getEAnnotations().add(shortcutAnnotation);
- }
- IAdaptable eObjectAdapter = null;
- EObject eObject = (EObject) semanticAdapter.getAdapter(EObject.class);
- if (eObject != null) {
- eObjectAdapter = new EObjectAdapter(eObject);
- }
- getViewService().createNode(eObjectAdapter, view, EcoreVisualIDRegistry.getType(EPackageNameEditPart.VISUAL_ID), ViewUtil.APPEND, true, getPreferencesHint());
- getViewService().createNode(eObjectAdapter, view, EcoreVisualIDRegistry.getType(EPackageClassesEditPart.VISUAL_ID), ViewUtil.APPEND, true, getPreferencesHint());
- getViewService().createNode(eObjectAdapter, view, EcoreVisualIDRegistry.getType(EPackagePackagesEditPart.VISUAL_ID), ViewUtil.APPEND, true, getPreferencesHint());
- getViewService().createNode(eObjectAdapter, view, EcoreVisualIDRegistry.getType(EPackageDataTypesEditPart.VISUAL_ID), ViewUtil.APPEND, true, getPreferencesHint());
- getViewService().createNode(eObjectAdapter, view, EcoreVisualIDRegistry.getType(EPackageEnumsEditPart.VISUAL_ID), ViewUtil.APPEND, true, getPreferencesHint());
- getViewService().createNode(eObjectAdapter, view, EcoreVisualIDRegistry.getType(EPackagePackageAnnotationsEditPart.VISUAL_ID), ViewUtil.APPEND, true, getPreferencesHint());
- }
-}
diff --git a/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EPackage3ViewFactory.java b/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EPackage3ViewFactory.java
deleted file mode 100644
index 392f41f6f..000000000
--- a/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EPackage3ViewFactory.java
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- * Copyright (c) 2006, 2008 Borland Software Corp.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Alexander Shatalin (Borland) - initial API and implementation
- */
-package org.eclipse.gmf.ecore.view.factories;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.gmf.ecore.edit.parts.EPackage3EditPart;
-import org.eclipse.gmf.ecore.part.EcoreVisualIDRegistry;
-import org.eclipse.gmf.runtime.diagram.ui.view.factories.AbstractLabelViewFactory;
-import org.eclipse.gmf.runtime.notation.View;
-
-/**
- * @generated
- */
-public class EPackage3ViewFactory extends AbstractLabelViewFactory {
-
- /**
- * @generated
- */
- protected List createStyles(View view) {
- List styles = new ArrayList();
- return styles;
- }
-
- /**
- * @generated
- */
- protected void decorateView(View containerView, View view, IAdaptable semanticAdapter, String semanticHint, int index, boolean persisted) {
- if (semanticHint == null) {
- semanticHint = EcoreVisualIDRegistry.getType(EPackage3EditPart.VISUAL_ID);
- view.setType(semanticHint);
- }
- super.decorateView(containerView, view, semanticAdapter, semanticHint, index, persisted);
- }
-}
diff --git a/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EPackageClassesViewFactory.java b/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EPackageClassesViewFactory.java
deleted file mode 100644
index 69d0b5331..000000000
--- a/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EPackageClassesViewFactory.java
+++ /dev/null
@@ -1,75 +0,0 @@
-/*
- * Copyright (c) 2006, 2008 Borland Software Corp.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Alexander Shatalin (Borland) - initial API and implementation
- */
-package org.eclipse.gmf.ecore.view.factories;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.gmf.ecore.edit.parts.EPackageClassesEditPart;
-import org.eclipse.gmf.ecore.part.EcoreVisualIDRegistry;
-import org.eclipse.gmf.runtime.diagram.ui.view.factories.BasicNodeViewFactory;
-import org.eclipse.gmf.runtime.notation.DrawerStyle;
-import org.eclipse.gmf.runtime.notation.NotationFactory;
-import org.eclipse.gmf.runtime.notation.NotationPackage;
-import org.eclipse.gmf.runtime.notation.TitleStyle;
-import org.eclipse.gmf.runtime.notation.View;
-
-/**
- * @generated
- */
-public class EPackageClassesViewFactory extends BasicNodeViewFactory {
-
- /**
- * @generated
- */
- protected List createStyles(View view) {
- List styles = new ArrayList();
- styles.add(NotationFactory.eINSTANCE.createDrawerStyle());
- styles.add(NotationFactory.eINSTANCE.createSortingStyle());
- styles.add(NotationFactory.eINSTANCE.createFilteringStyle());
- return styles;
- }
-
- /**
- * @generated
- */
- protected void decorateView(View containerView, View view, IAdaptable semanticAdapter, String semanticHint, int index, boolean persisted) {
- if (semanticHint == null) {
- semanticHint = EcoreVisualIDRegistry.getType(EPackageClassesEditPart.VISUAL_ID);
- view.setType(semanticHint);
- }
- super.decorateView(containerView, view, semanticAdapter, semanticHint, index, persisted);
- setupCompartmentTitle(view);
- setupCompartmentCollapsed(view);
- }
-
- /**
- * @generated
- */
- protected void setupCompartmentTitle(View view) {
- TitleStyle titleStyle = (TitleStyle) view.getStyle(NotationPackage.eINSTANCE.getTitleStyle());
- if (titleStyle != null) {
- titleStyle.setShowTitle(true);
- }
- }
-
- /**
- * @generated
- */
- protected void setupCompartmentCollapsed(View view) {
- DrawerStyle drawerStyle = (DrawerStyle) view.getStyle(NotationPackage.eINSTANCE.getDrawerStyle());
- if (drawerStyle != null) {
- drawerStyle.setCollapsed(false);
- }
- }
-}
diff --git a/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EPackageDataTypesViewFactory.java b/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EPackageDataTypesViewFactory.java
deleted file mode 100644
index a7dca3caf..000000000
--- a/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EPackageDataTypesViewFactory.java
+++ /dev/null
@@ -1,75 +0,0 @@
-/*
- * Copyright (c) 2006, 2008 Borland Software Corp.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Alexander Shatalin (Borland) - initial API and implementation
- */
-package org.eclipse.gmf.ecore.view.factories;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.gmf.ecore.edit.parts.EPackageDataTypesEditPart;
-import org.eclipse.gmf.ecore.part.EcoreVisualIDRegistry;
-import org.eclipse.gmf.runtime.diagram.ui.view.factories.BasicNodeViewFactory;
-import org.eclipse.gmf.runtime.notation.DrawerStyle;
-import org.eclipse.gmf.runtime.notation.NotationFactory;
-import org.eclipse.gmf.runtime.notation.NotationPackage;
-import org.eclipse.gmf.runtime.notation.TitleStyle;
-import org.eclipse.gmf.runtime.notation.View;
-
-/**
- * @generated
- */
-public class EPackageDataTypesViewFactory extends BasicNodeViewFactory {
-
- /**
- * @generated
- */
- protected List createStyles(View view) {
- List styles = new ArrayList();
- styles.add(NotationFactory.eINSTANCE.createDrawerStyle());
- styles.add(NotationFactory.eINSTANCE.createSortingStyle());
- styles.add(NotationFactory.eINSTANCE.createFilteringStyle());
- return styles;
- }
-
- /**
- * @generated
- */
- protected void decorateView(View containerView, View view, IAdaptable semanticAdapter, String semanticHint, int index, boolean persisted) {
- if (semanticHint == null) {
- semanticHint = EcoreVisualIDRegistry.getType(EPackageDataTypesEditPart.VISUAL_ID);
- view.setType(semanticHint);
- }
- super.decorateView(containerView, view, semanticAdapter, semanticHint, index, persisted);
- setupCompartmentTitle(view);
- setupCompartmentCollapsed(view);
- }
-
- /**
- * @generated
- */
- protected void setupCompartmentTitle(View view) {
- TitleStyle titleStyle = (TitleStyle) view.getStyle(NotationPackage.eINSTANCE.getTitleStyle());
- if (titleStyle != null) {
- titleStyle.setShowTitle(true);
- }
- }
-
- /**
- * @generated
- */
- protected void setupCompartmentCollapsed(View view) {
- DrawerStyle drawerStyle = (DrawerStyle) view.getStyle(NotationPackage.eINSTANCE.getDrawerStyle());
- if (drawerStyle != null) {
- drawerStyle.setCollapsed(false);
- }
- }
-}
diff --git a/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EPackageEnumsViewFactory.java b/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EPackageEnumsViewFactory.java
deleted file mode 100644
index e11b3d43e..000000000
--- a/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EPackageEnumsViewFactory.java
+++ /dev/null
@@ -1,75 +0,0 @@
-/*
- * Copyright (c) 2006, 2008 Borland Software Corp.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Alexander Shatalin (Borland) - initial API and implementation
- */
-package org.eclipse.gmf.ecore.view.factories;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.gmf.ecore.edit.parts.EPackageEnumsEditPart;
-import org.eclipse.gmf.ecore.part.EcoreVisualIDRegistry;
-import org.eclipse.gmf.runtime.diagram.ui.view.factories.BasicNodeViewFactory;
-import org.eclipse.gmf.runtime.notation.DrawerStyle;
-import org.eclipse.gmf.runtime.notation.NotationFactory;
-import org.eclipse.gmf.runtime.notation.NotationPackage;
-import org.eclipse.gmf.runtime.notation.TitleStyle;
-import org.eclipse.gmf.runtime.notation.View;
-
-/**
- * @generated
- */
-public class EPackageEnumsViewFactory extends BasicNodeViewFactory {
-
- /**
- * @generated
- */
- protected List createStyles(View view) {
- List styles = new ArrayList();
- styles.add(NotationFactory.eINSTANCE.createDrawerStyle());
- styles.add(NotationFactory.eINSTANCE.createSortingStyle());
- styles.add(NotationFactory.eINSTANCE.createFilteringStyle());
- return styles;
- }
-
- /**
- * @generated
- */
- protected void decorateView(View containerView, View view, IAdaptable semanticAdapter, String semanticHint, int index, boolean persisted) {
- if (semanticHint == null) {
- semanticHint = EcoreVisualIDRegistry.getType(EPackageEnumsEditPart.VISUAL_ID);
- view.setType(semanticHint);
- }
- super.decorateView(containerView, view, semanticAdapter, semanticHint, index, persisted);
- setupCompartmentTitle(view);
- setupCompartmentCollapsed(view);
- }
-
- /**
- * @generated
- */
- protected void setupCompartmentTitle(View view) {
- TitleStyle titleStyle = (TitleStyle) view.getStyle(NotationPackage.eINSTANCE.getTitleStyle());
- if (titleStyle != null) {
- titleStyle.setShowTitle(true);
- }
- }
-
- /**
- * @generated
- */
- protected void setupCompartmentCollapsed(View view) {
- DrawerStyle drawerStyle = (DrawerStyle) view.getStyle(NotationPackage.eINSTANCE.getDrawerStyle());
- if (drawerStyle != null) {
- drawerStyle.setCollapsed(false);
- }
- }
-}
diff --git a/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EPackageNameViewFactory.java b/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EPackageNameViewFactory.java
deleted file mode 100644
index 997d63751..000000000
--- a/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EPackageNameViewFactory.java
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * Copyright (c) 2006, 2008 Borland Software Corp.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Alexander Shatalin (Borland) - initial API and implementation
- */
-package org.eclipse.gmf.ecore.view.factories;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.gmf.runtime.diagram.ui.view.factories.BasicNodeViewFactory;
-import org.eclipse.gmf.runtime.notation.View;
-
-/**
- * @generated
- */
-public class EPackageNameViewFactory extends BasicNodeViewFactory {
-
- /**
- * @generated
- */
- protected List createStyles(View view) {
- List styles = new ArrayList();
- return styles;
- }
-}
diff --git a/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EPackagePackageAnnotationsViewFactory.java b/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EPackagePackageAnnotationsViewFactory.java
deleted file mode 100644
index f2b71dbf8..000000000
--- a/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EPackagePackageAnnotationsViewFactory.java
+++ /dev/null
@@ -1,75 +0,0 @@
-/*
- * Copyright (c) 2006, 2008 Borland Software Corp.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Alexander Shatalin (Borland) - initial API and implementation
- */
-package org.eclipse.gmf.ecore.view.factories;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.gmf.ecore.edit.parts.EPackagePackageAnnotationsEditPart;
-import org.eclipse.gmf.ecore.part.EcoreVisualIDRegistry;
-import org.eclipse.gmf.runtime.diagram.ui.view.factories.BasicNodeViewFactory;
-import org.eclipse.gmf.runtime.notation.DrawerStyle;
-import org.eclipse.gmf.runtime.notation.NotationFactory;
-import org.eclipse.gmf.runtime.notation.NotationPackage;
-import org.eclipse.gmf.runtime.notation.TitleStyle;
-import org.eclipse.gmf.runtime.notation.View;
-
-/**
- * @generated
- */
-public class EPackagePackageAnnotationsViewFactory extends BasicNodeViewFactory {
-
- /**
- * @generated
- */
- protected List createStyles(View view) {
- List styles = new ArrayList();
- styles.add(NotationFactory.eINSTANCE.createDrawerStyle());
- styles.add(NotationFactory.eINSTANCE.createSortingStyle());
- styles.add(NotationFactory.eINSTANCE.createFilteringStyle());
- return styles;
- }
-
- /**
- * @generated
- */
- protected void decorateView(View containerView, View view, IAdaptable semanticAdapter, String semanticHint, int index, boolean persisted) {
- if (semanticHint == null) {
- semanticHint = EcoreVisualIDRegistry.getType(EPackagePackageAnnotationsEditPart.VISUAL_ID);
- view.setType(semanticHint);
- }
- super.decorateView(containerView, view, semanticAdapter, semanticHint, index, persisted);
- setupCompartmentTitle(view);
- setupCompartmentCollapsed(view);
- }
-
- /**
- * @generated
- */
- protected void setupCompartmentTitle(View view) {
- TitleStyle titleStyle = (TitleStyle) view.getStyle(NotationPackage.eINSTANCE.getTitleStyle());
- if (titleStyle != null) {
- titleStyle.setShowTitle(true);
- }
- }
-
- /**
- * @generated
- */
- protected void setupCompartmentCollapsed(View view) {
- DrawerStyle drawerStyle = (DrawerStyle) view.getStyle(NotationPackage.eINSTANCE.getDrawerStyle());
- if (drawerStyle != null) {
- drawerStyle.setCollapsed(false);
- }
- }
-}
diff --git a/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EPackagePackagesViewFactory.java b/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EPackagePackagesViewFactory.java
deleted file mode 100644
index 20afae592..000000000
--- a/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EPackagePackagesViewFactory.java
+++ /dev/null
@@ -1,75 +0,0 @@
-/*
- * Copyright (c) 2006, 2008 Borland Software Corp.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Alexander Shatalin (Borland) - initial API and implementation
- */
-package org.eclipse.gmf.ecore.view.factories;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.gmf.ecore.edit.parts.EPackagePackagesEditPart;
-import org.eclipse.gmf.ecore.part.EcoreVisualIDRegistry;
-import org.eclipse.gmf.runtime.diagram.ui.view.factories.BasicNodeViewFactory;
-import org.eclipse.gmf.runtime.notation.DrawerStyle;
-import org.eclipse.gmf.runtime.notation.NotationFactory;
-import org.eclipse.gmf.runtime.notation.NotationPackage;
-import org.eclipse.gmf.runtime.notation.TitleStyle;
-import org.eclipse.gmf.runtime.notation.View;
-
-/**
- * @generated
- */
-public class EPackagePackagesViewFactory extends BasicNodeViewFactory {
-
- /**
- * @generated
- */
- protected List createStyles(View view) {
- List styles = new ArrayList();
- styles.add(NotationFactory.eINSTANCE.createDrawerStyle());
- styles.add(NotationFactory.eINSTANCE.createSortingStyle());
- styles.add(NotationFactory.eINSTANCE.createFilteringStyle());
- return styles;
- }
-
- /**
- * @generated
- */
- protected void decorateView(View containerView, View view, IAdaptable semanticAdapter, String semanticHint, int index, boolean persisted) {
- if (semanticHint == null) {
- semanticHint = EcoreVisualIDRegistry.getType(EPackagePackagesEditPart.VISUAL_ID);
- view.setType(semanticHint);
- }
- super.decorateView(containerView, view, semanticAdapter, semanticHint, index, persisted);
- setupCompartmentTitle(view);
- setupCompartmentCollapsed(view);
- }
-
- /**
- * @generated
- */
- protected void setupCompartmentTitle(View view) {
- TitleStyle titleStyle = (TitleStyle) view.getStyle(NotationPackage.eINSTANCE.getTitleStyle());
- if (titleStyle != null) {
- titleStyle.setShowTitle(true);
- }
- }
-
- /**
- * @generated
- */
- protected void setupCompartmentCollapsed(View view) {
- DrawerStyle drawerStyle = (DrawerStyle) view.getStyle(NotationPackage.eINSTANCE.getDrawerStyle());
- if (drawerStyle != null) {
- drawerStyle.setCollapsed(false);
- }
- }
-}
diff --git a/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EPackageViewFactory.java b/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EPackageViewFactory.java
deleted file mode 100644
index 3859c48da..000000000
--- a/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EPackageViewFactory.java
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * Copyright (c) 2006, 2008 Borland Software Corp.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Alexander Shatalin (Borland) - initial API and implementation
- */
-package org.eclipse.gmf.ecore.view.factories;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.gmf.runtime.diagram.ui.view.factories.DiagramViewFactory;
-import org.eclipse.gmf.runtime.notation.MeasurementUnit;
-import org.eclipse.gmf.runtime.notation.NotationFactory;
-import org.eclipse.gmf.runtime.notation.View;
-
-/**
- * @generated
- */
-public class EPackageViewFactory extends DiagramViewFactory {
-
- /**
- * @generated
- */
- protected List createStyles(View view) {
- List styles = new ArrayList();
- styles.add(NotationFactory.eINSTANCE.createDiagramStyle());
- return styles;
- }
-
- /**
- * @generated
- */
- protected MeasurementUnit getMeasurementUnit() {
- return MeasurementUnit.PIXEL_LITERAL;
- }
-}
diff --git a/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EReference2ViewFactory.java b/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EReference2ViewFactory.java
deleted file mode 100644
index 90dbfab42..000000000
--- a/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EReference2ViewFactory.java
+++ /dev/null
@@ -1,61 +0,0 @@
-/*
- * Copyright (c) 2006, 2008 Borland Software Corp.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Alexander Shatalin (Borland) - initial API and implementation
- */
-package org.eclipse.gmf.ecore.view.factories;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.gmf.ecore.edit.parts.EReference2EditPart;
-import org.eclipse.gmf.ecore.edit.parts.EReferenceLowerBoundUpperBound2EditPart;
-import org.eclipse.gmf.ecore.edit.parts.EReferenceName2EditPart;
-import org.eclipse.gmf.ecore.part.EcoreVisualIDRegistry;
-import org.eclipse.gmf.runtime.diagram.core.util.ViewUtil;
-import org.eclipse.gmf.runtime.diagram.ui.view.factories.ConnectionViewFactory;
-import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
-import org.eclipse.gmf.runtime.notation.NotationFactory;
-import org.eclipse.gmf.runtime.notation.View;
-
-/**
- * @generated
- */
-public class EReference2ViewFactory extends ConnectionViewFactory {
-
- /**
- * @generated
- */
- protected List createStyles(View view) {
- List styles = new ArrayList();
- styles.add(NotationFactory.eINSTANCE.createConnectorStyle());
- styles.add(NotationFactory.eINSTANCE.createFontStyle());
- return styles;
- }
-
- /**
- * @generated
- */
- protected void decorateView(View containerView, View view, IAdaptable semanticAdapter, String semanticHint, int index, boolean persisted) {
- if (semanticHint == null) {
- semanticHint = EcoreVisualIDRegistry.getType(EReference2EditPart.VISUAL_ID);
- view.setType(semanticHint);
- }
- super.decorateView(containerView, view, semanticAdapter, semanticHint, index, persisted);
- IAdaptable eObjectAdapter = null;
- EObject eObject = (EObject) semanticAdapter.getAdapter(EObject.class);
- if (eObject != null) {
- eObjectAdapter = new EObjectAdapter(eObject);
- }
- getViewService().createNode(eObjectAdapter, view, EcoreVisualIDRegistry.getType(EReferenceName2EditPart.VISUAL_ID), ViewUtil.APPEND, true, getPreferencesHint());
- getViewService().createNode(eObjectAdapter, view, EcoreVisualIDRegistry.getType(EReferenceLowerBoundUpperBound2EditPart.VISUAL_ID), ViewUtil.APPEND, true, getPreferencesHint());
- }
-}
diff --git a/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EReferenceLowerBoundUpperBound2ViewFactory.java b/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EReferenceLowerBoundUpperBound2ViewFactory.java
deleted file mode 100644
index ed80fff45..000000000
--- a/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EReferenceLowerBoundUpperBound2ViewFactory.java
+++ /dev/null
@@ -1,50 +0,0 @@
-/*
- * Copyright (c) 2006, 2008 Borland Software Corp.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Alexander Shatalin (Borland) - initial API and implementation
- */
-package org.eclipse.gmf.ecore.view.factories;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.gmf.runtime.diagram.core.preferences.PreferencesHint;
-import org.eclipse.gmf.runtime.diagram.ui.util.MeasurementUnitHelper;
-import org.eclipse.gmf.runtime.diagram.ui.view.factories.AbstractLabelViewFactory;
-import org.eclipse.gmf.runtime.draw2d.ui.mapmode.IMapMode;
-import org.eclipse.gmf.runtime.notation.Location;
-import org.eclipse.gmf.runtime.notation.Node;
-import org.eclipse.gmf.runtime.notation.View;
-
-/**
- * @generated
- */
-public class EReferenceLowerBoundUpperBound2ViewFactory extends AbstractLabelViewFactory {
-
- /**
- * @generated
- */
- public View createView(IAdaptable semanticAdapter, View containerView, String semanticHint, int index, boolean persisted, PreferencesHint preferencesHint) {
- Node view = (Node) super.createView(semanticAdapter, containerView, semanticHint, index, persisted, preferencesHint);
- Location location = (Location) view.getLayoutConstraint();
- IMapMode mapMode = MeasurementUnitHelper.getMapMode(containerView.getDiagram().getMeasurementUnit());
- location.setX(mapMode.DPtoLP(0));
- location.setY(mapMode.DPtoLP(60));
- return view;
- }
-
- /**
- * @generated
- */
- protected List createStyles(View view) {
- List styles = new ArrayList();
- return styles;
- }
-}
diff --git a/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EReferenceLowerBoundUpperBoundViewFactory.java b/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EReferenceLowerBoundUpperBoundViewFactory.java
deleted file mode 100644
index 319231dde..000000000
--- a/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EReferenceLowerBoundUpperBoundViewFactory.java
+++ /dev/null
@@ -1,50 +0,0 @@
-/*
- * Copyright (c) 2006, 2008 Borland Software Corp.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Alexander Shatalin (Borland) - initial API and implementation
- */
-package org.eclipse.gmf.ecore.view.factories;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.gmf.runtime.diagram.core.preferences.PreferencesHint;
-import org.eclipse.gmf.runtime.diagram.ui.util.MeasurementUnitHelper;
-import org.eclipse.gmf.runtime.diagram.ui.view.factories.AbstractLabelViewFactory;
-import org.eclipse.gmf.runtime.draw2d.ui.mapmode.IMapMode;
-import org.eclipse.gmf.runtime.notation.Location;
-import org.eclipse.gmf.runtime.notation.Node;
-import org.eclipse.gmf.runtime.notation.View;
-
-/**
- * @generated
- */
-public class EReferenceLowerBoundUpperBoundViewFactory extends AbstractLabelViewFactory {
-
- /**
- * @generated
- */
- public View createView(IAdaptable semanticAdapter, View containerView, String semanticHint, int index, boolean persisted, PreferencesHint preferencesHint) {
- Node view = (Node) super.createView(semanticAdapter, containerView, semanticHint, index, persisted, preferencesHint);
- Location location = (Location) view.getLayoutConstraint();
- IMapMode mapMode = MeasurementUnitHelper.getMapMode(containerView.getDiagram().getMeasurementUnit());
- location.setX(mapMode.DPtoLP(0));
- location.setY(mapMode.DPtoLP(60));
- return view;
- }
-
- /**
- * @generated
- */
- protected List createStyles(View view) {
- List styles = new ArrayList();
- return styles;
- }
-}
diff --git a/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EReferenceName2ViewFactory.java b/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EReferenceName2ViewFactory.java
deleted file mode 100644
index 84c3eba8a..000000000
--- a/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EReferenceName2ViewFactory.java
+++ /dev/null
@@ -1,50 +0,0 @@
-/*
- * Copyright (c) 2006, 2008 Borland Software Corp.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Alexander Shatalin (Borland) - initial API and implementation
- */
-package org.eclipse.gmf.ecore.view.factories;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.gmf.runtime.diagram.core.preferences.PreferencesHint;
-import org.eclipse.gmf.runtime.diagram.ui.util.MeasurementUnitHelper;
-import org.eclipse.gmf.runtime.diagram.ui.view.factories.AbstractLabelViewFactory;
-import org.eclipse.gmf.runtime.draw2d.ui.mapmode.IMapMode;
-import org.eclipse.gmf.runtime.notation.Location;
-import org.eclipse.gmf.runtime.notation.Node;
-import org.eclipse.gmf.runtime.notation.View;
-
-/**
- * @generated
- */
-public class EReferenceName2ViewFactory extends AbstractLabelViewFactory {
-
- /**
- * @generated
- */
- public View createView(IAdaptable semanticAdapter, View containerView, String semanticHint, int index, boolean persisted, PreferencesHint preferencesHint) {
- Node view = (Node) super.createView(semanticAdapter, containerView, semanticHint, index, persisted, preferencesHint);
- Location location = (Location) view.getLayoutConstraint();
- IMapMode mapMode = MeasurementUnitHelper.getMapMode(containerView.getDiagram().getMeasurementUnit());
- location.setX(mapMode.DPtoLP(0));
- location.setY(mapMode.DPtoLP(40));
- return view;
- }
-
- /**
- * @generated
- */
- protected List createStyles(View view) {
- List styles = new ArrayList();
- return styles;
- }
-}
diff --git a/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EReferenceNameViewFactory.java b/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EReferenceNameViewFactory.java
deleted file mode 100644
index 648da48f9..000000000
--- a/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EReferenceNameViewFactory.java
+++ /dev/null
@@ -1,50 +0,0 @@
-/*
- * Copyright (c) 2006, 2008 Borland Software Corp.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Alexander Shatalin (Borland) - initial API and implementation
- */
-package org.eclipse.gmf.ecore.view.factories;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.gmf.runtime.diagram.core.preferences.PreferencesHint;
-import org.eclipse.gmf.runtime.diagram.ui.util.MeasurementUnitHelper;
-import org.eclipse.gmf.runtime.diagram.ui.view.factories.AbstractLabelViewFactory;
-import org.eclipse.gmf.runtime.draw2d.ui.mapmode.IMapMode;
-import org.eclipse.gmf.runtime.notation.Location;
-import org.eclipse.gmf.runtime.notation.Node;
-import org.eclipse.gmf.runtime.notation.View;
-
-/**
- * @generated
- */
-public class EReferenceNameViewFactory extends AbstractLabelViewFactory {
-
- /**
- * @generated
- */
- public View createView(IAdaptable semanticAdapter, View containerView, String semanticHint, int index, boolean persisted, PreferencesHint preferencesHint) {
- Node view = (Node) super.createView(semanticAdapter, containerView, semanticHint, index, persisted, preferencesHint);
- Location location = (Location) view.getLayoutConstraint();
- IMapMode mapMode = MeasurementUnitHelper.getMapMode(containerView.getDiagram().getMeasurementUnit());
- location.setX(mapMode.DPtoLP(0));
- location.setY(mapMode.DPtoLP(40));
- return view;
- }
-
- /**
- * @generated
- */
- protected List createStyles(View view) {
- List styles = new ArrayList();
- return styles;
- }
-}
diff --git a/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EReferenceViewFactory.java b/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EReferenceViewFactory.java
deleted file mode 100644
index 0845a7581..000000000
--- a/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EReferenceViewFactory.java
+++ /dev/null
@@ -1,61 +0,0 @@
-/*
- * Copyright (c) 2006, 2008 Borland Software Corp.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Alexander Shatalin (Borland) - initial API and implementation
- */
-package org.eclipse.gmf.ecore.view.factories;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.gmf.ecore.edit.parts.EReferenceEditPart;
-import org.eclipse.gmf.ecore.edit.parts.EReferenceLowerBoundUpperBoundEditPart;
-import org.eclipse.gmf.ecore.edit.parts.EReferenceNameEditPart;
-import org.eclipse.gmf.ecore.part.EcoreVisualIDRegistry;
-import org.eclipse.gmf.runtime.diagram.core.util.ViewUtil;
-import org.eclipse.gmf.runtime.diagram.ui.view.factories.ConnectionViewFactory;
-import org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter;
-import org.eclipse.gmf.runtime.notation.NotationFactory;
-import org.eclipse.gmf.runtime.notation.View;
-
-/**
- * @generated
- */
-public class EReferenceViewFactory extends ConnectionViewFactory {
-
- /**
- * @generated
- */
- protected List createStyles(View view) {
- List styles = new ArrayList();
- styles.add(NotationFactory.eINSTANCE.createConnectorStyle());
- styles.add(NotationFactory.eINSTANCE.createFontStyle());
- return styles;
- }
-
- /**
- * @generated
- */
- protected void decorateView(View containerView, View view, IAdaptable semanticAdapter, String semanticHint, int index, boolean persisted) {
- if (semanticHint == null) {
- semanticHint = EcoreVisualIDRegistry.getType(EReferenceEditPart.VISUAL_ID);
- view.setType(semanticHint);
- }
- super.decorateView(containerView, view, semanticAdapter, semanticHint, index, persisted);
- IAdaptable eObjectAdapter = null;
- EObject eObject = (EObject) semanticAdapter.getAdapter(EObject.class);
- if (eObject != null) {
- eObjectAdapter = new EObjectAdapter(eObject);
- }
- getViewService().createNode(eObjectAdapter, view, EcoreVisualIDRegistry.getType(EReferenceNameEditPart.VISUAL_ID), ViewUtil.APPEND, true, getPreferencesHint());
- getViewService().createNode(eObjectAdapter, view, EcoreVisualIDRegistry.getType(EReferenceLowerBoundUpperBoundEditPart.VISUAL_ID), ViewUtil.APPEND, true, getPreferencesHint());
- }
-}
diff --git a/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EStringToStringMapEntryViewFactory.java b/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EStringToStringMapEntryViewFactory.java
deleted file mode 100644
index 415996401..000000000
--- a/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/view/factories/EStringToStringMapEntryViewFactory.java
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- * Copyright (c) 2006, 2008 Borland Software Corp.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Alexander Shatalin (Borland) - initial API and implementation
- */
-package org.eclipse.gmf.ecore.view.factories;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.gmf.ecore.edit.parts.EStringToStringMapEntryEditPart;
-import org.eclipse.gmf.ecore.part.EcoreVisualIDRegistry;
-import org.eclipse.gmf.runtime.diagram.ui.view.factories.AbstractLabelViewFactory;
-import org.eclipse.gmf.runtime.notation.View;
-
-/**
- * @generated
- */
-public class EStringToStringMapEntryViewFactory extends AbstractLabelViewFactory {
-
- /**
- * @generated
- */
- protected List createStyles(View view) {
- List styles = new ArrayList();
- return styles;
- }
-
- /**
- * @generated
- */
- protected void decorateView(View containerView, View view, IAdaptable semanticAdapter, String semanticHint, int index, boolean persisted) {
- if (semanticHint == null) {
- semanticHint = EcoreVisualIDRegistry.getType(EStringToStringMapEntryEditPart.VISUAL_ID);
- view.setType(semanticHint);
- }
- super.decorateView(containerView, view, semanticAdapter, semanticHint, index, persisted);
- }
-}

Back to the top