protected void setUp() throws Exception {
    initialize();
    buildWindow();

    if (this.parentTest == null) {
      File scXmlLocation =
          FileTools.resourceFile("/SessionsXMLTestModel/XMLSchemaSessions.xml", getClass());

      SCPlugin scPlugin =
          (SCPlugin)
              SCPluginFactory.instance()
                  .createPlugin(buildWorkbenchContext().getApplicationContext());
      projectNode =
          buildProjectNode(
              AllSCTests.loadSessions(scXmlLocation),
              scPlugin,
              buildWorkbenchContext().getApplicationContext());
      //			projectNode = (ProjectNode) scPlugin.open(scXmlLocation, buildWorkbenchContext());
    } else {
      SCAbstractPanelTest test = (SCAbstractPanelTest) this.parentTest;
      projectNode = test.projectNode;
    }

    // Create the proper tree data so that the session nodes will be available
    TreeModelAdapter treeModel = new TreeModelAdapter(projectNode);
    treeModel.addTreeModelListener(buildTreeModelListener());

    nodeHolder = buildNodeHolder(projectNode);
    selectionHolder = buildSelectionHolder(buildSelection());

    super.setUp();
  }
  /**
   * Nullified everything that was initialized.
   *
   * @throws Exception
   */
  protected void tearDown() throws Exception {
    selectionHolder.setValue(null);
    nodeHolder.setValue(null);

    nodeHolder = null;
    selectionHolder = null;
    windowX = windowW = windowH = 0;

    super.tearDown();
  }
  protected void initializeWindow() throws Exception {
    super.initializeWindow();

    if (this.parentTest == null) {
      this.window.getContentPane().add(buildControlPanel(), "South");
      this.window.pack();
      this.window.setLocation(windowX, 0);
      this.window.setSize(
          Math.max(windowW, this.window.getWidth()), Math.max(windowH, this.window.getHeight()));
    }
  }
 protected void execute(String[] arguments) throws Exception {
   super.execute(arguments);
   openCloneWindow();
 }