Refactoring property names not reflected in databindings

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

Refactoring property names not reflected in databindings

Postby IanHarac » Fri May 07, 2010 7:04 am

Not sure if this is a bug per se, or just something to watch out for: If you refactor (using the menu item, in Eclipse) a property name, databindings automatically generated by WindowBuilder do not update to reflect this. This can cause some unexpected null pointer errors when the databinding tries to reference a now-nonexistent property.
Posts: 27
Joined: Wed Jan 10, 2007 7:04 am

Re: Refactoring property names not reflected in databindings

Postby Eric Clayberg » Fri May 07, 2010 11:27 am

Sounds like a bug / missing feature in the relevant Eclipse refactoring. WB is generating pure SWT / JFace code. That is also true for the Data Binding code. If you wrote it all by hand, it sounds like you would have the exact same problem. The refactoring function shoudl be made aware of the Eclipse DB API so that it can detect those property names and change them as well (assuming that is even possible).
Eric Clayberg
Software Engineering Manager

Author: "Eclipse Plug-ins"
Eric Clayberg
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: Google [Bot] and 2 guests