org.eclipse.cdt.debug.mi.internal.ui
Class SolibSearchPathBlock

java.lang.Object
  extended by java.util.Observable
      extended by org.eclipse.cdt.debug.mi.internal.ui.SolibSearchPathBlock
All Implemented Interfaces:
IDialogFieldListener, IMILaunchConfigurationComponent

public class SolibSearchPathBlock
extends java.util.Observable
implements IMILaunchConfigurationComponent, IDialogFieldListener

The UI component to access the shared libraries search path.


Nested Class Summary
 class SolibSearchPathBlock.SolibSearchPathListDialogField
           
 
Constructor Summary
SolibSearchPathBlock()
           
SolibSearchPathBlock(java.lang.String[] customButtonLabels, IListAdapter customListAdapter)
           
 
Method Summary
 void createControl(org.eclipse.swt.widgets.Composite parent)
          Creates the top level control for this component under the given parent composite.
 void dialogFieldChanged(DialogField field)
          The dialog field has changed.
 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.
 
Methods inherited from class java.util.Observable
addObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SolibSearchPathBlock

public SolibSearchPathBlock()

SolibSearchPathBlock

public SolibSearchPathBlock(java.lang.String[] customButtonLabels,
                            IListAdapter customListAdapter)
Method Detail

createControl

public void createControl(org.eclipse.swt.widgets.Composite parent)
Description copied from interface: IMILaunchConfigurationComponent
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

Specified by:
createControl in interface IMILaunchConfigurationComponent
Parameters:
parent - the parent composite

initializeFrom

public void initializeFrom(org.eclipse.debug.core.ILaunchConfiguration configuration)
Description copied from interface: IMILaunchConfigurationComponent
Initializes this component's controls with values from the given launch configuration.

Specified by:
initializeFrom in interface IMILaunchConfigurationComponent
Parameters:
configuration - launch configuration

setDefaults

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

Specified by:
setDefaults in interface IMILaunchConfigurationComponent
Parameters:
configuration - launch configuration

performApply

public void performApply(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy configuration)
Description copied from interface: IMILaunchConfigurationComponent
Copies values from this component into the given launch configuration.

Specified by:
performApply in interface IMILaunchConfigurationComponent
Parameters:
configuration - launch configuration

dispose

public void dispose()
Description copied from interface: IMILaunchConfigurationComponent
Notifies this component that it has been disposed. Marks the end of this component's lifecycle, allowing to perform any cleanup required.

Specified by:
dispose in interface IMILaunchConfigurationComponent

getControl

public org.eclipse.swt.widgets.Control getControl()
Description copied from interface: IMILaunchConfigurationComponent
Returns the top level control for this component.

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

Specified by:
getControl in interface IMILaunchConfigurationComponent
Returns:
the top level control or null

isValid

public boolean isValid(org.eclipse.debug.core.ILaunchConfiguration launchConfig)
Description copied from interface: IMILaunchConfigurationComponent
Returns whether this component is in a valid state in the context of the specified launch configuration.

Specified by:
isValid in interface IMILaunchConfigurationComponent
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

dialogFieldChanged

public void dialogFieldChanged(DialogField field)
Description copied from interface: IDialogFieldListener
The dialog field has changed.

Specified by:
dialogFieldChanged in interface IDialogFieldListener