Community
Participate
Working Groups
Suppose that you specify a property for a diagram connection label that is @DerivedValue or @ReadOnly. In the diagram editor, the connection label always allows editing however, in the case of DerivedValue or ReadOnly this operation will fail with an exception like below: !ENTRY org.eclipse.graphiti.ui 4 0 2011-06-08 00:42:41.859 !MESSAGE GFCommandStack.execute(Command) java.lang.IllegalArgumentException: Cannot write property Label. !STACK 0 java.lang.IllegalArgumentException: Cannot write property Label. at org.eclipse.sapphire.modeling.ModelElement.write(ModelElement.java:408) at com.liferay.ide.eclipse.service.core.model.internal.Relationship.write(Relationship.java:243) at org.eclipse.sapphire.ui.diagram.editor.DiagramConnectionPart.setLabel(DiagramConnectionPart.java:230) at org.eclipse.sapphire.ui.swt.graphiti.features.SapphireDirectEditConnectionFeature.setValue(SapphireDirectEditConnectionFeature.java:71) at org.eclipse.graphiti.internal.command.DirectEditingFeatureCommandWithContext.execute(DirectEditingFeatureCommandWithContext.java:81) at org.eclipse.graphiti.ui.internal.command.GefCommandWrapper.execute(GefCommandWrapper.java:51) at org.eclipse.graphiti.ui.internal.editor.EmfOnGefCommand.execute(EmfOnGefCommand.java:59) at org.eclipse.graphiti.internal.command.GFPreparableCommand2.doExecute(GFPreparableCommand2.java:37) at org.eclipse.emf.transaction.RecordingCommand.execute(RecordingCommand.java:135) at org.eclipse.emf.workspace.EMFCommandOperation.doExecute(EMFCommandOperation.java:119)
Created attachment 197615 [details] Patch v1
Issue fixed. Greg, please verify. Shenxue, please code review.
The patch looks good. Thanks!
Pulled this update via CVS and verified in my dev environment.
Closing.