Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenn Hussey2011-08-22 03:39:54 +0000
committerKenn Hussey2011-08-22 03:39:54 +0000
commit7b152f6578b888f1d943851f2482e2a0a02317aa (patch)
tree344d14528db14df1f7f95c2be1510724a171d743 /plugins/org.eclipse.uml2.uml
parentca750cf6dd4977022475f692deff8a11e7f13505 (diff)
downloadorg.eclipse.uml2.git.040612-7b152f6578b888f1d943851f2482e2a0a02317aa.tar.gz
org.eclipse.uml2.git.040612-7b152f6578b888f1d943851f2482e2a0a02317aa.tar.xz
org.eclipse.uml2.git.040612-7b152f6578b888f1d943851f2482e2a0a02317aa.zip
[327039] Implementing unimplemented operations.
Diffstat (limited to 'plugins/org.eclipse.uml2.uml')
-rw-r--r--plugins/org.eclipse.uml2.uml/src/org/eclipse/uml2/uml/internal/operations/ParameterOperations.java18
-rw-r--r--plugins/org.eclipse.uml2.uml/src/org/eclipse/uml2/uml/internal/operations/PropertyOperations.java18
-rw-r--r--plugins/org.eclipse.uml2.uml/src/org/eclipse/uml2/uml/internal/operations/ValueSpecificationOperations.java4
3 files changed, 4 insertions, 36 deletions
diff --git a/plugins/org.eclipse.uml2.uml/src/org/eclipse/uml2/uml/internal/operations/ParameterOperations.java b/plugins/org.eclipse.uml2.uml/src/org/eclipse/uml2/uml/internal/operations/ParameterOperations.java
index 31e01eb5..8124028e 100644
--- a/plugins/org.eclipse.uml2.uml/src/org/eclipse/uml2/uml/internal/operations/ParameterOperations.java
+++ b/plugins/org.eclipse.uml2.uml/src/org/eclipse/uml2/uml/internal/operations/ParameterOperations.java
@@ -399,25 +399,9 @@ public class ParameterOperations
* @param parameter The receiving '<em><b>Parameter</b></em>' model object.
* @param value The new default value.
* <!-- end-model-doc -->
- * @generated
- */
- public static void setRealDefaultValue(Parameter parameter, double value) {
- // TODO: implement this method
- // Ensure that you remove @generated or mark it @generated NOT
- throw new UnsupportedOperationException();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * <!-- begin-model-doc -->
- * Sets the default value for this parameter to the specified real value.
- * @param parameter The receiving '<em><b>Parameter</b></em>' model object.
- * @param value The new default value.
- * <!-- end-model-doc -->
* @generated NOT
*/
- public static void setRealDefaultValue(Parameter parameter, float value) {
+ public static void setRealDefaultValue(Parameter parameter, double value) {
ValueSpecification defaultValue = parameter.getDefaultValue();
((LiteralReal) (defaultValue instanceof LiteralReal
diff --git a/plugins/org.eclipse.uml2.uml/src/org/eclipse/uml2/uml/internal/operations/PropertyOperations.java b/plugins/org.eclipse.uml2.uml/src/org/eclipse/uml2/uml/internal/operations/PropertyOperations.java
index 535e5a32..c7322165 100644
--- a/plugins/org.eclipse.uml2.uml/src/org/eclipse/uml2/uml/internal/operations/PropertyOperations.java
+++ b/plugins/org.eclipse.uml2.uml/src/org/eclipse/uml2/uml/internal/operations/PropertyOperations.java
@@ -802,25 +802,9 @@ public class PropertyOperations
* @param property The receiving '<em><b>Property</b></em>' model object.
* @param value The new default value.
* <!-- end-model-doc -->
- * @generated
- */
- public static void setRealDefaultValue(Property property, double value) {
- // TODO: implement this method
- // Ensure that you remove @generated or mark it @generated NOT
- throw new UnsupportedOperationException();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * <!-- begin-model-doc -->
- * Sets the default value for this property to the specified real value.
- * @param property The receiving '<em><b>Property</b></em>' model object.
- * @param value The new default value.
- * <!-- end-model-doc -->
* @generated NOT
*/
- public static void setRealDefaultValue(Property property, float value) {
+ public static void setRealDefaultValue(Property property, double value) {
ValueSpecification defaultValue = property.getDefaultValue();
((LiteralReal) (defaultValue instanceof LiteralReal
diff --git a/plugins/org.eclipse.uml2.uml/src/org/eclipse/uml2/uml/internal/operations/ValueSpecificationOperations.java b/plugins/org.eclipse.uml2.uml/src/org/eclipse/uml2/uml/internal/operations/ValueSpecificationOperations.java
index 2b1239c4..da760571 100644
--- a/plugins/org.eclipse.uml2.uml/src/org/eclipse/uml2/uml/internal/operations/ValueSpecificationOperations.java
+++ b/plugins/org.eclipse.uml2.uml/src/org/eclipse/uml2/uml/internal/operations/ValueSpecificationOperations.java
@@ -159,7 +159,7 @@ public class ValueSpecificationOperations
* <!-- end-model-doc -->
* @generated NOT
*/
- public static float realValue(ValueSpecification valueSpecification) {
+ public static double realValue(ValueSpecification valueSpecification) {
throw new UnsupportedOperationException();
}
@@ -242,7 +242,7 @@ public class ValueSpecificationOperations
@Override
public Object caseLiteralReal(LiteralReal literalReal) {
- literalReal.setValue(Float.parseFloat(newValue));
+ literalReal.setValue(Double.parseDouble(newValue));
return literalReal;
}

Back to the top