org.eclipse.cdt.debug.mi.ui
Interface IMILaunchConfigurationComponent

All Known Implementing Classes:
GDBSolibBlock, SolibSearchPathBlock

public interface IMILaunchConfigurationComponent

The common interface for UI components of the launch configuration tabs.


Method Summary
 void createControl(org.eclipse.swt.widgets.Composite parent)
          Creates the top level control for this component under the given parent composite.
 void dispose()
          Notifies this component that it has been disposed.
 org.eclipse.swt.widgets.Control getControl()
          Returns the top level control for this component.
 void initializeFrom(org.eclipse.debug.core.ILaunchConfiguration configuration)
          Initializes this component's controls with values from the given launch configuration.
 boolean isValid(org.eclipse.debug.core.ILaunchConfiguration launchConfig)
          Returns whether this component is in a valid state in the context of the specified launch configuration.
 void performApply(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy configuration)
          Copies values from this component into the given launch configuration.
 void setDefaults(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy configuration)
          Initializes the given component with default values.
 

Method Detail

createControl

void createControl(org.eclipse.swt.widgets.Composite parent)
Creates the top level control for this component under the given parent composite.

Implementors are responsible for ensuring that the created control can be accessed via getControl

Parameters:
parent - the parent composite

getControl

org.eclipse.swt.widgets.Control getControl()
Returns the top level control for this component.

May return null if the control has not been created yet.

Returns:
the top level control or null

setDefaults

void setDefaults(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy configuration)
Initializes the given component with default values. This method may be called before this tab's control is created.

Parameters:
configuration - launch configuration

initializeFrom

void initializeFrom(org.eclipse.debug.core.ILaunchConfiguration configuration)
Initializes this component's controls with values from the given launch configuration.

Parameters:
configuration - launch configuration

dispose

void dispose()
Notifies this component that it has been disposed. Marks the end of this component's lifecycle, allowing to perform any cleanup required.


performApply

void performApply(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy configuration)
Copies values from this component into the given launch configuration.

Parameters:
configuration - launch configuration

isValid

boolean isValid(org.eclipse.debug.core.ILaunchConfiguration launchConfig)
Returns whether this component is in a valid state in the context of the specified launch configuration.

Parameters:
launchConfig - launch configuration which provides context for validating this component. This value must not be null.
Returns:
whether this component is in a valid state