Community
Participate
Working Groups
I am getting an unexpected error when trying to edit the value of a Literal Integer in the properties view using the UML tab : Caused by: java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Integer at org.eclipse.uml2.uml.internal.impl.LiteralIntegerImpl.eSet(LiteralIntegerImpl.java:245) at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eSet(BasicEObjectImpl.java:1081) at org.eclipse.papyrus.properties.runtime.modelhandler.emf.StringEMFModelHandler.setValueInModel(StringEMFModelHandler.java:47) at org.eclipse.papyrus.properties.runtime.controller.EMFTStructuralFeatureController.setValueInModel(EMFTStructuralFeatureController.java:169) at org.eclipse.papyrus.properties.runtime.controller.EMFTPropertyEditorController$EMFTControllerCommand.doExecuteWithResult(EMFTPropertyEditorController.java:94) at org.eclipse.gmf.runtime.emf.commands.core.command.AbstractTransactionalCommand.doExecute(AbstractTransactionalCommand.java:247) at org.eclipse.emf.workspace.AbstractEMFOperation.execute(AbstractEMFOperation.java:150) at org.eclipse.core.commands.operations.DefaultOperationHistory.execute(DefaultOperationHistory.java:511) ... 121 more Using the advanced tab I am getting a very weird behavior : when editing the value (just a click on the "0") the box is filled with something like "org.eclipse.emf.edit.provider.ItemPropertyDescriptor$PropertyValueWrapper@1894f8c". however if I write a number it just works. This behavior is not trigerred in the properties view of the hierarchical uml editor.
The first issue has been fixed by commit 2625. However the weird behavior in the advanced tab is still present.
This problem doesn't seem to exist anymore. I don't know if that's because I cannot reproduce it, if it has been fixed, or if it disappeared with the new property view framework (Which would be strange as the new framework handles the advanced tab exactly as the previous one).