Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/structure/functionmodeling/impl/AnalysisFunctionTypeImpl.java')
-rw-r--r--extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/structure/functionmodeling/impl/AnalysisFunctionTypeImpl.java41
1 files changed, 24 insertions, 17 deletions
diff --git a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/structure/functionmodeling/impl/AnalysisFunctionTypeImpl.java b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/structure/functionmodeling/impl/AnalysisFunctionTypeImpl.java
index c1399adf819..869e3c09c8a 100644
--- a/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/structure/functionmodeling/impl/AnalysisFunctionTypeImpl.java
+++ b/extraplugins/eastadl/org.eclipse.papyrus.eastadl/src/org/eclipse/papyrus/eastadl/structure/functionmodeling/impl/AnalysisFunctionTypeImpl.java
@@ -1,7 +1,7 @@
/*****************************************************************************
* Copyright (c) 2010 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
@@ -36,7 +36,7 @@ import org.eclipse.uml2.uml.util.UMLUtil;
* <p>
* The following features are implemented:
* <ul>
- * <li>{@link org.eclipse.papyrus.eastadl.structure.functionmodeling.impl.AnalysisFunctionTypeImpl#getPart <em>Part</em>}</li>
+ * <li>{@link org.eclipse.papyrus.eastadl.structure.functionmodeling.impl.AnalysisFunctionTypeImpl#getPart <em>Part</em>}</li>
* </ul>
* </p>
*
@@ -46,6 +46,7 @@ public class AnalysisFunctionTypeImpl extends FunctionTypeImpl implements Analys
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
protected AnalysisFunctionTypeImpl() {
@@ -54,32 +55,35 @@ public class AnalysisFunctionTypeImpl extends FunctionTypeImpl implements Analys
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
- case FunctionmodelingPackage.ANALYSIS_FUNCTION_TYPE__PART:
- return getPart();
+ case FunctionmodelingPackage.ANALYSIS_FUNCTION_TYPE__PART:
+ return getPart();
}
return super.eGet(featureID, resolve, coreType);
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
- case FunctionmodelingPackage.ANALYSIS_FUNCTION_TYPE__PART:
- return !getPart().isEmpty();
+ case FunctionmodelingPackage.ANALYSIS_FUNCTION_TYPE__PART:
+ return !getPart().isEmpty();
}
return super.eIsSet(featureID);
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
@Override
@@ -89,16 +93,17 @@ public class AnalysisFunctionTypeImpl extends FunctionTypeImpl implements Analys
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ *
* @generated NOT
*/
+ @Override
public Image getIcon() {
- if(getBase_Class() != null) {
+ if (getBase_Class() != null) {
Stereotype st = getBase_Class().getAppliedStereotype(EASTResource.ANALYSISFUNCTIONTYPE_ID);
EList<Image> images = st.getIcons();
- if(isIsElementary()) {
+ if (isIsElementary()) {
return images.get(1);
} else {
return images.get(0);
@@ -110,23 +115,24 @@ public class AnalysisFunctionTypeImpl extends FunctionTypeImpl implements Analys
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ *
* @generated NOT
*/
+ @Override
public EList<AnalysisFunctionPrototype> getPart() {
EList<AnalysisFunctionPrototype> parts = new BasicEList<AnalysisFunctionPrototype>();
AnalysisFunctionPrototype currentFunctionPrototype;
- if(getBase_Class() != null) {
+ if (getBase_Class() != null) {
// Parse owned Properties
Iterator<Property> itDep = getBase_Class().getAttributes().iterator();
- while(itDep.hasNext()) {
+ while (itDep.hasNext()) {
Property currentProperty = itDep.next();
- currentFunctionPrototype = (AnalysisFunctionPrototype)UMLUtil.getStereotypeApplication(currentProperty,
- AnalysisFunctionPrototype.class);
+ currentFunctionPrototype = UMLUtil.getStereotypeApplication(currentProperty,
+ AnalysisFunctionPrototype.class);
- if(currentFunctionPrototype != null) {
+ if (currentFunctionPrototype != null) {
parts.add(currentFunctionPrototype);
}
}
@@ -134,14 +140,15 @@ public class AnalysisFunctionTypeImpl extends FunctionTypeImpl implements Analys
// Convert to InternalEList<?>
return new BasicInternalEList<AnalysisFunctionPrototype>(AnalysisFunctionPrototype.class, parts.size(), parts
- .toArray());
+ .toArray());
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ *
* @generated NOT
*/
+ @Override
public boolean isIsElementary() {
return ((getPart().size() == 0) && (getConnector().size() == 0));
}

Back to the top