Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'sandbox/pasteInNewTable/org.eclipse.papyrus.uml.nattable/src/org/eclipse/papyrus/uml/nattable/manager/axis/PackageDerivedSubsetAdapter.java')
-rw-r--r--sandbox/pasteInNewTable/org.eclipse.papyrus.uml.nattable/src/org/eclipse/papyrus/uml/nattable/manager/axis/PackageDerivedSubsetAdapter.java76
1 files changed, 0 insertions, 76 deletions
diff --git a/sandbox/pasteInNewTable/org.eclipse.papyrus.uml.nattable/src/org/eclipse/papyrus/uml/nattable/manager/axis/PackageDerivedSubsetAdapter.java b/sandbox/pasteInNewTable/org.eclipse.papyrus.uml.nattable/src/org/eclipse/papyrus/uml/nattable/manager/axis/PackageDerivedSubsetAdapter.java
deleted file mode 100644
index 8f9132f956e..00000000000
--- a/sandbox/pasteInNewTable/org.eclipse.papyrus.uml.nattable/src/org/eclipse/papyrus/uml/nattable/manager/axis/PackageDerivedSubsetAdapter.java
+++ /dev/null
@@ -1,76 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013 CEA LIST.
- *
- *
- * 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:
- * Vincent Lorenzo (CEA LIST) vincent.lorenzo@cea.fr - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.uml.nattable.manager.axis;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.uml2.uml.UMLPackage;
-import org.eclipse.uml2.uml.util.UMLDerivedUnionAdapter;
-
-/**
- * @see for generation see {@link PapyrusUMLDerivedSubsetAdapter}
- * This adapter allows to receive notifications for changes on feature :
- * *
- * <ul>
- * <li>UMLPackage.Literals.PACKAGE__NESTED_PACKAGE</li>
- * <li>UMLPackage.Literals.PACKAGE__OWNED_STEREOTYPE</li>
- * <li>UMLPackage.Literals.PACKAGE__OWNED_TYPE</li>
- * </ul>
- *
- * @author vl222926
- *
- */
-//FIXME : move me in oep.uml.tools or others uml plugin
-public class PackageDerivedSubsetAdapter extends UMLDerivedUnionAdapter {
-
- @Override
- protected void notifyPackageChanged(Notification notification, EClass eClass) {
- super.notifyPackageChanged(notification, eClass);
- switch(notification.getFeatureID(org.eclipse.uml2.uml.Package.class)) {
- case UMLPackage.PACKAGE__PACKAGED_ELEMENT:
- notifyChanged(notification, eClass, UMLPackage.Literals.PACKAGE__NESTED_PACKAGE);
- notifyChanged(notification, eClass, UMLPackage.Literals.PACKAGE__OWNED_STEREOTYPE);
- notifyChanged(notification, eClass, UMLPackage.Literals.PACKAGE__OWNED_TYPE);
- break;
- default:
- }
- }
-
- @Override
- protected void notifyProfileChanged(Notification notification, EClass eClass) {
- super.notifyProfileChanged(notification, eClass);
- switch(notification.getFeatureID(org.eclipse.uml2.uml.Profile.class)) {
- case UMLPackage.PACKAGE__PACKAGED_ELEMENT:
- notifyChanged(notification, eClass, UMLPackage.Literals.PACKAGE__NESTED_PACKAGE);
- notifyChanged(notification, eClass, UMLPackage.Literals.PACKAGE__OWNED_STEREOTYPE);
- notifyChanged(notification, eClass, UMLPackage.Literals.PACKAGE__OWNED_TYPE);
- break;
- default:
- }
- }
-
- @Override
- protected void notifyModelChanged(Notification notification, EClass eClass) {
- super.notifyModelChanged(notification, eClass);
- switch(notification.getFeatureID(org.eclipse.uml2.uml.Model.class)) {
- case UMLPackage.PACKAGE__PACKAGED_ELEMENT:
- notifyChanged(notification, eClass, UMLPackage.Literals.PACKAGE__NESTED_PACKAGE);
- notifyChanged(notification, eClass, UMLPackage.Literals.PACKAGE__OWNED_STEREOTYPE);
- notifyChanged(notification, eClass, UMLPackage.Literals.PACKAGE__OWNED_TYPE);
- break;
- default:
- }
- }
-
-}

Back to the top