Force Code Regeneration

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

Force Code Regeneration

Postby aoriglia » Wed Oct 20, 2004 1:09 am


Still evaluating the plugin...

Is there a way to force a global code regeneration after changing preferences?
Thanks again!

Posts: 3
Joined: Thu Oct 14, 2004 11:51 pm
Location: Aubagne, France

Re: Force Code Regeneration

Postby Eric Clayberg » Wed Oct 20, 2004 10:58 am

aoriglia wrote:Is there a way to force a global code regeneration after changing preferences?

No. When you make an edit in Designer, it only updates the line or lines of code that need to change. It never regenerates the entire file (even internally). This is one of the primary reasons that you can refactor the code at will and add user-written code anywhere you like.

Regenerating all of the code might be possible based on some subset of preference changes, but it would not be practical in the general sense. In many case, regenerating the code would represent a complex refactoring operation? Depending on the style and scoping choices, widget variable names might need to change. Some variables might need to become fields as well. Converting event handlers from one style to another would also be a challenge.
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: No registered users and 1 guest