org.peace_tools.core
Class PEACE

java.lang.Object
  extended by org.peace_tools.core.PEACE

public class PEACE
extends java.lang.Object

The top-level class for the PEACE GUI application. This class merely contains the main method that jump starts the various operations including creation of the top-level frame for normal use.


Constructor Summary
private PEACE()
          The constructor.
 
Method Summary
protected  void launchMainFrame(java.lang.String workspacePath, boolean firstLaunch)
          Call back method from the work space chooser.
static void main(java.lang.String[] args)
          The main method launches the core dialogs in the system to start up on the swing thread.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PEACE

private PEACE()
The constructor. This is the main PEACE application method that launches the core dialogs in the system. Specifically it performs the following tasks:
  1. It launches a the WorkspaceChooser dialog to permit the user to choose a work space directory. This dialog also handles the task of asking the user to accept the license during first launch of PEACE.
  2. If the user chooses a valid work space this method launches the main frame that does rest of the normal operational tasks.

Method Detail

main

public static void main(java.lang.String[] args)
The main method launches the core dialogs in the system to start up on the swing thread. Starting the GUI on the swing thread is important to ensure that any custom UI installed with PEACE starts up correctly.

Parameters:
args - The command line arguments are currently unused.

launchMainFrame

protected void launchMainFrame(java.lang.String workspacePath,
                               boolean firstLaunch)
Call back method from the work space chooser. This method is called from the work space chooser after the user has selected a valid work space to work. This method launches the main frame that takes the place of the work space chooser.

Parameters:
workspacePath - The full absolute path to the work space.
firstLaunch - If this flag is true, then it is assumed that PEACE GUI is being run for the first time and a welcome screen with some basic instructions is displayed to the user.