WindowBuilder:How to open the views with the Visual Editor

The view files (AccountCreateView, AccountOwnerCreateView …) are built using WindowBuilder. WindowBuilder is included in Eclipse and it allows you to drag and drop visual components. The components can have their attributes changed using property type dialog boxes and moved around on the screen.¬†WindowBuilder uses an advanced approach to produce a Java source code file without proprietary ¬†annotations.

When you open a file In Eclipse, Eclipse has to look up which editor to use. To use WindowBuilder you need to tell Eclipse to use that instead of the Java Editor. The output of WindowBuilder is a Java file, so the Java editor could also be used to edit the file. The WindowBuilder files end in .java. Another way of looking at it, is to think of it as being able to use different editors on a file.

Right Click on the File and then perform Open With WindowBuilder and you will get something like the second image.

Screen Shot 2013-10-05 at 9.49.16 PMThe two tabs at the bottom of the second image allow you to change from Design to Source Code View.

Screen Shot 2013-10-05 at 10.09.30 PM

 

You can find more information on Window Builder here.

Leave a Reply

Your email address will not be published. Required fields are marked *

*