Procedure

Visual Editor Style 2 & 3 Events Test

Setup


Import the jar file called events-examples.zip into an Eclipse project.

Style 2

Open CustomerInfoS2.java in package com.ibm.ivj.examples.vc.customerinfo

Verify the events are parsed and displayed properly on the beans view in both basic and expert modes.




Select each of the callbacks
Verify the source is driven to the if statement in the shared event class

Switch to expert mode
Select each of the listener classes
Verify the source is driven to the place where the listener is registered with the bean.

Delete an event in both basic and expert modes
Verify the if block is removed for that event (note that the inner class will remain with a skeleton of its implements)

Delete an event class in the expert mode
Verify the listener registration with the bean is removed

Open AmortizationS2.java in package com.ibm.ivj.examples.vc.swing.mortgageamortizer
Repeat the above steps with this class.


Open the com.ibm.ivj.examples.vc.swing.mortgageamortizer.AmortizationS2 class,
Verify the events are parsed and displayed properly (note the property changed events as well)



Verify the source is driven to the properties (principalAmount, amortizationPeriod .... timesPerYear) events.
Delete each property
Verify that the corresponding source block (if statement) is removed.


Style 3

Open CustomerInfoS3.java in package com.ibm.ivj.examples.vc.customerinfo

Verify the events are parsed and displayed properly on the beans view in both basic and expert modes.




Select each of the events.
Verify the source is driven to the event method declaration in the inner class

Switch to expert mode
Select each of the events classes
Verify the source is driven to where the event class is declared and registered with the bean

Switch to basic mode
Delete an event
Verify the whole event class is removed

Revert the file to saved state.

Switch to expert mode
Delete an event in an adapter
Verify the entire method within the adapter is removed

Delete an event inside a listener
Verify the body of the listener method is removed

Revert the file to saved state

Delete an adapter class
Verify the entire adapter class is removed

Delete a listener class
Verify the entire listener class is removed

Open AmortizationS3.java in package com.ibm.ivj.examples.vc.swing.mortgageamortizer
Repeat the above steps with this class.

Drag/Drop Events in the Beans viewer
In the Beans Viewer, drag/drop an event to a different location as if to move it before another event.
Note: this action is not allowed and normally you would see a not sign for the cursor. The is a bug in GEF and a bugzilla defect opened to track this.
Verify the event doesn't move and their are no changes to the source code.