* Opens a dialog to assist the user find their unit test. If the user
* selects a file it will update the global instance of TestCase.
*/
private void browseFiles() {
ResourceListSelectionDialog listSelection = null;
try {
listSelection = new ResourceListSelectionDialog(
null,
ResourcesPlugin.getWorkspace().getRoot(),
IResource.FILE
);
} catch (Exception e) {
e.printStackTrace();
}
listSelection.setTitle("Find CFUnit Test");
if(listSelection.open() == ResourceListSelectionDialog.OK) {
Object[] result = listSelection.getResult();
if(result.length == 1) {
IResource resource = (IResource)result[0];
CFUnitTestSuite.getInstence().setTest( CFUnitTestCase.getResourceFullName( resource ) );
actionAutoload.setChecked( false );