|
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
Common function for launch configuration tabs.
Clients may subclass this class.
Constructor Summary | |
AbstractLaunchConfigurationTab()
|
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. |
boolean | canSave()
Returns whether this tab is in a state that allows the launch configuration whose values this tab is showing to be saved. |
protected Button | createCheckButton(Composite parent,
String label)
Creates and returns a new check button with the given label. |
protected Button | createPushButton(Composite parent,
String label,
Image image)
Creates and returns a new push button with the given label and/or image. |
protected Button | createRadioButton(Composite parent,
String label)
Creates and returns a new radio button with the given label and/or image. |
protected void | createSeparator(Composite comp,
int colSpan)
Create a horizontal separator. |
protected void | createVerticalSpacer(Composite comp,
int colSpan)
Create some empty space. |
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. |
void | dispose()
By default, do nothing. |
Control | getControl()
Returns the top level control for this tab. |
String | getErrorMessage()
Returns the current error message for this tab. |
Image | getImage()
Returns the image for this tab, or null if none |
protected ILaunchConfigurationDialog | getLaunchConfigurationDialog()
Returns the dialog this tab is contained in, or null if not yet set. |
protected ILaunchManager | getLaunchManager()
Convenience method to return the launch manager. |
String | getMessage()
Returns the current message for this tab. |
protected Shell | getShell()
Returns the shell this tab is contained in, or null. |
protected boolean | isDirty()
Returns whether this tab is dirty. |
boolean | isValid(ILaunchConfiguration launchConfig)
Returns whether this tab is in a valid state in the context of the specified launch configuration. |
void | launched(ILaunch launch)
Deprecated. |
protected void | setAttribute(String attribute,
ILaunchConfigurationWorkingCopy configuration,
boolean value,
boolean defaultValue)
Convenience method to set a boolean attribute of on a launch configuration. |
protected void | setControl(Control control)
Sets the control to be displayed in this tab. |
protected void | setDirty(boolean dirty)
Returns whether this tab is dirty. |
protected void | setErrorMessage(String errorMessage)
Sets this page's error message, possibly null. |
void | setLaunchConfigurationDialog(ILaunchConfigurationDialog dialog)
Sets the launch configuration dialog that hosts this tab. |
protected void | setMessage(String message)
Sets this page's message, possibly null. |
protected void | updateLaunchConfigurationDialog()
Updates the buttons and message in this page's launch configuration dialog. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.debug.ui.ILaunchConfigurationTab |
createControl, getName, initializeFrom, performApply, setDefaults |
Constructor Detail |
public AbstractLaunchConfigurationTab()
Method Detail |
protected ILaunchConfigurationDialog getLaunchConfigurationDialog()
protected void updateLaunchConfigurationDialog()
public Control getControl()
May return null if the control has not been created yet.
protected void setControl(Control control)
public String getErrorMessage()
An error message should describe some error state, as opposed to a message which may simply provide instruction or information to the user.
public String getMessage()
A message provides instruction or information to the user, as opposed to an error message which should describe some error state.
public void launched(ILaunch launch)
public void setLaunchConfigurationDialog(ILaunchConfigurationDialog dialog)
protected void setErrorMessage(String errorMessage)
protected void setMessage(String message)
protected ILaunchManager getLaunchManager()
public void dispose()
protected Shell getShell()
protected Button createPushButton(Composite parent, String label, Image image)
protected Button createRadioButton(Composite parent, String label)
protected Button createCheckButton(Composite parent, String label)
public boolean canSave()
This information is typically used by the launch configuration dialog to decide when it is okay to save a launch configuration.
public boolean isValid(ILaunchConfiguration launchConfig)
This information is typically used by the launch configuration dialog to decide when it is okay to launch.
protected void createVerticalSpacer(Composite comp, int colSpan)
protected void createSeparator(Composite comp, int colSpan)
public Image getImage()
protected void setAttribute(String attribute, ILaunchConfigurationWorkingCopy configuration, boolean value, boolean defaultValue)
protected boolean isDirty()
protected void setDirty(boolean dirty)
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.