PTP
Release 5.0

org.eclipse.ptp.launch.ui
Class WorkingDirectoryBlock

java.lang.Object
  extended by AbstractLaunchConfigurationTab
      extended by org.eclipse.ptp.launch.ui.LaunchConfigurationTab
          extended by org.eclipse.ptp.launch.ui.WorkingDirectoryBlock

public class WorkingDirectoryBlock
extends LaunchConfigurationTab

TODO: NEEDS TO BE DOCUMENTED


Nested Class Summary
protected  class WorkingDirectoryBlock.WidgetListener
           
 
Field Summary
protected  org.eclipse.debug.core.ILaunchConfiguration launchConfiguration
           
protected  WorkingDirectoryBlock.WidgetListener listener
           
protected  org.eclipse.swt.widgets.Button useDefaultWorkingDirButton
           
protected  org.eclipse.swt.widgets.Button workingDirBrowseButton
           
protected  org.eclipse.swt.widgets.Text workingDirText
           
 
Fields inherited from class org.eclipse.ptp.launch.ui.LaunchConfigurationTab
DEFAULT_VALUE, EMPTY_STRING
 
Constructor Summary
WorkingDirectoryBlock()
           
 
Method Summary
 void createControl(org.eclipse.swt.widgets.Composite parent)
           
 org.eclipse.debug.core.ILaunchConfiguration getLaunchConfiguration()
           
 java.lang.String getName()
           
protected  void handleUseDefaultWorkingDirButtonSelected()
          The default working dir check box has been toggled.
protected  void handleWorkingDirBrowseButtonSelected()
          Show a dialog that lets the user select a working directory
 void initializeFrom(org.eclipse.debug.core.ILaunchConfiguration configuration)
           
protected  boolean isDefaultWorkingDirectory()
          Returns whether the default working directory is to be used
 boolean isValid(org.eclipse.debug.core.ILaunchConfiguration configuration)
           
 void performApply(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy configuration)
           
 void setDefaults(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy configuration)
          Defaults are empty.
protected  void setDefaultWorkingDir(org.eclipse.debug.core.ILaunchConfiguration configuration)
          Sets the default working directory
 void setLaunchConfiguration(org.eclipse.debug.core.ILaunchConfiguration launchConfiguration)
          Cache the launch configuration
 void setLaunchConfigurationDialog(ILaunchConfigurationDialog dialog)
           
protected  void updateLaunchConfigurationDialog()
           
 
Methods inherited from class org.eclipse.ptp.launch.ui.LaunchConfigurationTab
createGridLayout, getContainer, getFieldContent, 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

useDefaultWorkingDirButton

protected org.eclipse.swt.widgets.Button useDefaultWorkingDirButton

workingDirText

protected org.eclipse.swt.widgets.Text workingDirText

workingDirBrowseButton

protected org.eclipse.swt.widgets.Button workingDirBrowseButton

launchConfiguration

protected org.eclipse.debug.core.ILaunchConfiguration launchConfiguration

listener

protected WorkingDirectoryBlock.WidgetListener listener
Constructor Detail

WorkingDirectoryBlock

public WorkingDirectoryBlock()
Method Detail

createControl

public void createControl(org.eclipse.swt.widgets.Composite parent)
See Also:
ILaunchConfigurationTab#createControl(Composite)

setDefaults

public void setDefaults(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy configuration)
Defaults are empty.

See Also:
ILaunchConfigurationTab#setDefaults(ILaunchConfigurationWorkingCopy)

initializeFrom

public void initializeFrom(org.eclipse.debug.core.ILaunchConfiguration configuration)
Overrides:
initializeFrom in class LaunchConfigurationTab
See Also:
ILaunchConfigurationTab#initializeFrom(ILaunchConfiguration)

performApply

public void performApply(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy configuration)
See Also:
ILaunchConfigurationTab#performApply(ILaunchConfigurationWorkingCopy)

isValid

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

getName

public java.lang.String getName()
See Also:
ILaunchConfigurationTab#getName()

setLaunchConfigurationDialog

public void setLaunchConfigurationDialog(ILaunchConfigurationDialog dialog)
See Also:
ILaunchConfigurationTab#setLaunchConfigurationDialog(ILaunchConfigurationDialog)

updateLaunchConfigurationDialog

protected void updateLaunchConfigurationDialog()
See Also:
org.eclipse.debug.ui.AbstractLaunchConfigurationTab#updateLaunchConfigurationDialog()

isDefaultWorkingDirectory

protected boolean isDefaultWorkingDirectory()
Returns whether the default working directory is to be used


setDefaultWorkingDir

protected void setDefaultWorkingDir(org.eclipse.debug.core.ILaunchConfiguration configuration)
Sets the default working directory


handleUseDefaultWorkingDirButtonSelected

protected void handleUseDefaultWorkingDirButtonSelected()
The default working dir check box has been toggled.


handleWorkingDirBrowseButtonSelected

protected void handleWorkingDirBrowseButtonSelected()
Show a dialog that lets the user select a working directory


getLaunchConfiguration

public org.eclipse.debug.core.ILaunchConfiguration getLaunchConfiguration()
Overrides:
getLaunchConfiguration in class LaunchConfigurationTab
Returns:
Returns the launchConfiguration.

setLaunchConfiguration

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

Overrides:
setLaunchConfiguration in class LaunchConfigurationTab
Parameters:
launchConfiguration - The launchConfiguration to set.

PTP
Release 5.0

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