PTP
Release 5.0

org.eclipse.ptp.launch.ui
Class ApplicationTab

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

public class ApplicationTab
extends LaunchConfigurationTab

The Main tab is used to specify the resource manager for the launch, select the project and executable to launch, and specify the location of the executable if it is a remote launch.


Nested Class Summary
protected  class ApplicationTab.WidgetListener
           
 
Field Summary
protected  org.eclipse.swt.widgets.Button appButton
           
protected  org.eclipse.swt.widgets.Text appText
           
protected  org.eclipse.swt.widgets.Button browseAppButton
           
protected  boolean combinedOutputDefault
           
protected  org.eclipse.swt.widgets.Button consoleButton
           
protected  ApplicationTab.WidgetListener listener
           
protected  org.eclipse.swt.widgets.Button localAppButton
           
protected  org.eclipse.swt.widgets.Text localAppText
           
protected  org.eclipse.swt.widgets.Button projButton
           
protected  org.eclipse.swt.widgets.Text projText
           
static java.lang.String TAB_ID
           
 
Fields inherited from class org.eclipse.ptp.launch.ui.LaunchConfigurationTab
DEFAULT_VALUE, EMPTY_STRING
 
Constructor Summary
ApplicationTab()
           
 
Method Summary
protected  org.eclipse.core.resources.IResource chooseFile()
          Create a dialog that allows the user to select a file in the current project.
protected  org.eclipse.core.resources.IProject chooseProject()
          Create a dialog that allows the user to choose a project.
 void createControl(org.eclipse.swt.widgets.Composite parent)
           
protected  org.eclipse.core.resources.IProject getDefaultProject(org.eclipse.debug.core.ILaunchConfiguration configuration)
          Get a default project.
 java.lang.String getId()
           
 org.eclipse.swt.graphics.Image getImage()
           
 java.lang.String getName()
           
protected  org.eclipse.core.resources.IProject getProject()
          Get the IProject the corresponds to the project name that is displayed in the projText control
protected  void handleApplicationButtonSelected()
          Allow the user to choose the application to execute Initial path does not work on MacOS X: see bug #153365
protected  void handleBrowseLocalApplicationButtonSelected()
           
protected  void handleLocalApplicationButtonSelected()
          Disables copy of executable from local machine.
protected  void handleProjectButtonSelected()
          Allow the user to choose a project
 void initializeFrom(org.eclipse.debug.core.ILaunchConfiguration configuration)
           
 boolean isValid(org.eclipse.debug.core.ILaunchConfiguration config)
           
 void performApply(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy configuration)
           
 void setDefaults(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy configuration)
           
 void setLaunchConfigurationDialog(ILaunchConfigurationDialog dialog)
           
protected  void updateLaunchConfigurationDialog()
           
 
Methods inherited from class org.eclipse.ptp.launch.ui.LaunchConfigurationTab
createGridLayout, getContainer, getFieldContent, getLaunchConfiguration, getPlatform, getProject, getResource, getResourceManager, getWorkspaceRoot, setLaunchConfiguration, 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 java.lang.String TAB_ID
Since:
4.0
See Also:
Constant Field Values

projText

protected org.eclipse.swt.widgets.Text projText

appText

protected org.eclipse.swt.widgets.Text appText

localAppText

protected org.eclipse.swt.widgets.Text localAppText

projButton

protected org.eclipse.swt.widgets.Button projButton

appButton

protected org.eclipse.swt.widgets.Button appButton

browseAppButton

protected org.eclipse.swt.widgets.Button browseAppButton

localAppButton

protected org.eclipse.swt.widgets.Button localAppButton

consoleButton

protected org.eclipse.swt.widgets.Button consoleButton

listener

protected ApplicationTab.WidgetListener listener

combinedOutputDefault

protected final boolean combinedOutputDefault
See Also:
Constant Field Values
Constructor Detail

ApplicationTab

public ApplicationTab()
Method Detail

createControl

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

getId

public java.lang.String getId()

getImage

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

getName

public java.lang.String getName()

initializeFrom

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

isValid

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

performApply

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

setDefaults

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

setLaunchConfigurationDialog

public void setLaunchConfigurationDialog(ILaunchConfigurationDialog dialog)

chooseFile

protected org.eclipse.core.resources.IResource chooseFile()
Create a dialog that allows the user to select a file in the current project.

Returns:
selected file

chooseProject

protected org.eclipse.core.resources.IProject chooseProject()
Create a dialog that allows the user to choose a project.

Returns:
selected project

getDefaultProject

protected org.eclipse.core.resources.IProject getDefaultProject(org.eclipse.debug.core.ILaunchConfiguration configuration)
Get a default project. This is either the project name that has been previously selected, or the project that is currently selected in the workspace.

Parameters:
configuration -
Returns:
default project

getProject

protected org.eclipse.core.resources.IProject getProject()
Get the IProject the corresponds to the project name that is displayed in the projText control

Returns:
project

handleApplicationButtonSelected

protected void handleApplicationButtonSelected()
Allow the user to choose the application to execute Initial path does not work on MacOS X: see bug #153365


handleBrowseLocalApplicationButtonSelected

protected void handleBrowseLocalApplicationButtonSelected()

handleLocalApplicationButtonSelected

protected void handleLocalApplicationButtonSelected()
Disables copy of executable from local machine.


handleProjectButtonSelected

protected void handleProjectButtonSelected()
Allow the user to choose a project


updateLaunchConfigurationDialog

protected void updateLaunchConfigurationDialog()

PTP
Release 5.0

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