PTP
Release 5.0

org.eclipse.ptp.launch.ui
Class DebuggerTab

java.lang.Object
  extended by AbstractLaunchConfigurationTab
      extended by org.eclipse.ptp.launch.ui.LaunchConfigurationTab
          extended by org.eclipse.ptp.launch.ui.AbstractDebuggerTab
              extended by org.eclipse.ptp.launch.ui.DebuggerTab
Direct Known Subclasses:
ApplicationDebuggerTab

public class DebuggerTab
extends AbstractDebuggerTab

TODO: NEEDS TO BE DOCUMENTED


Field Summary
protected  org.eclipse.swt.widgets.Button fAttachButton
           
protected  boolean fAttachMode
           
protected  org.eclipse.swt.widgets.Button fStopInMain
           
static String TAB_ID
           
 
Fields inherited from class org.eclipse.ptp.launch.ui.AbstractDebuggerTab
fCurrentDebugConfig, fDynamicTab, fDynamicTabHolder, fWorkingCopy
 
Fields inherited from class org.eclipse.ptp.launch.ui.LaunchConfigurationTab
DEFAULT_VALUE, EMPTY_STRING
 
Constructor Summary
DebuggerTab(boolean attachMode)
           
 
Method Summary
 void activated(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy workingCopy)
           
 void createControl(org.eclipse.swt.widgets.Composite parent)
           
protected  void createOptionsComposite(org.eclipse.swt.widgets.Composite parent)
          Create a composite to display debugger options.
 String getId()
           
protected  void initializeCommonControls(org.eclipse.debug.core.ILaunchConfiguration config)
          Initialize the controls.
 void initializeFrom(org.eclipse.debug.core.ILaunchConfiguration config)
           
 boolean isValid(org.eclipse.debug.core.ILaunchConfiguration config)
           
protected  void loadDebuggerComboBox(org.eclipse.debug.core.ILaunchConfiguration config, String selection, boolean noDefault)
          Load the debugger combo with installed debuggers.
 void performApply(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy config)
           
 void setDefaults(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy config)
           
protected  void updateComboFromSelection()
           
protected  boolean validateDebuggerConfig(org.eclipse.debug.core.ILaunchConfiguration config)
          Validate the debugger configuration.
protected  boolean validatePlatform(org.eclipse.debug.core.ILaunchConfiguration config, IPDebugConfiguration debugConfig)
          Check that the selected debugger can be used for this launch FIXME: This needs to check the debugger supports the platform being managed by the resource manager.
 
Methods inherited from class org.eclipse.ptp.launch.ui.AbstractDebuggerTab
canSave, createDebuggerCombo, createDebuggerGroup, getConfigForCurrentDebugger, getDebugConfig, getDynamicTab, getDynamicTabHolder, getErrorMessage, getImage, getLaunchConfigurationWorkingCopy, getName, handleDebuggerChanged, initDefaults, isInitializing, loadDebuggerCombo, loadDynamicDebugArea, setDebugConfig, setDynamicTab, setDynamicTabHolder, setInitializeDefault, setInitializing, setLaunchConfiguration, setLaunchConfigurationWorkingCopy
 
Methods inherited from class org.eclipse.ptp.launch.ui.LaunchConfigurationTab
createGridLayout, getContainer, getFieldContent, getLaunchConfiguration, getPlatform, getProject, getResource, getResourceManager, getWorkspaceRoot, spanGridData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TAB_ID

public static final String TAB_ID
Since:
4.0
See Also:
Constant Field Values

fAttachMode

protected final boolean fAttachMode

fStopInMain

protected org.eclipse.swt.widgets.Button fStopInMain

fAttachButton

protected org.eclipse.swt.widgets.Button fAttachButton
Constructor Detail

DebuggerTab

public DebuggerTab(boolean attachMode)
Method Detail

createControl

public void createControl(org.eclipse.swt.widgets.Composite parent)
Specified by:
createControl in class AbstractDebuggerTab

getId

public String getId()

initializeFrom

public void initializeFrom(org.eclipse.debug.core.ILaunchConfiguration config)
Overrides:
initializeFrom in class AbstractDebuggerTab

activated

public void activated(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy workingCopy)
Overrides:
activated in class AbstractDebuggerTab

isValid

public boolean isValid(org.eclipse.debug.core.ILaunchConfiguration config)
Overrides:
isValid in class AbstractDebuggerTab

performApply

public void performApply(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy config)
Overrides:
performApply in class AbstractDebuggerTab

setDefaults

public void setDefaults(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy config)
Overrides:
setDefaults in class AbstractDebuggerTab

createOptionsComposite

protected void createOptionsComposite(org.eclipse.swt.widgets.Composite parent)
Create a composite to display debugger options.

Parameters:
parent -

initializeCommonControls

protected void initializeCommonControls(org.eclipse.debug.core.ILaunchConfiguration config)
Initialize the controls.

Parameters:
config -

loadDebuggerComboBox

protected void loadDebuggerComboBox(org.eclipse.debug.core.ILaunchConfiguration config,
                                    String selection,
                                    boolean noDefault)
Load the debugger combo with installed debuggers.

Parameters:
config -
selection -

updateComboFromSelection

protected void updateComboFromSelection()
Overrides:
updateComboFromSelection in class AbstractDebuggerTab

validateDebuggerConfig

protected boolean validateDebuggerConfig(org.eclipse.debug.core.ILaunchConfiguration config)
Validate the debugger configuration.

Parameters:
config -
Returns:

validatePlatform

protected boolean validatePlatform(org.eclipse.debug.core.ILaunchConfiguration config,
                                   IPDebugConfiguration debugConfig)
Check that the selected debugger can be used for this launch FIXME: This needs to check the debugger supports the platform being managed by the resource manager. The RM will need to provide an interface to get this information.

Parameters:
config -
debugConfig -
Returns:

PTP
Release 5.0

Copyright (c) 2011 IBM Corporation and others. All Rights Reserved.