Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Restoring property values
Restoring property values [message #173574] Thu, 24 March 2005 20:52 Go to next message
Eclipse UserFriend
Originally posted by: jduley.mail.arc.nasa.gov

Hi,
I am having a problem restoring the state of my figures based on the
last values sepcified in the property view. In my application, I am
able to update a label on a Figure object using the property view. The
problem occurs when I save the shapes file and close it, then reopen it.
The label text gets reset to it's default value but when I select the
Figure, all the saved values are in the property sheet. What do I need
to do to get the last saved property value into my figures when
restored? I examined the examples and am not sure where to look for
hints. Thanks.
Jason
Re: Restoring property values [message #173587 is a reply to message #173574] Thu, 24 March 2005 23:17 Go to previous message
Pratik Shah is currently offline Pratik ShahFriend
Messages: 1077
Registered: July 2009
Senior Member
What is this default value? Is it something in the model or something that
the EditPart conjures up? Set a breakpoint in the refreshVisuals() method
of the concerned EditPart and see what are the values that it retrieves from
the model when it's first created.


"Jason" <jduley@mail.arc.nasa.gov> wrote in message
news:d1ve48$i2d$1@news.eclipse.org...
> Hi,
> I am having a problem restoring the state of my figures based on the
> last values sepcified in the property view. In my application, I am
> able to update a label on a Figure object using the property view. The
> problem occurs when I save the shapes file and close it, then reopen it.
> The label text gets reset to it's default value but when I select the
> Figure, all the saved values are in the property sheet. What do I need
> to do to get the last saved property value into my figures when
> restored? I examined the examples and am not sure where to look for
> hints. Thanks.
> Jason
Previous Topic:Using GEF with a large number of children
Next Topic:setting ContextMenu for TreeViewer
Goto Forum:
  


Current Time: Fri Apr 26 08:40:25 GMT 2024

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

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

Back to the top