svn commit: r13400 - branches/gsoc2007/b00__1/model-euml/src/org/argouml/model/euml
| Newsgroups | gmane.comp.lang.uml.argouml.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: b00__1
Date: 2007-08-18 15:37:27-0700
New Revision: 13400
Modified:
branches/gsoc2007/b00__1/model-euml/src/org/argouml/model/euml/ChangeableKindEUMLImpl.java
branches/gsoc2007/b00__1/model-euml/src/org/argouml/model/euml/FacadeEUMLImpl.java
Log:
Changes to work with associations without exceptions
Modified: branches/gsoc2007/b00__1/model-euml/src/org/argouml/model/euml/ChangeableKindEUMLImpl.java
Url: http://argouml.tigris.org/source/browse/argouml/branches/gsoc2007/b00__1/model-euml/src/org/argouml/model/euml/ChangeableKindEUMLImpl.java?view=diff&rev=13400&p1=branches/gsoc2007/b00__1/model-euml/src/org/argouml/model/euml/ChangeableKindEUMLImpl.java&p2=branches/gsoc2007/b00__1/model-euml/src/org/argouml/model/euml/ChangeableKindEUMLImpl.java&r1=13399&r2=13400
==============================================================================
--- branches/gsoc2007/b00__1/model-euml/src/org/argouml/model/euml/ChangeableKindEUMLImpl.java (original)
+++ branches/gsoc2007/b00__1/model-euml/src/org/argouml/model/euml/ChangeableKindEUMLImpl.java 2007-08-18 15:37:27-0700
@@ -38,9 +38,8 @@
*/
class ChangeableKindEUMLImpl implements ChangeableKind {
-
public Object getAddOnly() {
- throw new NotImplementedException();
+ return "";
}
public Object getChangeable() {
Modified: branches/gsoc2007/b00__1/model-euml/src/org/argouml/model/euml/FacadeEUMLImpl.java
Url: http://argouml.tigris.org/source/browse/argouml/branches/gsoc2007/b00__1/model-euml/src/org/argouml/model/euml/FacadeEUMLImpl.java?view=diff&rev=13400&p1=branches/gsoc2007/b00__1/model-euml/src/org/argouml/model/euml/FacadeEUMLImpl.java&p2=branches/gsoc2007/b00__1/model-euml/src/org/argouml/model/euml/FacadeEUMLImpl.java&r1=13399&r2=13400
==============================================================================
--- branches/gsoc2007/b00__1/model-euml/src/org/argouml/model/euml/FacadeEUMLImpl.java (original)
+++ branches/gsoc2007/b00__1/model-euml/src/org/argouml/model/euml/FacadeEUMLImpl.java 2007-08-18 15:37:27-0700
@@ -652,7 +652,10 @@
}
public Object getInitialValue(Object handle) {
- throw new NotYetImplementedException();
+ if (!(handle instanceof Property)) {
+ throw new IllegalArgumentException();
+ }
+ return ((Property) handle).getDefault();
}
public Object getInstance(Object handle) {
@@ -851,7 +854,8 @@
public Object getOwnerScope(Object handle) {
// Removed from UML 2.x and deprecated in Model API
// so we won't implement it
- throw new NotImplementedException();
+// throw new NotImplementedException();
+ return null;
}
public Namespace getPackage(Object handle) {