Remote Systems
v6.4.1

com.ibm.etools.systems.launch.ui.remoteexternaltools
Class RemoteProgramMainTab

java.lang.Object
  extended byExternalToolsMainTab
      extended bycom.ibm.etools.systems.launch.ui.remoteexternaltools.RemoteProgramMainTab
All Implemented Interfaces:
IUniversalLaunchConstants
Direct Known Subclasses:
RemoteBuildMainTab

public class RemoteProgramMainTab
extends ExternalToolsMainTab
implements IUniversalLaunchConstants

The main tab for remote program.

See Also:
Serialized Form

Nested Class Summary
protected  class RemoteProgramMainTab.ConnectionsWidgetListener
          A listener to update for text modification and widget selection.
protected  class RemoteProgramMainTab.ExportSelectionStatusValidator
          A class that only allows export description files to be valid.
 
Field Summary
protected  SystemConnectionCombo connectionCombo
           
protected  RemoteProgramMainTab.ConnectionsWidgetListener connectionsListener
           
protected  Button exportButton
           
protected  Button exportCheckBox
           
protected  Text exportField
           
protected  Label exportLabel
           
protected  boolean isEdited
           
 
Fields inherited from interface com.ibm.etools.systems.launch.IUniversalLaunchConstants
ATTR_PREFIX, ATTR_SYSTEM_CONNECTION_ALIAS_NAME, ATTR_SYSTEM_CONNECTION_PROFILE_NAME, BROWSE, BROWSEPROMPT, DEBUG_MODE, HISTORY_PREFIX, ICON_EXT, ICON_ROOT, ICON_SOURCELOCATOR_RSE, ICON_SOURCELOCATOR_RSE_ID, ICON_SOURCELOCATOR_RSE_ROOT, ICON_SUFFIX, LABEL, LAUNCH_GENERIC_PREFIX, PLUGIN_ID, PREFIX, REMOTEBUILD_EXPORT_LABEL, REMOTEBUILD_EXPORT_ROOT, REMOTEBUILD_EXPORT_TOOLTIP, REMOTEBUILD_PROGRAM, REMOTEBUILD_PROJECT, REMOTEBUILD_PROJECT_TOOLTIP, REMOTEBUILD_PROJECTCHKBOX, REMOTEEXTTOOLS_CONNECTION_INVALID, REMOTEEXTTOOLS_PROJECT_INVALID, REMOTEEXTTOOLS_WORKINGDIR_INVALID, REMOTEPROGRAM_CONNECTION, REMOTEPROGRAM_CONNECTIONS_LABEL, REMOTEPROGRAM_CONNECTIONS_TOOLTIP, REMOTEPROGRAM_EXPORT_LABEL, REMOTEPROGRAM_EXPORT_ROOT, REMOTEPROGRAM_EXPORT_TOOLTIP, REMOTEPROGRAM_PROGRAM, REMOTESOURCECONTIANER_ARCHIVE_ROOT, REMOTESOURCECONTIANER_DOWNLOAD, REMOTESOURCECONTIANER_FOLDER_ROOT, REMOTESOURCECONTIANER_LOOKUP, REMOTETOOLS_TABS_DEBUG_PREFIX, REMOTETOOLS_TABS_MAIN, REMOTETOOLS_TABS_MAIN_EXPORT_BROWSE_ROOT, REMOTETOOLS_TABS_MAIN_EXPORT_BROWSE_TOOLTIP, REMOTETOOLS_TABS_MAIN_EXPORT_DIALOG_ROOT, REMOTETOOLS_TABS_MAIN_EXPORT_DIALOG_TITLE, REMOTETOOLS_TABS_MAIN_EXPORT_LABEL, REMOTETOOLS_TABS_MAIN_EXPORT_ROOT, REMOTETOOLS_TABS_MAIN_EXPORT_TOOLTIP, REMOTETOOLS_TABS_MAIN_PROJECT_BROWSE_DIALOG_ROOT, REMOTETOOLS_TABS_MAIN_PROJECT_BROWSE_ROOT, REMOTETOOLS_TABS_MAIN_PROJECT_CHECK_ROOT, REMOTETOOLS_TABS_MAIN_PROJECT_ROOT, REMOTETOOLS_TABS_PREFIX, RESID_LAUNCH_PREFRENCE_DEBUG_ROOT, RESID_LAUNCH_PREFRENCE_PREFIX, RESID_PREFIX, RESID_REMOTEBUILD_PREFIX, RESID_REMOTEPROGRAM_PREFIX, RESID_REMOTESOURCECONTAINER_PREFIX, RESID_UI_PREFIX, RSE_ARCHIVE_SOURCECONTAINER_TYPE, RSE_DIRECTORY_SOURCECONTAINER_TYPE, RSE_SOURCECONTAINER_ARCHIVE_SELECTION_INVALID, RSE_SOURCECONTAINER_FOLDER_SELECTION_INVALID, RUN_MODE, SHOWINERRORLIST, TITLE, TOOLTIP
 
Constructor Summary
RemoteProgramMainTab()
           
 
Method Summary
protected  void browseExportFile()
           
protected  boolean contains(String[] extensions, String extension)
           
protected  void createArgumentComponent(Composite parent)
          Creates the controls needed to edit the argument and prompt for argument attributes of an external tool
protected  void createConnectionComponent(Composite parent)
           
 void createControl(Composite parent)
           
 void createExportComponent(Composite parent)
           
protected  void createProgramComponent(Composite parent)
          Creates the controls needed to edit the Program or Command attribute of an external tool.
protected  void createWorkDirectoryComponent(Composite parent)
          Creates the controls needed to edit the working directory attribute of an external tool.
protected  IResource findResource(IPath path)
          Returns the resource for the specified path.
 SystemConnection getCurrentSelectedConnection()
           
protected  String getExportCheckBoxLabel()
           
protected  String getExportCheckBoxTooltip()
           
protected  String getExportFileLocation()
           
protected  void handleExportCheckBoxChanged()
           
protected  void handleFileLocationButtonSelected()
           
protected  void handleFileWorkingDirectoryButtonSelected()
           
protected  void init()
           
 void initializeFrom(ILaunchConfiguration configuration)
           
 boolean isValid(ILaunchConfiguration launchConfig)
           
protected  SystemConnection parseForConnection(String connection)
           
 void performApply(ILaunchConfigurationWorkingCopy configuration)
           
protected  void prefill(ILaunchConfiguration launchConfig)
           
protected  void setExportWidgetsEnablement(boolean enabled)
          Set enablement of project related widgets.
protected  void updateConnection(ILaunchConfiguration configuration)
          Updates the connection widgets to match the state of the given launch configuration.
protected  void updateEnvironmentTab()
           
protected  void updateExport(ILaunchConfiguration configuration)
           
protected  boolean validateConnection()
           
protected  boolean validateExport()
           
protected  boolean validateLocation(boolean newConfig)
          Validates the content of the location field.
protected  boolean validateWorkDirectory(boolean newConfig)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

connectionCombo

protected SystemConnectionCombo connectionCombo

isEdited

protected boolean isEdited

connectionsListener

protected RemoteProgramMainTab.ConnectionsWidgetListener connectionsListener

exportCheckBox

protected Button exportCheckBox

exportLabel

protected Label exportLabel

exportField

protected Text exportField

exportButton

protected Button exportButton
Constructor Detail

RemoteProgramMainTab

public RemoteProgramMainTab()
Method Detail

createControl

public void createControl(Composite parent)
See Also:
ILaunchConfigurationTab

init

protected void init()

prefill

protected void prefill(ILaunchConfiguration launchConfig)

createArgumentComponent

protected void createArgumentComponent(Composite parent)
Creates the controls needed to edit the argument and prompt for argument attributes of an external tool

Parameters:
parent - the composite to create the controls in

createExportComponent

public void createExportComponent(Composite parent)

browseExportFile

protected void browseExportFile()

getExportFileLocation

protected String getExportFileLocation()

getExportCheckBoxLabel

protected String getExportCheckBoxLabel()

getExportCheckBoxTooltip

protected String getExportCheckBoxTooltip()

handleExportCheckBoxChanged

protected void handleExportCheckBoxChanged()

setExportWidgetsEnablement

protected void setExportWidgetsEnablement(boolean enabled)
Set enablement of project related widgets.


createConnectionComponent

protected void createConnectionComponent(Composite parent)

createProgramComponent

protected void createProgramComponent(Composite parent)
Creates the controls needed to edit the Program or Command attribute of an external tool.


createWorkDirectoryComponent

protected void createWorkDirectoryComponent(Composite parent)
Creates the controls needed to edit the working directory attribute of an external tool.

Parameters:
parent - the composite to create the controls in

parseForConnection

protected SystemConnection parseForConnection(String connection)

handleFileLocationButtonSelected

protected void handleFileLocationButtonSelected()
See Also:
externaltools.internal.launchConfigurations.ExternalToolsMainTab

handleFileWorkingDirectoryButtonSelected

protected void handleFileWorkingDirectoryButtonSelected()
See Also:
externaltools.internal.launchConfigurations.ExternalToolsMainTab

validateLocation

protected boolean validateLocation(boolean newConfig)
Validates the content of the location field.


validateWorkDirectory

protected boolean validateWorkDirectory(boolean newConfig)
See Also:
externaltools.internal.launchConfigurations.ExternalToolsMainTab

updateEnvironmentTab

protected void updateEnvironmentTab()

getCurrentSelectedConnection

public SystemConnection getCurrentSelectedConnection()

isValid

public boolean isValid(ILaunchConfiguration launchConfig)
See Also:
ILaunchConfigurationTab

validateConnection

protected boolean validateConnection()

validateExport

protected boolean validateExport()

contains

protected boolean contains(String[] extensions,
                           String extension)

findResource

protected IResource findResource(IPath path)
Returns the resource for the specified path.

Parameters:
path - the path for which the resource should be returned
Returns:
the resource specified by the path or null

performApply

public void performApply(ILaunchConfigurationWorkingCopy configuration)
See Also:
ILaunchConfigurationTab

initializeFrom

public void initializeFrom(ILaunchConfiguration configuration)
See Also:
ILaunchConfigurationTab

updateConnection

protected void updateConnection(ILaunchConfiguration configuration)
Updates the connection widgets to match the state of the given launch configuration.


updateExport

protected void updateExport(ILaunchConfiguration configuration)

Remote Systems
v6.4.1

Copyright © 2005 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.