Procedure

Basic Beans Visualization, Parse, and Launch

Create a new Eclipse Java Project.

Add the SWT library to the project (MB2 -> Properties -> Java Build Path -> Libraries).

Import swt_smoke_test_source.zip into the project.
Open each class in the Visual Editor.
Verify that the contents are displayed properly (correct representation of each component and layout).
Launch each class using the Java Bean Launcher and
Verify that the running program matches what is displayed on the canvas.

 

FillLayoutShell.java

 

GridLayoutShell.java

 

NullLayoutShell.java

 

RowLayoutShell.java

 


Basic Functionality Verification

Note: Verify generated source after each step to make sure it is valid.

Perform the following tests on Shell and Composite.
Create a new empty Visual Class and/or extend the container.
Change the container's layout to Row.
Place 5 or more controls onto the container.


Change some of the visual properties, such as color, font, border, text, etc. on various controls from the property sheet and source.
Verify the property editors work properly.
Verify the property changes are reflected on all views.

Select the container and look at the layout property.
Verify that properties with sub properties have a + to expand sub properties
Verify that sub properties are displayed correctly. 

Reorder the controls visually and from the source.
Verify the controls are reordered properly on the canvas, beans view and source.

Change the container's layout to every layout option (null, fill, form, grid, row) randomly from both the PS and the source.

Verify that each operation can be undone properly.
Verify that each conversion happens properly.

Select a control on the canvas and MB2->Rename Field.  Change the name of the control.
Verify the source changes properly, the canvas remains unchanged, and the new title is reflected in the beans view.

Save, close and reopen class.
Verify class is loaded and displayed properly.

Make sure you save the Composite for the next step.

 

Dropping other Visual Beans and Preferences

Create a new Visual Class extending Shell.


Use the Choose Bean dialog to drop the Composite created in the previous example.
Verify that the dropped bean appears correctly.