Procedure

Interdependency Tests

Basic interdependency
Create two new Java projects - test1 and test2
In test1, create a new Visual Class called MyPanel extending JPanel in the package "hi"
In test2, create a new Visual Class called MyFrame extending JFrame
Change the background color of MyPanel to blue and save the file.
Verify that the VE can be used in more than one project simultaneously

In MyFrame, press the Choose Bean button on the palette and type My
Verify that MyFrame is listed, but MyPanel is not. Select Cancel to close the Choose Bean dialog.

MB2 on test2 project and select Properties.  Go to the Java Build Path page, and the Projects tab.
Check test1 and press ok.
Verify that MyFrame refreshes correctly when the build path updates.
In MyFrame, press the Choose Bean button on the palette and type My
Verify that both MyFrame and MyPanel is listed.

Select MyPanel and drop it on MyFrame.
Verify that MyPanel shows up correctly on MyFrame

Switch to the MyPanel editor
Change the background color to red.
Save the file.
Switch back to MyFrame
Verify that  MyFrame refreshes and displays the new color correctly.

Class rename
MB2 on the MyPanel.java file in the Navigator View and select Refactor->Rename.
Change the name of the class to MyJPanel
Verify that the source changes are reflected in both MyJPanel and MyFrame.
Verify the remote VMs for both MyJPanel and MyFrame are reloaded properly

Package rename
MB2 on package "hi" and select Refactor->Rename
Change the name of the package to "hello"
Verify that the source changes are reflected in both MyJPanel and MyFrame.
Verify the remote VMs for both MyJPanel and MyFrame are reloaded properly

Project rename
MB2 on project test1 and select Refactor->Rename
Change the name of the project test11
Verify that the source changes are reflected in both MyJPanel and MyFrame.
Verify the remote VMs for both MyJPanel and MyFrame are reloaded properly

Project move
Create new Java project test3
MB2 on test2 project and select Properties.  Go to the Java Build Path page, and the Projects tab.
Check test3 and press ok.
MB2 on package "hello" and select Refactor->Move
Select project test3
Verify the remote VMs for both MyJPanel and MyFrame are reloaded properly

Causing / Repairing Compilation errors
In the source of MyJPanel, add the line import a.b.c; to the bottom of the import statements.
Save the file, creating an error.
Switch to MyFrame
Verify that MyFrame displays a red X on the Beans View for MyJPanel, but displays otherwise

Return to MyJPanel and remove the bogus import and save.
Switch to MyFrame
Verify that MyFrame returns to displaying properly.