Automatically making a form dirty

SWT Designer allows you to create the views, editors, perspectives, pref pages, composites, etc. that comprise Eclipse SWT & RCP applications and plug-ins.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

Automatically making a form dirty

Postby jfengel » Wed Sep 22, 2010 8:12 am

By default, a new form has its isDirty() method automatically return false.

The SWT interface for this is quite tedious, adding a listener to every field. Is there a way to automatically add such code, perhaps via data binding?
jfengel
 
Posts: 2
Joined: Tue Sep 21, 2010 1:19 pm

Re: Automatically making a form dirty

Postby Eric Clayberg » Wed Sep 22, 2010 12:20 pm

Off hand, I don't know whether the Eclipse DB API will do this.

Likely so, but this would be a good question for the appropriate Eclipse newsgroup.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Re: Automatically making a form dirty

Postby jfengel » Wed Sep 22, 2010 12:42 pm

Thanks. I couldn't find such a thing in the API, and I just wanted to make sure that there wasn't some crucial idiom I was missing.

I'm new to Eclipse/SWT/JFace, and I'm finding the complexity of the API rather unnerving.
jfengel
 
Posts: 2
Joined: Tue Sep 21, 2010 1:19 pm

Re: Automatically making a form dirty

Postby Eric Clayberg » Wed Sep 22, 2010 12:49 pm

The best place to ask SWT questions would be the Eclipse SWT newsgroup.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA


Return to SWT Designer

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 1 guest

cron