[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools] Re: isDirty update

1.  Please post such questions to eclipse.platform -- this newsgroup is
deprecated.

2. This is a FAQ.  Any time you change the value returned by isDirty() you
need to add the line "firePropertyChange(PROP_DIRTY)" to tell the Workbench
to re-query that method.

-Andrew

"Peter Ebraert" <pebraert@xxxxxxxxx> wrote in message
news:b8riin$5p9$1@xxxxxxxxxxxxxxxx
> Hello,
>
> I have a multipage editor. One page has an XML editor attached to it to
> display the source of the file (the source page).
>
> The second page (the overview page) shows a form view (a lot of widgets)
> on that XML file. When the user changes something in that form, an isDirty
> field of the MultiPageEditor is set to true.
>
> The MultiPageEditor's isDirty() method uses that isDirty value to decide
> whether the file is dirty.
>
> When the user changes makes some changes in the form, and then changes
> from the overview page to the source page, the title of the editor gets
> the * at the beginning of it. That is cool and OK.
>
> But I'd like to see that * to indicate something was changed, imediately
> after the user modifies something in the form. Can somebody tell me how to
> do that?
>
> Thanks,
>
> Peter
>