Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » UndoablePropertySheetPage and Wrapped/Unwrapped Property Values (EMF.Edit)
UndoablePropertySheetPage and Wrapped/Unwrapped Property Values (EMF.Edit) [message #221369] Fri, 11 August 2006 20:33
Eclipse UserFriend
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
Previous Topic:How can I be notified when the files in workspace was changed? In order to create a common navigati
Next Topic:Cannot delete an object???
Goto Forum:
  


Current Time: Thu Apr 25 07:21:06 GMT 2024

Powered by FUDForum. Page generated in 0.03796 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top