com.javapathfinder.vjp.config
Class LaunchDialog

java.lang.Object
  extended by org.eclipse.jface.window.Window
      extended by org.eclipse.jface.dialogs.Dialog
          extended by org.eclipse.jface.dialogs.TrayDialog
              extended by org.eclipse.jface.dialogs.TitleAreaDialog
                  extended by com.javapathfinder.vjp.config.LaunchDialog
All Implemented Interfaces:
java.util.EventListener, org.eclipse.jface.window.IShellProvider, org.eclipse.swt.events.SelectionListener, org.eclipse.swt.internal.SWTEventListener

public class LaunchDialog
extends org.eclipse.jface.dialogs.TitleAreaDialog
implements org.eclipse.swt.events.SelectionListener

This is the main Configuration that VJP creates for the user. It lists all of the Mode Property Confguration files found along with an editor to modify them.

Author:
Sandro Badame

Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.jface.window.Window
org.eclipse.jface.window.Window.IExceptionHandler
 
Field Summary
 
Fields inherited from class org.eclipse.jface.dialogs.TitleAreaDialog
DLG_IMG_TITLE_BANNER, DLG_IMG_TITLE_ERROR, INFO_MESSAGE, WARNING_MESSAGE
 
Fields inherited from class org.eclipse.jface.dialogs.Dialog
blockedHandler, buttonBar, DIALOG_DEFAULT_BOUNDS, DIALOG_PERSISTLOCATION, DIALOG_PERSISTSIZE, DLG_IMG_ERROR, DLG_IMG_HELP, DLG_IMG_INFO, DLG_IMG_MESSAGE_ERROR, DLG_IMG_MESSAGE_INFO, DLG_IMG_MESSAGE_WARNING, DLG_IMG_QUESTION, DLG_IMG_WARNING, ELLIPSIS
 
Fields inherited from class org.eclipse.jface.window.Window
CANCEL, OK
 
Constructor Summary
LaunchDialog(org.eclipse.swt.widgets.Shell parentShell)
          Constructs this dialog with this shell specified.
 
Method Summary
 void createButtonsForButtonBar(org.eclipse.swt.widgets.Composite parent)
          Creates the Verify and Cancel buttons for the button bar
 org.eclipse.swt.widgets.Composite getInfoPanel()
           
 ModePropertyTree getTree()
           
 void updateTree()
          Rebuilds the updateTree.
 void widgetDefaultSelected(org.eclipse.swt.events.SelectionEvent e)
           
 void widgetSelected(org.eclipse.swt.events.SelectionEvent e)
          Called when a button is selected.
 
Methods inherited from class org.eclipse.jface.dialogs.TitleAreaDialog
setErrorMessage, setMessage, setMessage, setTitle, setTitleAreaColor, setTitleImage
 
Methods inherited from class org.eclipse.jface.dialogs.TrayDialog
close, closeTray, getTray, isDialogHelpAvailable, isHelpAvailable, openTray, setDialogHelpAvailable, setHelpAvailable
 
Methods inherited from class org.eclipse.jface.dialogs.Dialog
applyDialogFont, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, create, getBlockedHandler, getImage, setBlockedHandler, shortenText
 
Methods inherited from class org.eclipse.jface.window.Window
getDefaultImage, getDefaultImages, getDefaultOrientation, getReturnCode, getShell, getWindowManager, open, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setWindowManager
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LaunchDialog

public LaunchDialog(org.eclipse.swt.widgets.Shell parentShell)
Constructs this dialog with this shell specified.

Parameters:
parentShell - the parent shell for this dialog
Method Detail

getInfoPanel

public org.eclipse.swt.widgets.Composite getInfoPanel()
Returns:
the panel that displays informaton about the currently selected tree item.

createButtonsForButtonBar

public void createButtonsForButtonBar(org.eclipse.swt.widgets.Composite parent)
Creates the Verify and Cancel buttons for the button bar

Overrides:
createButtonsForButtonBar in class org.eclipse.jface.dialogs.Dialog
See Also:
Dialog.createButtonsForButtonBar(org.eclipse.swt.widgets.Composite)

widgetSelected

public void widgetSelected(org.eclipse.swt.events.SelectionEvent e)
Called when a button is selected. (non-Javadoc)

Specified by:
widgetSelected in interface org.eclipse.swt.events.SelectionListener
See Also:
SelectionListener.widgetSelected(org.eclipse.swt.events.SelectionEvent)

updateTree

public void updateTree()
Rebuilds the updateTree.


getTree

public ModePropertyTree getTree()
Returns:
the file tree that displays all of the configuration files in the workspace.

widgetDefaultSelected

public void widgetDefaultSelected(org.eclipse.swt.events.SelectionEvent e)
Specified by:
widgetDefaultSelected in interface org.eclipse.swt.events.SelectionListener