modesteditor.launch.ui
Class ModestLaunchTab

java.lang.Object
  extended by org.eclipse.debug.ui.AbstractLaunchConfigurationTab
      extended by modesteditor.launch.ui.ModestLaunchTab
All Implemented Interfaces:
org.eclipse.debug.ui.ILaunchConfigurationTab

public class ModestLaunchTab
extends org.eclipse.debug.ui.AbstractLaunchConfigurationTab

The main tab in the Run dialog for MoDeST. Allows the user to enter the file to be compiled, and saves the information in a launch configuration.

Note that we never have to create our own launch configurations ("configs"). Eclipse handles the entire config life cycle -- creating, saving and reloading configs -- on its own. This class is only responsible for getting MoDeST-specific information from the user and entering it in the config Eclipse passes to it. Eclipse will save the config somewhere, and pass it to the MoDeST launch delegate whenever the user asks to run the config. To enable Eclipse to do all this, a launch configuration is very simple, essentially just a mapping from strings to a few simple types of data.


Constructor Summary
ModestLaunchTab()
           
 
Method Summary
 void createControl(org.eclipse.swt.widgets.Composite parent)
          Creates the contents of this tab.
 void dispose()
          Called when the tab has been disposed.
 org.eclipse.swt.graphics.Image getImage()
           
 java.lang.String getName()
           
 void initializeFrom(org.eclipse.debug.core.ILaunchConfiguration configuration)
           
 void performApply(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy configuration)
           
 void setDefaults(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy configuration)
           
 
Methods inherited from class org.eclipse.debug.ui.AbstractLaunchConfigurationTab
activated, canSave, createCheckButton, createPushButton, createRadioButton, createSeparator, createVerticalSpacer, deactivated, getControl, getErrorMessage, getLaunchConfigurationDialog, getLaunchManager, getMessage, getShell, isDirty, isValid, launched, setAttribute, setControl, setDirty, setErrorMessage, setLaunchConfigurationDialog, setMessage, updateLaunchConfigurationDialog
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModestLaunchTab

public ModestLaunchTab()
Method Detail

createControl

public void createControl(org.eclipse.swt.widgets.Composite parent)
Creates the contents of this tab. The given composite is the container which is to be populated with the tab's fields.


getName

public java.lang.String getName()

initializeFrom

public void initializeFrom(org.eclipse.debug.core.ILaunchConfiguration configuration)

performApply

public void performApply(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy configuration)

setDefaults

public void setDefaults(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy configuration)

getImage

public org.eclipse.swt.graphics.Image getImage()
Specified by:
getImage in interface org.eclipse.debug.ui.ILaunchConfigurationTab
Overrides:
getImage in class org.eclipse.debug.ui.AbstractLaunchConfigurationTab

dispose

public void dispose()
Called when the tab has been disposed. Used to perform any cleanup required.

Specified by:
dispose in interface org.eclipse.debug.ui.ILaunchConfigurationTab
Overrides:
dispose in class org.eclipse.debug.ui.AbstractLaunchConfigurationTab