Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » isDirty() == true, but dirty flag (*) doesn't show up in the editor
isDirty() == true, but dirty flag (*) doesn't show up in the editor [message #449488] Mon, 15 May 2006 05:38 Go to next message
Eclipse UserFriend
Hi,

When a change is made to the editor, I set the dirty flag to true and
then fire a property change event. I don't see the dirty flag symbol (*)
being set in the editor. However, the value of the dirty flag is set to
true in my code.

Below is the code,

private boolean dirty = false;
---
public boolean isDirty() {
return dirty;
}

private void setDirty(boolean dirty) {
this.dirty = dirty;
firePropertyChange(PROP_DIRTY);
}
---
I set setDirty(true) when the editor changes.

Can anyone help me with this? Thanks.

Regards,
Ravi
Re: isDirty() == true, but dirty flag (*) doesn't show up in the editor [message #449506 is a reply to message #449488] Mon, 15 May 2006 11:30 Go to previous message
Eclipse UserFriend
Could if be that PROP_DIRTY is not ISaveablePart.PROP_DIRTY (value 0x101)?

If the problem persists, please enter a bug against Platform/UI.

Boris

"Ravi" <ravindrasmurthy@rediffmail.com> wrote in message
news:b08232528901460e5daad185c5c9d2b4$1@www.eclipse.org...
> Hi,
>
> When a change is made to the editor, I set the dirty flag to true and
> then fire a property change event. I don't see the dirty flag symbol (*)
> being set in the editor. However, the value of the dirty flag is set to
> true in my code.
>
> Below is the code,
>
> private boolean dirty = false;
> ---
> public boolean isDirty() {
> return dirty;
> }
>
> private void setDirty(boolean dirty) {
> this.dirty = dirty;
> firePropertyChange(PROP_DIRTY);
> }
> ---
> I set setDirty(true) when the editor changes.
>
> Can anyone help me with this? Thanks.
>
> Regards,
> Ravi
>
Previous Topic:sticky view maximizes after intro close
Next Topic:Splash progress bar for early initialization
Goto Forum:
  


Current Time: Sat Aug 30 15:00:23 EDT 2025

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

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

Back to the top