[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools] Re: isDirty update
|
- From: pebraert@xxxxxxxxx (Peter Ebraert)
- Date: Fri, 2 May 2003 12:56:17 +0000 (UTC)
- Newsgroups: eclipse.tools
- Organization: http://www.eclipse.org
- User-agent: NewsPortal 0.23
3 more questions:
- To which object or class should I call this method?
- PROP_DIRTY is a static field of which class?
- Where can I find that FAQ?
Thanks,
Peter
Andrew McCullough wrote:
> 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
> >