Creating a WindowBuilder Project

This topic contains the following:

Create a BDT WindowBuilder project that can edit an .arc file

  1. Install or update the BDT WindowBuilder plug-in from inside Eclipse following the instructions at links.basis.com/eclipse.

  2. Open the BDT perspective from the main menu: Window > Perspective> Open Perspective.

  3. If ‘BDT’ is available, select it; otherwise, select ‘Other’, and then choose BDT and click [OK].

    Note: At this point if you are in a new workspace, BDT will provide notification that a valid BBj Installation needs to be selected. Click the two [Search] buttons offered, then navigate to a BBj that is valid for the version of BDT installed, and then click [Finish].

  4. Ensure the BDT Explorer view is visible and active; if it is not, from the main menu select Window > Show View > BDT Explorer.

  5. Create a new BBj project; from the main menu: File > New > BBj Project.

  6. Enter a 'Project name' such as WBProj and click [Finish].

  7. Create a new arc file by right-clicking the newly created WBProj entry in the BDT Explorer and selecting New > Arc File. This opens the Arc File Wizard.

  8. Enter a ‘File name’ such as "WBArcFile" and click [Finish].

  9. The arc file will open in the BDT WindowBuilder arc file editor with the Design tab selected at the bottom of the editor display

  10. If any palettes are showing in the center pane titled ‘Palette’, then hide them. Right-click any control on any palette and select ‘Palette manager...’.

  11. Uncheck every palette in the list that does not begin with "BBj" and click [OK].

(back to top)

 

Add a Control to the Top Level Window (the light gray area):

  1. Click on any control in a BBj palette, for example a BBjInputE in the ‘BBj Controls’ palette.
  2. Move the mouse over the Top Level Window (the light gray drawing area to the right of the Palette); when the control is where you would like it inside the window, click the mouse to ‘drop’ it.

(back to top)

 

Edit a property of the selected control

  1. While the BBjInputE control is selected, scroll as necessary in the Properties panel and click on the value of the ‘mask’ property (containing a series of X characters).

  2. Alternatively, click on the ellipsis button on the far right to open a String editor.

  3. In either case, set the value to "XX_XXXXXXX" (without the quotes) and hit the Enter key or click the [OK] button to apply your changes

(back to top)

 

Import an existing .arc file into a BBj project

  1. If you do not already have a BBj project, create one following the steps outlined above.

  2. With your BBj project selected in the BDT Explorer, select File > Import in the main menu.

  3. Choose BDT > File and click [Next]; this opens the File Import Wizard.

  4. Click [Browse].

  5. Navigate to and select your arc file, and click [Open].

  6. Enter or select a destination folder for the arc file.

  7. Optionally, edit the name of the file in the “New file name” field.

  8. Click [Finish].

  9. Expand your new arc file in the BDT Explorer and double-click any of the Top Level Components displayed there to open a WindowBuilder editor.

By default, your arc file displays the “Design” tab. To see the actual arc file text, click the "ARC Source" tab at the bottom of the display of your file.

(back to top)

 

Get an existing BBj project from source control

  1. Install or update the BDT plug-in from inside Eclipse or at links.basis.com/eclipse.

  2. Open the BDT perspective from the main menu: Window > Perspective > Open Perspective.

  3. If ‘BDT’ is available, select it; otherwise, select ‘Other’, and then choose BDT and click [OK].

  4. Ensure the BDT Explorer view is visible and active; if it is not, from the main menu select Window > Show View > BDT Explorer.

  5. To create a new BBj project by checking out an existing project from source control (this example checks out from Subversion): File > New > Other to open the ‘New/Select a wizard’ window.

  6. Select SVN/Checkout projects from SVN (or the equivalent for your tool - the plugin “SVN’ is only available if it is installed in Eclipse) and click [Next].

  7. Choose a repository and browse to its existing project you want to checkout, and click [Finish].

  8. Select “Check out as a project configured using the New Project Wizard” and click [Finish].

  9. Expand the BDT group, select ‘BBj Project’, then click [Next].

  10. Enter a new name for the BBj project and click “Finish”; the new project will appear in the BDT Explorer.

(back to top)

 

See Also

WindowBuilder Overview