|
Eclipse Platform Release 3.0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.debug.ui.AbstractLaunchConfigurationTab org.eclipse.debug.ui.EnvironmentTab
Launch configuration tab for configuring the environment passed into Runtime.exec(...) when a config is launched.
This class may be instantiated; this class is not intended to be subclassed.
Nested Class Summary | |
protected class | EnvironmentTab.EnvironmentVariableContentProvider
Content provider for the environment table |
class | EnvironmentTab.EnvironmentVariableLabelProvider
Label provider for the environment table |
Field Summary | |
protected Button | appendEnvironment
|
protected Button | envAddButton
|
protected Button | envEditButton
|
protected TableViewer | environmentTable
|
protected Button | envRemoveButton
|
protected Button | envSelectButton
|
protected String[] | envTableColumnHeaders
|
protected ColumnLayoutData[] | envTableColumnLayouts
|
protected static String[] | envTableColumnProperties
|
protected static String | P_VALUE
|
protected static String | P_VARIABLE
|
protected Button | replaceEnvironment
|
Constructor Summary | |
EnvironmentTab()
|
Method Summary | |
void | activated(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. |
protected boolean | addVariable(org.eclipse.debug.internal.ui.launchConfigurations.EnvironmentVariable variable)
Attempts to add the given variable. |
protected void | createAppendReplace(Composite parent)
Creates and configures the widgets which allow the user to choose whether the specified environment should be appended to the native environment or if it should completely replace it. |
void | createControl(Composite parent)
Creates the top level control for this launch configuration tab under the given parent composite. |
protected void | createEnvironmentTable(Composite parent)
Creates and configures the table that displayed the key/value pairs that comprise the environment. |
protected void | createTableButtons(Composite parent)
Creates the add/edit/remove buttons for the environment table |
void | deactivated(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. |
Image | getImage()
Returns the image for this tab, or null if none |
String | getName()
Returns the name of this tab. |
protected void | handleEnvAddButtonSelected()
Adds a new environment variable to the table. |
protected void | handleTableSelectionChanged(SelectionChangedEvent event)
Responds to a selection changed event in the environment table |
void | initializeFrom(ILaunchConfiguration configuration)
Initializes this tab's controls with values from the given launch configuration. |
void | performApply(ILaunchConfigurationWorkingCopy configuration)
Stores the environment in the given configuration |
void | setDefaults(ILaunchConfigurationWorkingCopy configuration)
Initializes the given launch configuration with default values for this tab. |
protected void | updateAppendReplace()
Updates the enablement of the append/replace widgets. |
protected void | updateEnvironment(ILaunchConfiguration configuration)
Updates the environment table for the given launch configuration |
Methods inherited from class org.eclipse.debug.ui.AbstractLaunchConfigurationTab |
canSave, createCheckButton, createPushButton, createRadioButton, createSeparator, createVerticalSpacer, dispose, 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 |
Field Detail |
protected TableViewer environmentTable
protected String[] envTableColumnHeaders
protected ColumnLayoutData[] envTableColumnLayouts
protected static final String P_VARIABLE
protected static final String P_VALUE
protected static String[] envTableColumnProperties
protected Button envAddButton
protected Button envEditButton
protected Button envRemoveButton
protected Button appendEnvironment
protected Button replaceEnvironment
protected Button envSelectButton
Constructor Detail |
public EnvironmentTab()
Method Detail |
public void createControl(Composite parent)
Implementors are responsible for ensuring that the created control can be accessed via getControl
protected void createAppendReplace(Composite parent)
protected void updateAppendReplace()
protected void createEnvironmentTable(Composite parent)
protected void handleTableSelectionChanged(SelectionChangedEvent event)
protected void createTableButtons(Composite parent)
protected void handleEnvAddButtonSelected()
protected boolean addVariable(org.eclipse.debug.internal.ui.launchConfigurations.EnvironmentVariable variable)
protected void updateEnvironment(ILaunchConfiguration configuration)
public void setDefaults(ILaunchConfigurationWorkingCopy configuration)
public void initializeFrom(ILaunchConfiguration configuration)
public void performApply(ILaunchConfigurationWorkingCopy configuration)
public String getName()
public Image getImage()
public void activated(ILaunchConfigurationWorkingCopy workingCopy)
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.
public void deactivated(ILaunchConfigurationWorkingCopy workingCopy)
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.
|
Eclipse Platform Release 3.0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2004. All rights reserved.