isDirty() == true, but dirty flag (*) doesn't show up in the editor [message #449488] |
Mon, 15 May 2006 05:38  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
>
|
|
|
Powered by
FUDForum. Page generated in 0.04412 seconds