UndoablePropertySheetPage and Wrapped/Unwrapped Property Values (EMF.Edit) [message #221369] |
Fri, 11 August 2006 20:33 |
Eclipse User |
|
|
|
Originally posted by: Daniel.Rozeboom.cda.canon.com
Hi there,
I saw a thread from 2004
( http://dev.eclipse.org/newslists/news.eclipse.tools.gef/msg0 7384.html)
stating that the problem with property value wrapping (wherein the
UndoablePropertySheetPage expects a plain value but recieves a wrapped value
from EMF.Edit's property source providers) was fixed. A workaround was
described where the setPropertyValue method of the ItemPropertyDescriptor (I
think) can be overwritten to unwrap the value if necessary. I am
encountering the same ClassCastException as described in the symptoms of
this problem, but I'm running 3.2 and a corresponding version of GEF.
Was this problem "un-fixed"? I tried the workaround in one of my
EMF.Edit property descriptors, and it seemed to be successful (I was able to
undo without recieving an exception), but in order to accomplish the fix for
all of my properties I would need to remove the generated tag on dozens of
my EMF.Edit methods, thereby making them resistant to future changes and
making it much more difficult to add new properties. Do you know why I
might still be recieving this exception? If it was un-fixed, is there a
better workaround than messing up the EMF-generated code? Let me know -
thanks.
- Daniel
|
|
|
Powered by
FUDForum. Page generated in 0.03796 seconds