Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.eclipse.jdt.debug.ui.launchConfigurations
Class JavaArgumentsTab  view JavaArgumentsTab download JavaArgumentsTab.java

java.lang.Object
  extended byorg.eclipse.debug.ui.AbstractLaunchConfigurationTab
      extended byorg.eclipse.jdt.internal.debug.ui.launcher.JavaLaunchConfigurationTab
          extended byorg.eclipse.jdt.debug.ui.launchConfigurations.JavaArgumentsTab
All Implemented Interfaces:
org.eclipse.jdt.internal.debug.ui.launcher.IEntriesChangedListener, org.eclipse.debug.ui.ILaunchConfigurationTab
Direct Known Subclasses:
AppletArgumentsTab

public class JavaArgumentsTab
extends org.eclipse.jdt.internal.debug.ui.launcher.JavaLaunchConfigurationTab

A launch configuration tab that displays and edits program arguments, VM arguments, and working directory launch configuration attributes.

This class may be instantiated. This class is not intended to be subclassed.

Since:
2.0

Field Summary
protected static java.lang.String EMPTY_STRING
           
protected  org.eclipse.swt.widgets.Label fPrgmArgumentsLabel
           
protected  org.eclipse.swt.widgets.Text fPrgmArgumentsText
           
protected  org.eclipse.jdt.internal.debug.ui.launcher.VMArgumentsBlock fVMArgumentsBlock
           
protected  org.eclipse.jdt.internal.debug.ui.launcher.WorkingDirectoryBlock fWorkingDirectoryBlock
           
 
Fields inherited from class org.eclipse.debug.ui.AbstractLaunchConfigurationTab
 
Constructor Summary
JavaArgumentsTab()
           
 
Method Summary
 void activated(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy workingCopy)
          This method was added to the ILaunchConfigurationTab interface in the 3.0 release to allow tabs to distinguish between a tab being activated and a tab group be initialized for the first time, from a selected launch configuration.
 void createControl(org.eclipse.swt.widgets.Composite parent)
          Creates the top level control for this launch configuration tab under the given parent composite.
protected  org.eclipse.jdt.internal.debug.ui.launcher.VMArgumentsBlock createVMArgsBlock()
           
protected  org.eclipse.jdt.internal.debug.ui.launcher.WorkingDirectoryBlock createWorkingDirBlock()
           
 void deactivated(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy workingCopy)
          This method was added to the ILaunchConfigurationTab interface in the 3.0 release to allow tabs to distinguish between a tab being deactivated and saving its attributes to a launch configuration.
 void dispose()
          By default, do nothing.
protected  java.lang.String getAttributeValueFrom(org.eclipse.swt.widgets.Text text)
          Retuns the string in the text widget, or null if empty.
 java.lang.String getErrorMessage()
          Returns the current error message for this tab.
 org.eclipse.swt.graphics.Image getImage()
          Returns the image for this tab, or null if none
 java.lang.String getMessage()
          Returns the current message for this tab.
 java.lang.String getName()
          Returns the name of this tab.
 void initializeFrom(org.eclipse.debug.core.ILaunchConfiguration configuration)
          Initializes this tab's controls with values from the given launch configuration.
 boolean isValid(org.eclipse.debug.core.ILaunchConfiguration config)
          Returns whether this tab is in a valid state in the context of the specified launch configuration.
 void performApply(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy configuration)
          Copies values from this tab into the given launch configuration.
 void setDefaults(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy config)
          Defaults are empty.
protected  void setHelpContextId()
          Set the help context id for this launch config tab.
 void setLaunchConfigurationDialog(org.eclipse.debug.ui.ILaunchConfigurationDialog dialog)
          Sets the launch configuration dialog that hosts this tab.
 
Methods inherited from class org.eclipse.jdt.internal.debug.ui.launcher.JavaLaunchConfigurationTab
entriesChanged, getContext, initializeJavaProject
 
Methods inherited from class org.eclipse.debug.ui.AbstractLaunchConfigurationTab
canSave, createCheckButton, createPushButton, createRadioButton, createSeparator, createVerticalSpacer, getControl, getLaunchConfigurationDialog, getLaunchManager, getShell, isDirty, launched, setAttribute, setControl, setDirty, setErrorMessage, setMessage, updateLaunchConfigurationDialog
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fPrgmArgumentsLabel

protected org.eclipse.swt.widgets.Label fPrgmArgumentsLabel

fPrgmArgumentsText

protected org.eclipse.swt.widgets.Text fPrgmArgumentsText

fVMArgumentsBlock

protected org.eclipse.jdt.internal.debug.ui.launcher.VMArgumentsBlock fVMArgumentsBlock

fWorkingDirectoryBlock

protected org.eclipse.jdt.internal.debug.ui.launcher.WorkingDirectoryBlock fWorkingDirectoryBlock

EMPTY_STRING

protected static final java.lang.String EMPTY_STRING
See Also:
Constant Field Values
Constructor Detail

JavaArgumentsTab

public JavaArgumentsTab()
Method Detail

createVMArgsBlock

protected org.eclipse.jdt.internal.debug.ui.launcher.VMArgumentsBlock createVMArgsBlock()

createWorkingDirBlock

protected org.eclipse.jdt.internal.debug.ui.launcher.WorkingDirectoryBlock createWorkingDirBlock()

createControl

public void createControl(org.eclipse.swt.widgets.Composite parent)
Description copied from interface: org.eclipse.debug.ui.ILaunchConfigurationTab
Creates the top level control for this launch configuration tab under the given parent composite. This method is called once on tab creation, after setLaunchConfigurationDialog is called.

Implementors are responsible for ensuring that the created control can be accessed via getControl


setHelpContextId

protected void setHelpContextId()
Set the help context id for this launch config tab. Subclasses may override this method.


dispose

public void dispose()
Description copied from class: org.eclipse.debug.ui.AbstractLaunchConfigurationTab
By default, do nothing.


isValid

public boolean isValid(org.eclipse.debug.core.ILaunchConfiguration config)
Description copied from interface: org.eclipse.debug.ui.ILaunchConfigurationTab
Returns whether this tab is in a valid state in the context of the specified launch configuration.

This information is typically used by the launch configuration dialog to decide when it is okay to launch.


setDefaults

public void setDefaults(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy config)
Defaults are empty.


initializeFrom

public void initializeFrom(org.eclipse.debug.core.ILaunchConfiguration configuration)
Description copied from interface: org.eclipse.debug.ui.ILaunchConfigurationTab
Initializes this tab's controls with values from the given launch configuration. This method is called when a configuration is selected to view or edit, after this tab's control has been created.


performApply

public void performApply(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy configuration)
Description copied from interface: org.eclipse.debug.ui.ILaunchConfigurationTab
Copies values from this tab into the given launch configuration.


getAttributeValueFrom

protected java.lang.String getAttributeValueFrom(org.eclipse.swt.widgets.Text text)
Retuns the string in the text widget, or null if empty.


getName

public java.lang.String getName()
Description copied from interface: org.eclipse.debug.ui.ILaunchConfigurationTab
Returns the name of this tab.


setLaunchConfigurationDialog

public void setLaunchConfigurationDialog(org.eclipse.debug.ui.ILaunchConfigurationDialog dialog)
Description copied from interface: org.eclipse.debug.ui.ILaunchConfigurationTab
Sets the launch configuration dialog that hosts this tab. This is the first method called on a launch configuration tab, and marks the beginning of this tab's lifecycle.


getErrorMessage

public java.lang.String getErrorMessage()
Description copied from interface: org.eclipse.debug.ui.ILaunchConfigurationTab
Returns the current error message for this tab. May be null to indicate no error message.

An error message should describe some error state, as opposed to a message which may simply provide instruction or information to the user.


getMessage

public java.lang.String getMessage()
Description copied from interface: org.eclipse.debug.ui.ILaunchConfigurationTab
Returns the current message for this tab.

A message provides instruction or information to the user, as opposed to an error message which should describe some error state.


getImage

public org.eclipse.swt.graphics.Image getImage()
Description copied from interface: org.eclipse.debug.ui.ILaunchConfigurationTab
Returns the image for this tab, or null if none


activated

public void activated(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy workingCopy)
Description copied from class: org.eclipse.debug.ui.AbstractLaunchConfigurationTab
This method was added to the ILaunchConfigurationTab interface in the 3.0 release to allow tabs to distinguish between a tab being activated and a tab group be initialized for the first time, from a selected launch configuration. To maintain backwards compatible behavior, the default implementation provided, calls this tab's initializeFrom method. Tabs should override this method as required.

The launch tab framework was originially designed to take care of inter tab communication by applying attributes from the active tab to the launch configuration being edited, when a tab is exited, and by initializing a tab when activated. The addition of the methods activated and deactivated allow tabs to determine the appropriate course of action.


deactivated

public void deactivated(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy workingCopy)
Description copied from class: org.eclipse.debug.ui.AbstractLaunchConfigurationTab
This method was added to the ILaunchConfigurationTab interface in the 3.0 release to allow tabs to distinguish between a tab being deactivated and saving its attributes to a launch configuration. To maintain backwards compatible behavior, the default implementation provided, calls this tab's performApply method. Tabs should override this method as required.

The launch tab framework was originially designed to take care of inter tab communication by applying attributes from the active tab to the launch configuration being edited, when a tab is exited, and by initializing a tab when activated. The addition of the methods activated and deactivated allow tabs to determine the appropriate course of action.