Class SourceLookupTab
- All Implemented Interfaces:
IPrototypeAttributesLabelProvider,ILaunchConfigurationTab,ILaunchConfigurationTab2
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.
- Since:
- 3.0
- Restriction:
- This class is not intended to be subclassed by clients.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactivated(ILaunchConfigurationWorkingCopy workingCopy) This method was added to theILaunchConfigurationTabinterface 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.voidcreateControl(Composite parent) Creates the top level control for this launch configuration tab under the given parent composite.voiddispose()By default, do nothing.Returns the current error message for this tab.getId()Returns this tab's unique identifier ornullif none.getImage()Returns the image for this tab, ornullif noneReturns the current message for this tab.getName()Returns the name of this tab.protected voidInitialize attributes labels.voidinitializeFrom(ILaunchConfiguration configuration) Initializes this tab's controls with values from the given launch configuration.voidperformApply(ILaunchConfigurationWorkingCopy configuration) Copies values from this tab into the given launch configuration.voidsetDefaults(ILaunchConfigurationWorkingCopy configuration) Initializes the given launch configuration with default values for this tab.Methods inherited from class org.eclipse.debug.ui.AbstractLaunchConfigurationTab
canSave, createCheckButton, createPushButton, createRadioButton, createSeparator, createUpdateJob, createVerticalSpacer, deactivated, getAttributeLabel, getAttributesLabelsForPrototype, getControl, getHelpContextId, getLaunchConfigurationDialog, getLaunchManager, getShell, getUpdateJobDelay, getWarningMessage, isDirty, isValid, launched, scheduleUpdateJob, setAttribute, setControl, setDirty, setErrorMessage, setHelpContextId, setLaunchConfigurationDialog, setMessage, setWarningMessage, updateLaunchConfigurationDialogMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.debug.ui.ILaunchConfigurationTab
OkToLeaveTab, postApply
-
Constructor Details
-
SourceLookupTab
public SourceLookupTab()Constructs a new tab with default context help.
-
-
Method Details
-
createControl
Description copied from interface:ILaunchConfigurationTabCreates the top level control for this launch configuration tab under the given parent composite. This method is called once on tab creation, aftersetLaunchConfigurationDialogis called.Implementors are responsible for ensuring that the created control can be accessed via
getControl- Parameters:
parent- the parent composite
-
setDefaults
Description copied from interface:ILaunchConfigurationTabInitializes the given launch configuration with default values for this tab. This method is called when a new launch configuration is created such that the configuration can be initialized with meaningful values. This method may be called before this tab's control is created.- Parameters:
configuration- launch configuration
-
initializeFrom
Description copied from interface:ILaunchConfigurationTabInitializes 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.- Parameters:
configuration- launch configuration
-
performApply
Description copied from interface:ILaunchConfigurationTabCopies values from this tab into the given launch configuration.- Parameters:
configuration- launch configuration
-
getId
Description copied from class:AbstractLaunchConfigurationTabReturns this tab's unique identifier ornullif none. By default,nullis returned. Subclasses should override as necessary.Tab identifiers allow contributed tabs to be ordered relative to one another.
- Overrides:
getIdin classAbstractLaunchConfigurationTab- Returns:
- tab id or
null
-
getName
Description copied from interface:ILaunchConfigurationTabReturns the name of this tab.- Returns:
- the name of this tab
-
getImage
Description copied from interface:ILaunchConfigurationTabReturns the image for this tab, ornullif none- Specified by:
getImagein interfaceILaunchConfigurationTab- Overrides:
getImagein classAbstractLaunchConfigurationTab- Returns:
- the image for this tab, or
nullif none - See Also:
-
activated
Description copied from class:AbstractLaunchConfigurationTabThis method was added to theILaunchConfigurationTabinterface 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'sinitializeFrommethod. 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
activatedanddeactivatedallow tabs to determine the appropriate course of action.- Specified by:
activatedin interfaceILaunchConfigurationTab- Overrides:
activatedin classAbstractLaunchConfigurationTab- Parameters:
workingCopy- the launch configuration being edited- See Also:
-
dispose
public void dispose()Description copied from class:AbstractLaunchConfigurationTabBy default, do nothing.- Specified by:
disposein interfaceILaunchConfigurationTab- Overrides:
disposein classAbstractLaunchConfigurationTab- See Also:
-
getErrorMessage
Description copied from interface:ILaunchConfigurationTabReturns the current error message for this tab. May benullto 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.
- Specified by:
getErrorMessagein interfaceILaunchConfigurationTab- Overrides:
getErrorMessagein classAbstractLaunchConfigurationTab- Returns:
- the error message, or
nullif none - See Also:
-
getMessage
Description copied from interface:ILaunchConfigurationTabReturns 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.
- Specified by:
getMessagein interfaceILaunchConfigurationTab- Overrides:
getMessagein classAbstractLaunchConfigurationTab- Returns:
- the message, or
nullif none - See Also:
-
initializeAttributes
protected void initializeAttributes()Description copied from class:AbstractLaunchConfigurationTabInitialize attributes labels.- Overrides:
initializeAttributesin classAbstractLaunchConfigurationTab- Since:
- 3.13
-