Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.stereotyped.elements.tests/src/org/eclipse/papyrus/uml/nattable/stereotyped/elements/tests/manager/axis/RequirementAxisManager.java')
-rw-r--r--tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.stereotyped.elements.tests/src/org/eclipse/papyrus/uml/nattable/stereotyped/elements/tests/manager/axis/RequirementAxisManager.java170
1 files changed, 85 insertions, 85 deletions
diff --git a/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.stereotyped.elements.tests/src/org/eclipse/papyrus/uml/nattable/stereotyped/elements/tests/manager/axis/RequirementAxisManager.java b/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.stereotyped.elements.tests/src/org/eclipse/papyrus/uml/nattable/stereotyped/elements/tests/manager/axis/RequirementAxisManager.java
index a76b1058638..198ef61b1d6 100644
--- a/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.stereotyped.elements.tests/src/org/eclipse/papyrus/uml/nattable/stereotyped/elements/tests/manager/axis/RequirementAxisManager.java
+++ b/tests/junit/plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.stereotyped.elements.tests/src/org/eclipse/papyrus/uml/nattable/stereotyped/elements/tests/manager/axis/RequirementAxisManager.java
@@ -1,85 +1,85 @@
-/*****************************************************************************
- * Copyright (c) 2017 CEA LIST and Others.
- *
- *
- * 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:
- * Nicolas FAUVERGUE (CEA LIST) nicolas.fauvergue@cea.fr - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.uml.nattable.stereotyped.elements.tests.manager.axis;
-
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.impl.DynamicEObjectImpl;
-import org.eclipse.papyrus.uml.nattable.manager.axis.AbstractStereotypedElementUMLSynchronizedOnFeatureAxisManager;
-import org.eclipse.papyrus.uml.service.types.element.UMLElementTypes;
-import org.eclipse.uml2.uml.Class;
-import org.eclipse.uml2.uml.Element;
-
-/**
- * AxisManager for dynamic Requirements.
- */
-public class RequirementAxisManager extends AbstractStereotypedElementUMLSynchronizedOnFeatureAxisManager<DynamicEObjectImpl> {
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.infra.nattable.manager.axis.AbstractAxisManager#canCreateAxisElement(java.lang.String)
- */
- @Override
- public boolean canCreateAxisElement(final String elementId) {
- return UMLElementTypes.CLASS.getId().equals(elementId);
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.uml.nattable.manager.axis.AbstractStereotypedElementUMLSynchronizedOnFeatureAxisManager#getStereotypeApplication(org.eclipse.uml2.uml.Element)
- */
- @Override
- protected DynamicEObjectImpl getStereotypeApplication(final Element el) {
- for (EObject stereotypeApplication : el.getStereotypeApplications()) {
-
- if (stereotypeApplication instanceof DynamicEObjectImpl && ((DynamicEObjectImpl) stereotypeApplication).eClass().getName().equals("Requirement")) { //$NON-NLS-1$
- return (DynamicEObjectImpl) stereotypeApplication;
- }
- }
- return null;
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.uml.nattable.manager.axis.AbstractStereotypedElementUMLSynchronizedOnFeatureAxisManager#isInstanceOfRequiredStereotypeApplication(java.lang.Object)
- */
- @Override
- protected boolean isInstanceOfRequiredStereotypeApplication(final Object object) {
- return object instanceof DynamicEObjectImpl && ((DynamicEObjectImpl) object).eClass().getName().equals("Requirement"); //$NON-NLS-1$
- }
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.uml.nattable.manager.axis.AbstractStereotypedElementUMLSynchronizedOnFeatureAxisManager#isAllowedAsBaseElement(org.eclipse.uml2.uml.Element)
- */
- @Override
- protected boolean isAllowedAsBaseElement(final Element element) {
- return element instanceof Class;
- }
-
-
- /**
- * {@inheritDoc}
- *
- * @see org.eclipse.papyrus.uml.nattable.manager.axis.AbstractStereotypedElementUMLSynchronizedOnFeatureAxisManager#getStereotypeApplicationBasePropertyName()
- */
- @Override
- protected String getStereotypeApplicationBasePropertyName() {
- return "base_Class"; //$NON-NLS-1$
- }
-
-}
+/*****************************************************************************
+ * Copyright (c) 2017 CEA LIST and Others.
+ *
+ *
+ * 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:
+ * Nicolas FAUVERGUE (CEA LIST) nicolas.fauvergue@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.uml.nattable.stereotyped.elements.tests.manager.axis;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.impl.DynamicEObjectImpl;
+import org.eclipse.papyrus.uml.nattable.manager.axis.AbstractStereotypedElementUMLSynchronizedOnFeatureAxisManager;
+import org.eclipse.papyrus.uml.service.types.element.UMLElementTypes;
+import org.eclipse.uml2.uml.Class;
+import org.eclipse.uml2.uml.Element;
+
+/**
+ * AxisManager for dynamic Requirements.
+ */
+public class RequirementAxisManager extends AbstractStereotypedElementUMLSynchronizedOnFeatureAxisManager<DynamicEObjectImpl> {
+
+ /**
+ * {@inheritDoc}
+ *
+ * @see org.eclipse.papyrus.infra.nattable.manager.axis.AbstractAxisManager#canCreateAxisElement(java.lang.String)
+ */
+ @Override
+ public boolean canCreateAxisElement(final String elementId) {
+ return UMLElementTypes.CLASS.getId().equals(elementId);
+ }
+
+ /**
+ * {@inheritDoc}
+ *
+ * @see org.eclipse.papyrus.uml.nattable.manager.axis.AbstractStereotypedElementUMLSynchronizedOnFeatureAxisManager#getStereotypeApplication(org.eclipse.uml2.uml.Element)
+ */
+ @Override
+ protected DynamicEObjectImpl getStereotypeApplication(final Element el) {
+ for (EObject stereotypeApplication : el.getStereotypeApplications()) {
+
+ if (stereotypeApplication instanceof DynamicEObjectImpl && ((DynamicEObjectImpl) stereotypeApplication).eClass().getName().equals("Requirement")) { //$NON-NLS-1$
+ return (DynamicEObjectImpl) stereotypeApplication;
+ }
+ }
+ return null;
+ }
+
+ /**
+ * {@inheritDoc}
+ *
+ * @see org.eclipse.papyrus.uml.nattable.manager.axis.AbstractStereotypedElementUMLSynchronizedOnFeatureAxisManager#isInstanceOfRequiredStereotypeApplication(java.lang.Object)
+ */
+ @Override
+ protected boolean isInstanceOfRequiredStereotypeApplication(final Object object) {
+ return object instanceof DynamicEObjectImpl && ((DynamicEObjectImpl) object).eClass().getName().equals("Requirement"); //$NON-NLS-1$
+ }
+
+ /**
+ * {@inheritDoc}
+ *
+ * @see org.eclipse.papyrus.uml.nattable.manager.axis.AbstractStereotypedElementUMLSynchronizedOnFeatureAxisManager#isAllowedAsBaseElement(org.eclipse.uml2.uml.Element)
+ */
+ @Override
+ protected boolean isAllowedAsBaseElement(final Element element) {
+ return element instanceof Class;
+ }
+
+
+ /**
+ * {@inheritDoc}
+ *
+ * @see org.eclipse.papyrus.uml.nattable.manager.axis.AbstractStereotypedElementUMLSynchronizedOnFeatureAxisManager#getStereotypeApplicationBasePropertyName()
+ */
+ @Override
+ protected String getStereotypeApplicationBasePropertyName() {
+ return "base_Class"; //$NON-NLS-1$
+ }
+
+}

Back to the top