public class SourceLookupTab extends AbstractLaunchConfigurationTab
Clients may call AbstractLaunchConfigurationTab.setHelpContextId(String) on this tab prior to control
creation to alter the default context help associated with this tab.
This tab may be instantiated.
| Constructor and Description |
|---|
SourceLookupTab()
Constructs a new tab with default context help.
|
| Modifier and Type | Method and Description |
|---|---|
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. |
void |
createControl(Composite parent)
Creates the top level control for this launch configuration
tab under the given parent composite.
|
void |
dispose()
By default, do nothing.
|
String |
getErrorMessage()
Returns the current error message for this tab.
|
String |
getId()
Returns this tab's unique identifier or
null if none. |
Image |
getImage()
Returns the image for this tab, or
null if none |
String |
getMessage()
Returns the current message for this tab.
|
String |
getName()
Returns the name of this tab.
|
void |
initializeFrom(ILaunchConfiguration configuration)
Initializes this tab's controls with values from the given
launch configuration.
|
void |
performApply(ILaunchConfigurationWorkingCopy configuration)
Copies values from this tab into the given
launch configuration.
|
void |
setDefaults(ILaunchConfigurationWorkingCopy configuration)
Initializes the given launch configuration with
default values for this tab.
|
canSave, createCheckButton, createPushButton, createRadioButton, createSeparator, createUpdateJob, createVerticalSpacer, deactivated, getControl, getHelpContextId, getLaunchConfigurationDialog, getLaunchManager, getShell, getUpdateJobDelay, getWarningMessage, isDirty, isValid, launched, scheduleUpdateJob, setAttribute, setControl, setDirty, setErrorMessage, setHelpContextId, setLaunchConfigurationDialog, setMessage, setWarningMessage, updateLaunchConfigurationDialogpublic SourceLookupTab()
public void createControl(Composite parent)
ILaunchConfigurationTabsetLaunchConfigurationDialog
is called.
Implementors are responsible for ensuring that
the created control can be accessed via getControl
parent - the parent compositepublic void setDefaults(ILaunchConfigurationWorkingCopy configuration)
ILaunchConfigurationTabconfiguration - launch configurationpublic void initializeFrom(ILaunchConfiguration configuration)
ILaunchConfigurationTabconfiguration - launch configurationpublic void performApply(ILaunchConfigurationWorkingCopy configuration)
ILaunchConfigurationTabconfiguration - launch configurationpublic String getId()
AbstractLaunchConfigurationTabnull if none.
By default, null is returned. Subclasses should override
as necessary.
Tab identifiers allow contributed tabs to be ordered relative to one another.
getId in class AbstractLaunchConfigurationTabnullpublic String getName()
ILaunchConfigurationTabpublic Image getImage()
ILaunchConfigurationTabnull if nonegetImage in interface ILaunchConfigurationTabgetImage in class AbstractLaunchConfigurationTabnull if noneILaunchConfigurationTab.getImage()public void activated(ILaunchConfigurationWorkingCopy workingCopy)
AbstractLaunchConfigurationTabILaunchConfigurationTab 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 originally 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.
activated in interface ILaunchConfigurationTabactivated in class AbstractLaunchConfigurationTabworkingCopy - the launch configuration being editedILaunchConfigurationTab.activated(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy)public void dispose()
AbstractLaunchConfigurationTabdispose in interface ILaunchConfigurationTabdispose in class AbstractLaunchConfigurationTabILaunchConfigurationTab.dispose()public String getErrorMessage()
ILaunchConfigurationTabnull 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.
getErrorMessage in interface ILaunchConfigurationTabgetErrorMessage in class AbstractLaunchConfigurationTabnull if noneILaunchConfigurationTab.getErrorMessage()public String getMessage()
ILaunchConfigurationTabA message provides instruction or information to the user, as opposed to an error message which should describe some error state.
getMessage in interface ILaunchConfigurationTabgetMessage in class AbstractLaunchConfigurationTabnull if noneILaunchConfigurationTab.getMessage()
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.