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

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

public class GDBSolibBlock
extends java.util.Observable
implements IMILaunchConfigurationComponent, java.util.Observer

The content of the Shared Libraries tab of the GDBDebuggerPage.


Constructor Summary
GDBSolibBlock(IMILaunchConfigurationComponent solibSearchBlock, boolean autoSolib, boolean stopOnSolibEvents)
           
 
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.
 void update(java.util.Observable o, java.lang.Object arg)
           
 
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

GDBSolibBlock

public GDBSolibBlock(IMILaunchConfigurationComponent solibSearchBlock,
                     boolean autoSolib,
                     boolean stopOnSolibEvents)
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

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

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

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

update

public void update(java.util.Observable o,
                   java.lang.Object arg)
Specified by:
update in interface java.util.Observer

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