Author: bobtarling Date: 2010-03-25 06:09:30-0700 New Revision: 18161 Modified: trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/FacadeEUMLImpl.java
Log: Implement getSignal Modified: trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/FacadeEUMLImpl.java Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/FacadeEUMLImpl.java?view=diff&pathrev=18161&r1=18160&r2=18161 ============================================================================== --- trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/FacadeEUMLImpl.java (original) +++ trunk/src/argouml-core-model-euml/src/org/argouml/model/euml/FacadeEUMLImpl.java 2010-03-25 06:09:30-0700 @@ -7,7 +7,7 @@ * http://www.eclipse.org/legal/epl-v10.html * * Contributors: - * thn + * Bob Tarling ***************************************************************************** * * Some portions of this file was previously release using the BSD License: @@ -1213,8 +1213,13 @@ } public Object getSignal(Object handle) { - throw new NotYetImplementedException(); - + if (handle instanceof SignalEvent) { + return ((SignalEvent) handle).getSignal(); + } + if (handle instanceof Reception) { + return ((Reception) handle).getSignal(); + } + throw new IllegalArgumentException("handle should be a SignalEvent or Reception!"); //$NON-NLS-<n>$ } public Vertex getSource(Object handle) { ------------------------------------------------------ http://argouml.tigris.org/ds/viewMessage.do?dsForumId=5905&dsMessageId=2464915 To unsubscribe from this discussion, e-mail: [[email protected]].
