PTP
Release 5.0

org.eclipse.ptp.launch.ui
Class LaunchConfigurationTab

java.lang.Object
  extended by AbstractLaunchConfigurationTab
      extended by org.eclipse.ptp.launch.ui.LaunchConfigurationTab
Direct Known Subclasses:
AbstractDebuggerTab, ApplicationTab, ArgumentsTab, ResourcesTab, WorkingDirectoryBlock

public abstract class LaunchConfigurationTab
extends AbstractLaunchConfigurationTab

TODO: NEEDS TO BE DOCUMENTED


Field Summary
static java.lang.String DEFAULT_VALUE
           
static java.lang.String EMPTY_STRING
           
 
Constructor Summary
LaunchConfigurationTab()
           
 
Method Summary
protected  org.eclipse.swt.layout.GridLayout createGridLayout(int columns, boolean isEqual, int mh, int mw)
          Utility routine to create a grid layout
protected  org.eclipse.core.resources.IContainer getContainer(java.lang.String workspaceDir)
          Returns the selected workspace container,or null
protected  java.lang.String getFieldContent(java.lang.String text)
          Utility routine to get the contents of a text field
 org.eclipse.debug.core.ILaunchConfiguration getLaunchConfiguration()
           
protected  java.lang.String getPlatform(org.eclipse.debug.core.ILaunchConfiguration config)
          Get the platform from the launch configuration
protected  org.eclipse.core.resources.IProject getProject(org.eclipse.debug.core.ILaunchConfiguration configuration)
          Gets the project from the configuration
protected  org.eclipse.core.resources.IResource getResource(java.lang.String workspaceDir)
          Returns the selected workspace resource, or null
protected  org.eclipse.ptp.rmsystem.IResourceManager getResourceManager(org.eclipse.debug.core.ILaunchConfiguration configuration)
          Given a launch configuration, find the resource manager that was been selected.
protected  org.eclipse.core.resources.IWorkspaceRoot getWorkspaceRoot()
           
 void initializeFrom(org.eclipse.debug.core.ILaunchConfiguration configuration)
           
 void setLaunchConfiguration(org.eclipse.debug.core.ILaunchConfiguration configuration)
          Cache the launch configuration
protected  org.eclipse.swt.layout.GridData spanGridData(int style, int space)
          Utility routing to create a GridData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_VALUE

public static final java.lang.String DEFAULT_VALUE
See Also:
Constant Field Values

EMPTY_STRING

public static final java.lang.String EMPTY_STRING
See Also:
Constant Field Values
Constructor Detail

LaunchConfigurationTab

public LaunchConfigurationTab()
Method Detail

createGridLayout

protected org.eclipse.swt.layout.GridLayout createGridLayout(int columns,
                                                             boolean isEqual,
                                                             int mh,
                                                             int mw)
Utility routine to create a grid layout

Parameters:
columns -
isEqual -
mh -
mw -
Returns:

getContainer

protected org.eclipse.core.resources.IContainer getContainer(java.lang.String workspaceDir)
Returns the selected workspace container,or null

Parameters:
workspaceDir -
Returns:
workspace container

getFieldContent

protected java.lang.String getFieldContent(java.lang.String text)
Utility routine to get the contents of a text field

Parameters:
text -
Returns:
string

getPlatform

protected java.lang.String getPlatform(org.eclipse.debug.core.ILaunchConfiguration config)
Get the platform from the launch configuration

Parameters:
config -
Returns:
platform

getProject

protected org.eclipse.core.resources.IProject getProject(org.eclipse.debug.core.ILaunchConfiguration configuration)
Gets the project from the configuration

Parameters:
configuration -
Returns:
project

getResource

protected org.eclipse.core.resources.IResource getResource(java.lang.String workspaceDir)
Returns the selected workspace resource, or null

Parameters:
workspaceDir -
Returns:
workspace resource

getWorkspaceRoot

protected org.eclipse.core.resources.IWorkspaceRoot getWorkspaceRoot()

getResourceManager

protected org.eclipse.ptp.rmsystem.IResourceManager getResourceManager(org.eclipse.debug.core.ILaunchConfiguration configuration)
Given a launch configuration, find the resource manager that was been selected.

Parameters:
configuration -
Returns:
resource manager
Throws:
org.eclipse.core.runtime.CoreException
Since:
5.0

spanGridData

protected org.eclipse.swt.layout.GridData spanGridData(int style,
                                                       int space)
Utility routing to create a GridData

Parameters:
style -
space -
Returns:

initializeFrom

public void initializeFrom(org.eclipse.debug.core.ILaunchConfiguration configuration)

setLaunchConfiguration

public void setLaunchConfiguration(org.eclipse.debug.core.ILaunchConfiguration configuration)
Cache the launch configuration

Parameters:
configuration -

getLaunchConfiguration

public org.eclipse.debug.core.ILaunchConfiguration getLaunchConfiguration()
Returns:
the launchConfiguration

PTP
Release 5.0

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