svn commit: r13405 - 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 16:38:59-0700
New Revision: 13405
Modified:
branches/gsoc2007/b00__1/model-euml/src/org/argouml/model/euml/CoreHelperEUMLImpl.java
branches/gsoc2007/b00__1/model-euml/src/org/argouml/model/euml/FacadeEUMLImpl.java
Log:
Support comments
Modified: branches/gsoc2007/b00__1/model-euml/src/org/argouml/model/euml/CoreHelperEUMLImpl.java
Url: http://argouml.tigris.org/source/browse/argouml/branches/gsoc2007/b00__1/model-euml/src/org/argouml/model/euml/CoreHelperEUMLImpl.java?view=diff&rev=13405&p1=branches/gsoc2007/b00__1/model-euml/src/org/argouml/model/euml/CoreHelperEUMLImpl.java&p2=branches/gsoc2007/b00__1/model-euml/src/org/argouml/model/euml/CoreHelperEUMLImpl.java&r1=13404&r2=13405
==============================================================================
--- branches/gsoc2007/b00__1/model-euml/src/org/argouml/model/euml/CoreHelperEUMLImpl.java (original)
+++ branches/gsoc2007/b00__1/model-euml/src/org/argouml/model/euml/CoreHelperEUMLImpl.java 2007-08-18 16:38:59-0700
@@ -1277,7 +1277,10 @@
}
public void setBody(Object handle, String body) {
- throw new NotYetImplementedException();
+ if (!(handle instanceof Comment)) {
+ throw new IllegalArgumentException();
+ }
+ ((Comment) handle).setBody(body);
}
@SuppressWarnings("deprecation")
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=13405&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=13404&r2=13405
==============================================================================
--- 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 16:38:59-0700
@@ -311,6 +311,9 @@
}
public Object getBody(Object handle) {
+ if (handle instanceof Comment) {
+ return ((Comment) handle).getBody();
+ }
throw new NotYetImplementedException();
}
@@ -707,7 +710,8 @@
}
public String getLocation(Object handle) {
- throw new NotYetImplementedException();
+ // Removed from UML2
+ return "";
}
public int getLower(Object handle) {