*/
public void doAction(ActionEvent e) {
ReportActionRouter.getInstance().doActionNow(
new ActionEvent(e.getSource(), e.getID(),
ReportCheckDirty.CHECK_DIRTY));
ReportGuiPackage guiPackage = ReportGuiPackage.getInstance();
if (guiPackage.isDirty()) {
if (JOptionPane.showConfirmDialog(ReportGuiPackage.getInstance()
.getMainFrame(), JMeterUtils
.getResString("cancel_new_to_save"), JMeterUtils
.getResString("Save?"), JOptionPane.YES_NO_OPTION,
JOptionPane.QUESTION_MESSAGE) == JOptionPane.YES_OPTION) {
ReportActionRouter.getInstance().doActionNow(
new ActionEvent(e.getSource(), e.getID(), ActionNames.SAVE));
}
}
guiPackage.getTreeModel().clearTestPlan();
guiPackage.getTreeListener().getJTree().setSelectionRow(1);
// Clear the name of the test plan file
ReportGuiPackage.getInstance().setReportPlanFile(null);
ReportActionRouter.getInstance().actionPerformed(