Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'incoming/org.eclipse.papyrus.properties.notation/src/org/eclipse/papyrus/properties/notation/modelelement/GMFModelElement.java')
-rw-r--r--incoming/org.eclipse.papyrus.properties.notation/src/org/eclipse/papyrus/properties/notation/modelelement/GMFModelElement.java61
1 files changed, 0 insertions, 61 deletions
diff --git a/incoming/org.eclipse.papyrus.properties.notation/src/org/eclipse/papyrus/properties/notation/modelelement/GMFModelElement.java b/incoming/org.eclipse.papyrus.properties.notation/src/org/eclipse/papyrus/properties/notation/modelelement/GMFModelElement.java
deleted file mode 100644
index e459014c4bb..00000000000
--- a/incoming/org.eclipse.papyrus.properties.notation/src/org/eclipse/papyrus/properties/notation/modelelement/GMFModelElement.java
+++ /dev/null
@@ -1,61 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2011 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:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.properties.notation.modelelement;
-
-import org.eclipse.core.databinding.observable.IObservable;
-import org.eclipse.core.databinding.observable.list.IObservableList;
-import org.eclipse.core.databinding.observable.value.IObservableValue;
-import org.eclipse.emf.databinding.EMFProperties;
-import org.eclipse.emf.databinding.FeaturePath;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.emf.edit.domain.EditingDomain;
-import org.eclipse.gmf.runtime.notation.NotationPackage;
-import org.eclipse.papyrus.properties.databinding.EMFObservableList;
-import org.eclipse.papyrus.properties.modelelement.EMFModelElement;
-import org.eclipse.papyrus.properties.notation.databinding.GradientObservableValue;
-import org.eclipse.papyrus.properties.uml.databinding.PapyrusObservableValue;
-
-
-public class GMFModelElement extends EMFModelElement {
-
- public GMFModelElement(EObject source) {
- super(source);
- }
-
- public GMFModelElement(EObject source, EditingDomain domain) {
- super(source, domain);
- }
-
- @Override
- public IObservable getObservable(String propertyPath) {
- FeaturePath featurePath = getFeaturePath(propertyPath);
- EStructuralFeature feature = getFeature(propertyPath);
-
- if(feature == null)
- return null;
-
- if(feature.getEType() == NotationPackage.eINSTANCE.getGradientData()) {
- return new GradientObservableValue(source, feature, domain);
- }
-
- //TODO : PapyrusObservableList (With commit support)
- if(feature.getUpperBound() != 1) {
- IObservableList list = domain == null ? EMFProperties.list(featurePath).observe(source) : new EMFObservableList(EMFProperties.list(featurePath).observe(source), domain, getSource(featurePath), feature);
- return list;
- }
-
- IObservableValue value = domain == null ? EMFProperties.value(featurePath).observe(source) : new PapyrusObservableValue(getSource(featurePath), feature, domain);
- return value;
- }
-
-}

Back to the top