Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » How to manually mark editor dirty?
How to manually mark editor dirty? [message #595681] Fri, 17 April 2009 07:57
Eclipse UserFriend
Originally posted by: timo.rohrberg.gmx.net

Hello everybody,

I have a - hopefully simple - question concerning the isDirty handling
of an editor developed within the Eclipse Plug-in Development Environment:

Some of my model elements do have complex properties which are objects
themselves, containing again complex properties, like this:

public class ModelElement implements Serializable {
private Property myProperty;
}

public class Property implements Serializable {
private Property subProperty;
private int fieldThatMayChange;
}

Now I need to manually mark the editor dirty when some one of the fields
(in the Eeample fieldThatMayChange) of those complex properties change.
How can I achieve that? Do I have access to the editor and it's
"firePropertyChange(PROP_DIRTY)" somehow? There's probably no direct
access to that method as it's protected in the GraphicalEditor class.

Thanks for any reply!

Timo Rohrberg

--
Timo Rohrberg <timo.rohrberg@gmx.net>

"Brick walls let us show our dedication. They are there to separate
us from the people who don't really want to achieve their childhood
dreams." (Randy Pausch, computer science professor at CMU)
Previous Topic:Headless build fails with NullPointerException
Next Topic:Don't succeed to fetch bundles with p2IU
Goto Forum:
  


Current Time: Thu Apr 25 07:41:35 GMT 2024

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

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

Back to the top