Unable to add required property 'event' in ExecutionOccurrenceSpecification [message #627513] |
Thu, 23 April 2009 19:47 |
Eclipse User |
|
|
|
Originally posted by: florianwendland.freenet.de
Hey all,
i've found a bug, when i played a bit with interactions. The Validator
(and even the spec) recommend, that an ExecutionOccurrenceSpecification
had to declare a required property 'Event', which is possibly an
Receive/SendOperationEvent. So i've set it, and this causes an
IllegalArgumentException. Here is the relevant trace:
java.lang.IllegalArgumentException:
org.eclipse.uml2.uml.internal.impl.ReceiveOperationEventImpl @6a9b28
(name: RecvEvt9, visibility: <unset>)
at
org.eclipse.uml2.uml.internal.impl.ExecutionOccurrenceSpecif icationImpl.setEvent(ExecutionOccurrenceSpecificationImpl.ja va:177)
at
org.eclipse.uml2.uml.internal.impl.ExecutionOccurrenceSpecif icationImpl.eSet(ExecutionOccurrenceSpecificationImpl.java:3 08)
at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eSet(BasicEObjec tImpl.java:1071)
at org.eclipse.emf.edit.command.SetCommand.doExecute(SetCommand .java:721)
at
org.eclipse.emf.edit.command.AbstractOverrideableCommand.exe cute(AbstractOverrideableCommand.java:131)
at
org.eclipse.emf.common.command.BasicCommandStack.execute(Bas icCommandStack.java:84)
at
org.eclipse.emf.edit.provider.ItemPropertyDescriptor.setProp ertyValue(ItemPropertyDescriptor.java:1427)
at
org.eclipse.uml2.uml.editor.presentation.UMLEditor$UMLProper tySource.setPropertyValue(UMLEditor.java:1917)
at
org.eclipse.ui.views.properties.PropertySheetEntry.valueChan ged(PropertySheetEntry.java:782)
at
org.eclipse.ui.views.properties.PropertySheetEntry.setValue( PropertySheetEntry.java:723)
at
org.eclipse.ui.views.properties.PropertySheetEntry.applyEdit orValue(PropertySheetEntry.java:146)
at
org.eclipse.ui.views.properties.PropertySheetEntry$1.applyEd itorValue(PropertySheetEntry.java:103)
at org.eclipse.jface.viewers.CellEditor$1.run(CellEditor.java:3 33
HTH
Marc-Florian
|
|
|
Powered by
FUDForum. Page generated in 0.02391 seconds