Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'incoming/org.eclipse.papyrus.infra.gmfdiag.css/src-gen/org/eclipse/papyrus/infra/gmfdiag/css/CSSStringListValueStyleImpl.java')
-rw-r--r--incoming/org.eclipse.papyrus.infra.gmfdiag.css/src-gen/org/eclipse/papyrus/infra/gmfdiag/css/CSSStringListValueStyleImpl.java125
1 files changed, 0 insertions, 125 deletions
diff --git a/incoming/org.eclipse.papyrus.infra.gmfdiag.css/src-gen/org/eclipse/papyrus/infra/gmfdiag/css/CSSStringListValueStyleImpl.java b/incoming/org.eclipse.papyrus.infra.gmfdiag.css/src-gen/org/eclipse/papyrus/infra/gmfdiag/css/CSSStringListValueStyleImpl.java
deleted file mode 100644
index c9413124a1f..00000000000
--- a/incoming/org.eclipse.papyrus.infra.gmfdiag.css/src-gen/org/eclipse/papyrus/infra/gmfdiag/css/CSSStringListValueStyleImpl.java
+++ /dev/null
@@ -1,125 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2012 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.infra.gmfdiag.css;
-
-import org.eclipse.emf.common.util.EList;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.gmf.runtime.notation.NotationPackage;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.gmf.runtime.notation.impl.StringListValueStyleImpl;
-import org.eclipse.papyrus.infra.gmfdiag.css.engine.ExtendedCSSEngine;
-import org.eclipse.papyrus.infra.gmfdiag.css.notation.CSSDiagramImpl;
-import org.eclipse.papyrus.infra.gmfdiag.css.notation.ForceValueHelper;
-import org.eclipse.papyrus.infra.gmfdiag.css.style.CSSStringListValueStyle;
-import org.eclipse.papyrus.infra.gmfdiag.css.style.impl.CSSStringListValueStyleDelegate;
-
-public class CSSStringListValueStyleImpl extends StringListValueStyleImpl implements CSSStringListValueStyle {
-
- protected ExtendedCSSEngine engine;
-
- private CSSStringListValueStyle stringListValueStyle;
-
- protected CSSStringListValueStyle getStringListValueStyle() {
- if(stringListValueStyle == null) {
- stringListValueStyle = new CSSStringListValueStyleDelegate(this, getEngine());
- }
- return stringListValueStyle;
- }
-
- protected ExtendedCSSEngine getEngine(){
- if (engine == null){
- engine = ((CSSDiagramImpl)findView().getDiagram()).getEngine();
- }
- return engine;
- }
-
- protected View findView(){
- EObject parent = eContainer();
- while (! (parent instanceof View) && parent != null){
- parent = parent.eContainer();
- }
-
- if (parent != null){
- return (View)parent;
- }
-
- return null;
- }
-
-
- //////////////////////////////////////////
- // Forwards accesses to CSS properties //
- //////////////////////////////////////////
-
-
- public java.lang.String getCSSName(){
- java.lang.String value = super.getName();
-
- if (ForceValueHelper.isSet(findView(), this, NotationPackage.eINSTANCE.getNamedStyle_Name(), value)){
- return value;
- } else {
- return getStringListValueStyle().getCSSName();
- }
- }
-
- public EList getCSSStringListValue(){
- EList value = super.getStringListValue();
-
- if (ForceValueHelper.isSet(findView(), this, NotationPackage.eINSTANCE.getStringListValueStyle_StringListValue(), value)){
- return value;
- } else {
- return getStringListValueStyle().getCSSStringListValue();
- }
- }
-
-
- @Override
- public java.lang.String getName(){
- //return super.getName();
- return getCSSName();
- }
-
- @Override
- public EList getStringListValue(){
- //return super.getStringListValue();
- return getCSSStringListValue();
- }
-
-
-
- ////////////////////////////////////////////////
- // Implements a setter for each CSS property //
- ////////////////////////////////////////////////
-
- @Override
- public void setName(java.lang.String value){
- super.setName(value);
-
- EStructuralFeature feature = NotationPackage.eINSTANCE.getNamedStyle_Name();
- ForceValueHelper.setValue(findView(), feature, value);
- }
-
- //////////////////////////////////
- // Implements the unset method //
- //////////////////////////////////
-
- @Override
- public void eUnset(int featureId) {
- super.eUnset(featureId);
-
- EStructuralFeature feature = eDynamicFeature(featureId);
- ForceValueHelper.unsetValue(findView(), feature);
- }
-
-
-}

Back to the top