[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.tools.emf] Common Navigator + EMF + Properties View

Hi,

I want the user to be able to modify properties of model objects, which are shown in the Project Explorer using the Common Navigator Framework. The Properties View displays their properties, but modifing a particular type of property does not work. When the user tries to modify a property, which is defined as a multi-line String in the genmodel and it already contains a string, he's getting this exception:

java.lang.ClassCastException: org.eclipse.emf.edit.provider.ItemPropertyDescriptor$PropertyValueWrapper cannot be cast to java.lang.String
at org.eclipse.emf.ecore.impl.EcoreFactoryImpl.convertEStringToString(EcoreFactoryImpl.java:654)
at org.eclipse.emf.ecore.impl.EcoreFactoryImpl.convertToString(EcoreFactoryImpl.java:224)
at org.eclipse.emf.ecore.util.EcoreUtil.convertToString(EcoreUtil.java:3112)
at org.eclipse.emf.edit.ui.provider.PropertyDescriptor$EDataTypeValueHandler.toString(PropertyDescriptor.java:199)
at org.eclipse.emf.edit.ui.provider.PropertyDescriptor$2.openDialogBox(PropertyDescriptor.java:293)
at org.eclipse.jface.viewers.DialogCellEditor$2.widgetSelected(DialogCellEditor.java:244)
...



Any hints to fix this issue?

Best regards,
Ömer Yildiz