try {
FileNode fn = (FileNode) tn.getUserObject();
if (fn.isTestcaseDir()) {
// get the source Dir
TestScriptCreation createScriptTool = new TestScriptCreation(input, fn.getFile().getParentFile().getAbsoluteFile().getCanonicalPath());
createScriptTool.copyTestSuite(fn.getFile().getAbsoluteFile().getCanonicalPath());
tn = (TCTreeNode) tn.getParent();
fn = (FileNode) tn.getUserObject();
} else {
TestScriptCreation createScriptTool = new TestScriptCreation(
input, fn.getFile().getAbsoluteFile().getCanonicalPath());
createScriptTool.createTestSuite();
}
// update the tree view
// add the tree
tn.removeAllChildren();