*/
public void doAction(ActionEvent e)
{
ActionRouter.getInstance().doActionNow(
new ActionEvent(e.getSource(), e.getID(), CheckDirty.CHECK_DIRTY));
GuiPackage guiPackage = GuiPackage.getInstance();
if (guiPackage.isDirty())
{
if (JOptionPane
.showConfirmDialog(
GuiPackage.getInstance().getMainFrame(),
JMeterUtils.getResString("cancel_new_to_save"),
JMeterUtils.getResString("Save?"),
JOptionPane.YES_NO_OPTION,
JOptionPane.QUESTION_MESSAGE)
== JOptionPane.YES_OPTION)
{
ActionRouter.getInstance().doActionNow(
new ActionEvent(
e.getSource(),
e.getID(),
CheckDirty.SAVE_ALL));
}
}
guiPackage.getTreeModel().clearTestPlan();
guiPackage.getTreeListener().getJTree().setSelectionRow(1);
// Clear the name of the test plan file
Save save =
(Save) ActionRouter.getInstance().getAction(
"save",