|
Eclipse Platform Release 3.1 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.debug.ui.AbstractLaunchConfigurationTab
org.eclipse.debug.ui.sourcelookup.SourceLookupTab
A launch configuration tab that displays and edits the source lookup path for a launch configuration. This tab works with the debug platform source lookup facilities - a source lookup director with associated participants and source containers.
This tab may be instantiated. This class is not intended to be subclassed.
Constructor Summary | |
---|---|
SourceLookupTab()
|
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. |
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. |
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. |
Methods inherited from class org.eclipse.debug.ui.AbstractLaunchConfigurationTab |
---|
canSave, createCheckButton, createPushButton, createRadioButton, createSeparator, createVerticalSpacer, deactivated, getControl, getLaunchConfigurationDialog, getLaunchManager, 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 |
public SourceLookupTab()
Method Detail |
public void createControl(Composite parent)
ILaunchConfigurationTab
setLaunchConfigurationDialog
is called.
Implementors are responsible for ensuring that
the created control can be accessed via getControl
parent
- the parent compositepublic void setDefaults(ILaunchConfigurationWorkingCopy configuration)
ILaunchConfigurationTab
configuration
- launch configurationpublic void initializeFrom(ILaunchConfiguration configuration)
ILaunchConfigurationTab
configuration
- launch configurationpublic void performApply(ILaunchConfigurationWorkingCopy configuration)
ILaunchConfigurationTab
configuration
- launch configurationpublic String getName()
ILaunchConfigurationTab
public Image getImage()
ILaunchConfigurationTab
null
if none
getImage
in interface ILaunchConfigurationTab
getImage
in class AbstractLaunchConfigurationTab
ILaunchConfigurationTab.getImage()
public void activated(ILaunchConfigurationWorkingCopy workingCopy)
AbstractLaunchConfigurationTab
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.
activated
in interface ILaunchConfigurationTab
activated
in class AbstractLaunchConfigurationTab
ILaunchConfigurationTab.activated(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy)
public void dispose()
AbstractLaunchConfigurationTab
dispose
in interface ILaunchConfigurationTab
dispose
in class AbstractLaunchConfigurationTab
ILaunchConfigurationTab.dispose()
public String getErrorMessage()
ILaunchConfigurationTab
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.
getErrorMessage
in interface ILaunchConfigurationTab
getErrorMessage
in class AbstractLaunchConfigurationTab
ILaunchConfigurationTab.getErrorMessage()
public String getMessage()
ILaunchConfigurationTab
A message provides instruction or information to the user, as opposed to an error message which should describe some error state.
getMessage
in interface ILaunchConfigurationTab
getMessage
in class AbstractLaunchConfigurationTab
ILaunchConfigurationTab.getMessage()
|
Eclipse Platform Release 3.1 |
|||||||||||
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, 2005. All rights reserved.