Procedure
 

This test examines VE's RCP support using the PDE environment, as well as the creation, and editing of a view Part

Setup

 

Download the latest RCP image from eclipse (same download page as that of the Eclipse image), and extract it to some local disk location.

 

From the preference page, select the plugin development target to be that of the RCP image you have just downloaded


 

 

Create a new plugin project RCPmail, and select Yes to create a rich client application on the second page of the new plugin creation wizard. 

 

Select the RCP mail template from the next page, and click finish.  A new RCPmail plugin project is created.  Try to run it: select project, and user RunAs Eclipse Application.


       
Tasks
 

Open the View class using the visual editor,

Verify that view looks like the view that was rendered when you ran the RCP application.

       
Click on each label on the Free Form, and verify that  that the code is driven the the proper label instance in the code.

Repeat the selection on the JavaBeans view and verify that  that the code is driven the the proper label instance in the code.

 

Click on the banner composite, show Grid, verify that the SWT grid shows correctly.

Click on the link and delete it verify  that the Date label now occupies the link's location.

Undo and Redo, verify that the snippet analysis restore, and redo this.

 

Drop the SWT link component and insert it in front of the Date label.

Set the text property from the property sheet to be "nicole@mail.org"

verify that the following dialog comes up denoting that you did not specify anchors.

verify that the link's text is rendered correctly on the on the right side of the From: label.

Select the link to drive to the source, and add <A> to the text value of the link from the source pane.

link.setText("<A>nicole@mail.org");

verify that the content is reflected in the property sheet.

Add </A> at the end of the setText property in the source, and verify that the link is now enabled on the canvas

 

 

Add a widgetSelected event on the link, leave the default print debug statement. and Run as a JavaBean.

verify that the link's event works (clicking on it will result in the print into the console).

 

Try to move the Subject, Subject msg., From, Data labels around within the grid.. These labels re-use the local instance variable and require special codegen handling.

verify that the right code is generated/updated.  ... you can verify this by ensuring that there are no errors in the source code, and press the reload button and ensure that the reverse parsing redraw the label right where you placed them.

 

 

 

 

Change the banner's layout to null.  verify that the canvas looks ok, and no exceptions in the log, show grid, and verify null grid.

Drag the last instance of the label (10:34 am) to the right of the banner and verify that the proper l.setBounds is updated.

Change the banner to GridLayout, verify that banner looks ok.  Click one Undo at the time until the banner goes back to the original GridLayout settings, and verify that in each step, the snippet analysis updates the GUI properly.

 

Click on the parent widget on the JavaBean's view.  Verify that there is no layout property on the property sheet.

Verify that one can not change the instance field name for parent.

 

Change the view's setting from the preference page

 

Verify that on an editor re-open, and that the JavaBean launcher pick up these settings.

 

The Viewer's trim's icon, and text are picked up from the manifest file.  Verify this on the visual editor, and Verify this on the JavaBean launcher.

Change the manifest's icon, and text, and Verify that the Visual Editor picks up these changes.

 

Save the file, and reload from scratch (cache will be used).  Verify that the GUI is rebuilt correctly.

 

Create a new RCP view, using the VE's create visual class wizard:

 

Verify that a top Composite is created on top of parent.  Drop a Button, and a CheckBox on top of the View on the Canvas, and verify that on sure that they have been dropped on top of top.

Change the layout to RowLayout, verify that the canvas reflects this, as well as the code.

 

Launch this file with the JavaBean launcher, and verify that it looks ok.

On the running View, verify that one can not close the View by pressing the view's (not Shell) close button.

 

Create a new Java Project (not a plugin), Open the create visual class wizard again, and try to create an RCP view using the Java Project.

Verify that the wizard will not let you create a ViewPart for the Java project.  Views are only available for an RCP project.

 

Create a new Plugin project that is NOT a UI plugin, make sure that the UI checkbox is unchecked.

Verify that the wizard will not let you create a ViewPart for this project.