PTP
Release 5.0

org.eclipse.ptp.launch.ui
Class AbstractDebuggerTab

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

public abstract class AbstractDebuggerTab
extends LaunchConfigurationTab

TODO: NEEDS TO BE DOCUMENTED


Field Summary
protected  IPDebugConfiguration fCurrentDebugConfig
           
protected  ILaunchConfigurationTab fDynamicTab
           
protected  org.eclipse.swt.widgets.Composite fDynamicTabHolder
           
protected  org.eclipse.debug.core.ILaunchConfigurationWorkingCopy fWorkingCopy
           
 
Fields inherited from class org.eclipse.ptp.launch.ui.LaunchConfigurationTab
DEFAULT_VALUE, EMPTY_STRING
 
Constructor Summary
AbstractDebuggerTab()
           
 
Method Summary
 void activated(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy workingCopy)
           
 boolean canSave()
           
abstract  void createControl(org.eclipse.swt.widgets.Composite parent)
           
protected  void createDebuggerCombo(org.eclipse.swt.widgets.Composite parent, int colspan)
           
protected  void createDebuggerGroup(org.eclipse.swt.widgets.Composite parent, int colspan)
           
protected  IPDebugConfiguration getConfigForCurrentDebugger()
          Return the class that implements ILaunchConfigurationTab that is registered against the debugger id of the currently selected debugger.
protected  IPDebugConfiguration getDebugConfig()
           
protected  ILaunchConfigurationTab getDynamicTab()
           
protected  org.eclipse.swt.widgets.Composite getDynamicTabHolder()
           
 String getErrorMessage()
          Overridden here so that any error message in the dynamic UI gets returned.
 org.eclipse.swt.graphics.Image getImage()
           
protected  org.eclipse.debug.core.ILaunchConfigurationWorkingCopy getLaunchConfigurationWorkingCopy()
           
 String getName()
           
protected  void handleDebuggerChanged()
          Notification that the user changed the selection of the Debugger.
protected  boolean initDefaults()
           
 void initializeFrom(org.eclipse.debug.core.ILaunchConfiguration config)
           
protected  boolean isInitializing()
           
 boolean isValid(org.eclipse.debug.core.ILaunchConfiguration config)
           
protected  void loadDebuggerCombo(IPDebugConfiguration[] debugConfigs, String current)
           
protected  void loadDynamicDebugArea()
          Show the contributed piece of UI that was registered for the debugger id of the currently selected debugger.
 void performApply(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy config)
           
protected  void setDebugConfig(IPDebugConfiguration config)
           
 void setDefaults(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy config)
           
protected  void setDynamicTab(ILaunchConfigurationTab tab)
           
protected  void setDynamicTabHolder(org.eclipse.swt.widgets.Composite tabHolder)
           
protected  void setInitializeDefault(boolean init)
           
protected  void setInitializing(boolean isInitializing)
           
 void setLaunchConfiguration(org.eclipse.debug.core.ILaunchConfiguration launchConfiguration)
          Cache the launch configuration
protected  void setLaunchConfigurationWorkingCopy(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy workingCopy)
           
protected  void updateComboFromSelection()
           
 
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

fWorkingCopy

protected org.eclipse.debug.core.ILaunchConfigurationWorkingCopy fWorkingCopy

fCurrentDebugConfig

protected IPDebugConfiguration fCurrentDebugConfig

fDynamicTab

protected ILaunchConfigurationTab fDynamicTab

fDynamicTabHolder

protected org.eclipse.swt.widgets.Composite fDynamicTabHolder
Constructor Detail

AbstractDebuggerTab

public AbstractDebuggerTab()
Method Detail

setDebugConfig

protected void setDebugConfig(IPDebugConfiguration config)

getDebugConfig

protected IPDebugConfiguration getDebugConfig()

getDynamicTab

protected ILaunchConfigurationTab getDynamicTab()

setDynamicTab

protected void setDynamicTab(ILaunchConfigurationTab tab)

getDynamicTabHolder

protected org.eclipse.swt.widgets.Composite getDynamicTabHolder()

setDynamicTabHolder

protected void setDynamicTabHolder(org.eclipse.swt.widgets.Composite tabHolder)

getLaunchConfigurationWorkingCopy

protected org.eclipse.debug.core.ILaunchConfigurationWorkingCopy getLaunchConfigurationWorkingCopy()

setLaunchConfiguration

public void setLaunchConfiguration(org.eclipse.debug.core.ILaunchConfiguration launchConfiguration)
Description copied from class: LaunchConfigurationTab
Cache the launch configuration

Overrides:
setLaunchConfiguration in class LaunchConfigurationTab

setLaunchConfigurationWorkingCopy

protected void setLaunchConfigurationWorkingCopy(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy workingCopy)

getErrorMessage

public String getErrorMessage()
Overridden here so that any error message in the dynamic UI gets returned.

See Also:
ILaunchConfigurationTab#getErrorMessage()

handleDebuggerChanged

protected void handleDebuggerChanged()
Notification that the user changed the selection of the Debugger.


loadDynamicDebugArea

protected void loadDynamicDebugArea()
Show the contributed piece of UI that was registered for the debugger id of the currently selected debugger.


createControl

public abstract void createControl(org.eclipse.swt.widgets.Composite parent)

activated

public void activated(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy workingCopy)

initializeFrom

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

performApply

public void performApply(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy config)

setDefaults

public void setDefaults(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy config)

isValid

public boolean isValid(org.eclipse.debug.core.ILaunchConfiguration config)

canSave

public boolean canSave()

setInitializeDefault

protected void setInitializeDefault(boolean init)

initDefaults

protected boolean initDefaults()

getImage

public org.eclipse.swt.graphics.Image getImage()

getName

public String getName()

createDebuggerCombo

protected void createDebuggerCombo(org.eclipse.swt.widgets.Composite parent,
                                   int colspan)

loadDebuggerCombo

protected void loadDebuggerCombo(IPDebugConfiguration[] debugConfigs,
                                 String current)

createDebuggerGroup

protected void createDebuggerGroup(org.eclipse.swt.widgets.Composite parent,
                                   int colspan)

updateComboFromSelection

protected void updateComboFromSelection()

isInitializing

protected boolean isInitializing()

setInitializing

protected void setInitializing(boolean isInitializing)

getConfigForCurrentDebugger

protected IPDebugConfiguration getConfigForCurrentDebugger()
Return the class that implements ILaunchConfigurationTab that is registered against the debugger id of the currently selected debugger.


PTP
Release 5.0

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