RSE
Release 1.0

org.eclipse.rse.files.ui.resources
Class ExtractToForm

java.lang.Object
  extended byorg.eclipse.rse.files.ui.widgets.SystemSelectRemoteFileOrFolderForm
      extended byorg.eclipse.rse.files.ui.resources.ExtractToForm
All Implemented Interfaces:
ISelectionChangedListener, ISystemIconConstants

public class ExtractToForm
extends SystemSelectRemoteFileOrFolderForm


Field Summary
 
Fields inherited from class org.eclipse.rse.files.ui.widgets.SystemSelectRemoteFileOrFolderForm
addButtonCallback, allowFolderSelection, allowForMultipleParents, alwaysEnableOK, autoExpandDepth, caller, callerInstanceOfSystemPromptDialog, callerInstanceOfWizardPage, contentsCreated, fileMode, filesOnlyMode, fileTypes, initDone, inputProvider, listeners, locationPrompt, msgLine, multipleSelectionMode, nameEntryValue, objectMatcher, outerParent, outputConnection, outputObjects, preSelectFilter, preSelectFilterChild, preSelectRoot, previousSelection, PROMPT_WIDTH, ps, ps_composite, selectionValidator, showLocationPrompt, showPropertySheet, showRootFilter, spacer1, spacer2, sr, tree, treeTip, valid, verbage, verbageLabel, viewerFilters
 
Fields inherited from interface org.eclipse.rse.ui.ISystemIconConstants
ICON_ACTIONS_DIR, ICON_BANNER_SUFFIX, ICON_EXT, ICON_IDE_COLLAPSEALL_ID, ICON_IDE_FILTER_ID, ICON_IDE_LINKTOEDITOR_ID, ICON_IDE_REFRESH_ID, ICON_MODEL_DIR, ICON_NEWACTIONS_DIR, ICON_OBJS_DIR, ICON_SEARCH_CLEAR_HISTORY, ICON_SEARCH_CLEAR_HISTORY_ID, ICON_SEARCH_CLEAR_HISTORY_ROOT, ICON_SEARCH_REMOVE_ALL_MATCHES, ICON_SEARCH_REMOVE_ALL_MATCHES_ID, ICON_SEARCH_REMOVE_ALL_MATCHES_ROOT, ICON_SEARCH_REMOVE_SELECTED_MATCHES, ICON_SEARCH_REMOVE_SELECTED_MATCHES_ID, ICON_SEARCH_REMOVE_SELECTED_MATCHES_ROOT, ICON_SUFFIX, ICON_SYSTEM_ARROW_DOWN, ICON_SYSTEM_ARROW_DOWN_ID, ICON_SYSTEM_ARROW_DOWN_ROOT, ICON_SYSTEM_ARROW_UP, ICON_SYSTEM_ARROW_UP_ID, ICON_SYSTEM_ARROW_UP_ROOT, ICON_SYSTEM_BLANK, ICON_SYSTEM_BLANK_ID, ICON_SYSTEM_BLANK_ROOT, ICON_SYSTEM_CANCEL, ICON_SYSTEM_CANCEL_ID, ICON_SYSTEM_CANCEL_ROOT, ICON_SYSTEM_CANCEL_SHELL, ICON_SYSTEM_CANCEL_SHELL_ID, ICON_SYSTEM_CANCEL_SHELL_ROOT, ICON_SYSTEM_CHANGEFILTER, ICON_SYSTEM_CHANGEFILTER_ID, ICON_SYSTEM_CHANGEFILTER_ROOT, ICON_SYSTEM_CLEAR, ICON_SYSTEM_CLEAR_ALL, ICON_SYSTEM_CLEAR_ALL_ID, ICON_SYSTEM_CLEAR_ALL_ROOT, ICON_SYSTEM_CLEAR_ID, ICON_SYSTEM_CLEAR_ROOT, ICON_SYSTEM_CLEAR_SELECTED, ICON_SYSTEM_CLEAR_SELECTED_ID, ICON_SYSTEM_CLEAR_SELECTED_ROOT, ICON_SYSTEM_COMBINE, ICON_SYSTEM_COMBINE_ID, ICON_SYSTEM_COMBINE_ROOT, ICON_SYSTEM_COMPILE, ICON_SYSTEM_COMPILE_ID, ICON_SYSTEM_COMPILE_ROOT, ICON_SYSTEM_CONNECTION, ICON_SYSTEM_CONNECTION_ID, ICON_SYSTEM_CONNECTION_ROOT, ICON_SYSTEM_CONNECTIONLIVE, ICON_SYSTEM_CONNECTIONLIVE_ID, ICON_SYSTEM_CONNECTIONLIVE_ROOT, ICON_SYSTEM_CONNECTOR_SERVICE, ICON_SYSTEM_CONNECTOR_SERVICE_ID, ICON_SYSTEM_CONNECTOR_SERVICE_ROOT, ICON_SYSTEM_CONVERT, ICON_SYSTEM_CONVERT_ID, ICON_SYSTEM_CONVERT_ROOT, ICON_SYSTEM_DELETEREF, ICON_SYSTEM_DELETEREF_ID, ICON_SYSTEM_DELETEREF_ROOT, ICON_SYSTEM_EMPTY, ICON_SYSTEM_EMPTY_ID, ICON_SYSTEM_EMPTY_ROOT, ICON_SYSTEM_ENVVAR, ICON_SYSTEM_ENVVAR_ID, ICON_SYSTEM_ENVVAR_LIBPATH, ICON_SYSTEM_ENVVAR_LIBPATH_ID, ICON_SYSTEM_ENVVAR_LIBPATH_ROOT, ICON_SYSTEM_ENVVAR_PATH, ICON_SYSTEM_ENVVAR_PATH_ID, ICON_SYSTEM_ENVVAR_PATH_ROOT, ICON_SYSTEM_ENVVAR_ROOT, ICON_SYSTEM_ERROR, ICON_SYSTEM_ERROR_ID, ICON_SYSTEM_ERROR_ROOT, ICON_SYSTEM_EXPORT_SHELL_HISTORY, ICON_SYSTEM_EXPORT_SHELL_HISTORY_ID, ICON_SYSTEM_EXPORT_SHELL_HISTORY_ROOT, ICON_SYSTEM_EXPORT_SHELL_OUTPUT, ICON_SYSTEM_EXPORT_SHELL_OUTPUT_ID, ICON_SYSTEM_EXPORT_SHELL_OUTPUT_ROOT, ICON_SYSTEM_EXTRACT, ICON_SYSTEM_EXTRACT_ID, ICON_SYSTEM_EXTRACT_ROOT, ICON_SYSTEM_EXTRACTTO, ICON_SYSTEM_EXTRACTTO_ID, ICON_SYSTEM_EXTRACTTO_ROOT, ICON_SYSTEM_FAILED, ICON_SYSTEM_FAILED_ID, ICON_SYSTEM_FAILED_ROOT, ICON_SYSTEM_FILTER, ICON_SYSTEM_FILTER_ID, ICON_SYSTEM_FILTER_ROOT, ICON_SYSTEM_FILTERPOOL, ICON_SYSTEM_FILTERPOOL_ID, ICON_SYSTEM_FILTERPOOL_ROOT, ICON_SYSTEM_FILTERSTRING, ICON_SYSTEM_FILTERSTRING_ID, ICON_SYSTEM_FILTERSTRING_ROOT, ICON_SYSTEM_FOLDER, ICON_SYSTEM_FOLDER_ID, ICON_SYSTEM_FOLDER_ROOT, ICON_SYSTEM_HELP, ICON_SYSTEM_HELP_ID, ICON_SYSTEM_HELP_ROOT, ICON_SYSTEM_INFO, ICON_SYSTEM_INFO_ID, ICON_SYSTEM_INFO_ROOT, ICON_SYSTEM_INFO_TREE, ICON_SYSTEM_INFO_TREE_ID, ICON_SYSTEM_INFO_TREE_ROOT, ICON_SYSTEM_LAUNCHER_CONFIGURATION, ICON_SYSTEM_LAUNCHER_CONFIGURATION_ID, ICON_SYSTEM_LAUNCHER_CONFIGURATION_ROOT, ICON_SYSTEM_LOCK, ICON_SYSTEM_LOCK_ID, ICON_SYSTEM_LOCK_ROOT, ICON_SYSTEM_MAKEPROFILEACTIVE, ICON_SYSTEM_MAKEPROFILEACTIVE_ID, ICON_SYSTEM_MAKEPROFILEACTIVE_ROOT, ICON_SYSTEM_MAKEPROFILEINACTIVE, ICON_SYSTEM_MAKEPROFILEINACTIVE_ID, ICON_SYSTEM_MAKEPROFILEINACTIVE_ROOT, ICON_SYSTEM_MOVE, ICON_SYSTEM_MOVE_ID, ICON_SYSTEM_MOVE_ROOT, ICON_SYSTEM_MOVEDOWN, ICON_SYSTEM_MOVEDOWN_ID, ICON_SYSTEM_MOVEDOWN_ROOT, ICON_SYSTEM_MOVEUP, ICON_SYSTEM_MOVEUP_ID, ICON_SYSTEM_MOVEUP_ROOT, ICON_SYSTEM_NEW, ICON_SYSTEM_NEW_ID, ICON_SYSTEM_NEW_ROOT, ICON_SYSTEM_NEWCONNECTION, ICON_SYSTEM_NEWCONNECTION_ID, ICON_SYSTEM_NEWCONNECTION_ROOT, ICON_SYSTEM_NEWCONNECTIONWIZARD, ICON_SYSTEM_NEWCONNECTIONWIZARD_ID, ICON_SYSTEM_NEWCONNECTIONWIZARD_ROOT, ICON_SYSTEM_NEWFILE, ICON_SYSTEM_NEWFILE_ID, ICON_SYSTEM_NEWFILE_ROOT, ICON_SYSTEM_NEWFILEWIZARD, ICON_SYSTEM_NEWFILEWIZARD_ID, ICON_SYSTEM_NEWFILEWIZARD_ROOT, ICON_SYSTEM_NEWFILTER, ICON_SYSTEM_NEWFILTER_ID, ICON_SYSTEM_NEWFILTER_ROOT, ICON_SYSTEM_NEWFILTERPOOL, ICON_SYSTEM_NEWFILTERPOOL_ID, ICON_SYSTEM_NEWFILTERPOOL_ROOT, ICON_SYSTEM_NEWFILTERPOOLREF, ICON_SYSTEM_NEWFILTERPOOLREF_ID, ICON_SYSTEM_NEWFILTERPOOLREF_ROOT, ICON_SYSTEM_NEWFILTERPOOLWIZARD, ICON_SYSTEM_NEWFILTERPOOLWIZARD_ID, ICON_SYSTEM_NEWFILTERPOOLWIZARD_ROOT, ICON_SYSTEM_NEWFILTERWIZARD, ICON_SYSTEM_NEWFILTERWIZARD_ID, ICON_SYSTEM_NEWFILTERWIZARD_ROOT, ICON_SYSTEM_NEWFOLDER, ICON_SYSTEM_NEWFOLDER_ID, ICON_SYSTEM_NEWFOLDER_ROOT, ICON_SYSTEM_NEWFOLDERWIZARD, ICON_SYSTEM_NEWFOLDERWIZARD_ID, ICON_SYSTEM_NEWFOLDERWIZARD_ROOT, ICON_SYSTEM_NEWPROFILE, ICON_SYSTEM_NEWPROFILE_ID, ICON_SYSTEM_NEWPROFILE_ROOT, ICON_SYSTEM_NEWPROFILEWIZARD, ICON_SYSTEM_NEWPROFILEWIZARD_ID, ICON_SYSTEM_NEWPROFILEWIZARD_ROOT, ICON_SYSTEM_OK, ICON_SYSTEM_OK_ID, ICON_SYSTEM_OK_ROOT, ICON_SYSTEM_PERSPECTIVE, ICON_SYSTEM_PERSPECTIVE_ID, ICON_SYSTEM_PERSPECTIVE_ROOT, ICON_SYSTEM_PROCESS, ICON_SYSTEM_PROCESS_ID, ICON_SYSTEM_PROCESS_ROOT, ICON_SYSTEM_PROFILE, ICON_SYSTEM_PROFILE_ACTIVE, ICON_SYSTEM_PROFILE_ACTIVE_ID, ICON_SYSTEM_PROFILE_ACTIVE_ROOT, ICON_SYSTEM_PROFILE_ID, ICON_SYSTEM_PROFILE_ROOT, ICON_SYSTEM_PROPERTIES, ICON_SYSTEM_PROPERTIES_ID, ICON_SYSTEM_PROPERTIES_ROOT, ICON_SYSTEM_REFRESH, ICON_SYSTEM_REFRESH_ID, ICON_SYSTEM_REFRESH_ROOT, ICON_SYSTEM_REMOVE_SHELL, ICON_SYSTEM_REMOVE_SHELL_ID, ICON_SYSTEM_REMOVE_SHELL_ROOT, ICON_SYSTEM_RENAME, ICON_SYSTEM_RENAME_ID, ICON_SYSTEM_RENAME_ROOT, ICON_SYSTEM_ROOTDRIVE, ICON_SYSTEM_ROOTDRIVE_ID, ICON_SYSTEM_ROOTDRIVE_ROOT, ICON_SYSTEM_ROOTDRIVEOPEN, ICON_SYSTEM_ROOTDRIVEOPEN_ID, ICON_SYSTEM_ROOTDRIVEOPEN_ROOT, ICON_SYSTEM_RUN, ICON_SYSTEM_RUN_ID, ICON_SYSTEM_RUN_ROOT, ICON_SYSTEM_SEARCH, ICON_SYSTEM_SEARCH_ID, ICON_SYSTEM_SEARCH_RESULT, ICON_SYSTEM_SEARCH_RESULT_ID, ICON_SYSTEM_SEARCH_RESULT_ROOT, ICON_SYSTEM_SEARCH_ROOT, ICON_SYSTEM_SELECTFILTERPOOLS, ICON_SYSTEM_SELECTFILTERPOOLS_ID, ICON_SYSTEM_SELECTFILTERPOOLS_ROOT, ICON_SYSTEM_SELECTPROFILE, ICON_SYSTEM_SELECTPROFILE_ID, ICON_SYSTEM_SELECTPROFILE_ROOT, ICON_SYSTEM_SERVICE, ICON_SYSTEM_SERVICE_ID, ICON_SYSTEM_SERVICE_ROOT, ICON_SYSTEM_SHELL, ICON_SYSTEM_SHELL_ID, ICON_SYSTEM_SHELL_ROOT, ICON_SYSTEM_SHELLLIVE, ICON_SYSTEM_SHELLLIVE_ID, ICON_SYSTEM_SHELLLIVE_ROOT, ICON_SYSTEM_SHOW_MONITOR, ICON_SYSTEM_SHOW_MONITOR_ID, ICON_SYSTEM_SHOW_MONITOR_ROOT, ICON_SYSTEM_SHOW_SHELL, ICON_SYSTEM_SHOW_SHELL_ID, ICON_SYSTEM_SHOW_SHELL_ROOT, ICON_SYSTEM_SHOW_TABLE, ICON_SYSTEM_SHOW_TABLE_ID, ICON_SYSTEM_SHOW_TABLE_ROOT, ICON_SYSTEM_STOP, ICON_SYSTEM_STOP_ID, ICON_SYSTEM_STOP_ROOT, ICON_SYSTEM_TARGET, ICON_SYSTEM_TARGET_ID, ICON_SYSTEM_TARGET_ROOT, ICON_SYSTEM_WARNING, ICON_SYSTEM_WARNING_ID, ICON_SYSTEM_WARNING_ROOT, ICON_SYSTEM_WORKWITHCOMPILECMDS, ICON_SYSTEM_WORKWITHCOMPILECMDS_ID, ICON_SYSTEM_WORKWITHCOMPILECMDS_ROOT, ICON_SYSTEM_WORKWITHFILTERPOOLS, ICON_SYSTEM_WORKWITHFILTERPOOLS_ID, ICON_SYSTEM_WORKWITHFILTERPOOLS_ROOT, ICON_SYSTEM_WORKWITHNAMEDTYPES, ICON_SYSTEM_WORKWITHNAMEDTYPES_ID, ICON_SYSTEM_WORKWITHNAMEDTYPES_ROOT, ICON_SYSTEM_WORKWITHUSERACTIONS, ICON_SYSTEM_WORKWITHUSERACTIONS_ID, ICON_SYSTEM_WORKWITHUSERACTIONS_ROOT, ICON_WIZARD_DIR, PLUGIN_ID, PREFIX
 
Constructor Summary
ExtractToForm(ISystemMessageLine msgLine, Object caller, boolean fileMode)
          Constructor for ExtractToForm
 
Method Summary
 Control createContents(Shell shell, Composite parent)
          In this method, we populate the given SWT container with widgets and return the container to the caller.
protected  ISystemViewElementAdapter getAdapter(Object o)
          Returns the implementation of ISystemViewElement for the given object.
 String getFileName()
           
protected  ISystemRemoteElementAdapter getRemoteAdapter(Object o)
          Returns the implementation of ISystemRemoteElement for the given object.
 boolean isPageComplete()
          This method can be called by the dialog or wizard page host, to decide whether to enable or disable the next, final or ok buttons.
 void selectionChanged(SelectionChangedEvent e)
          User selected something in the tree.
 void setPreSelection(IRemoteFile selection)
          Set a file or folder to preselect.
 void setRootFolder(IHost connection, String folderAbsolutePath)
          Set the root folder from which to start listing folders or files.
 boolean verify()
          Completes processing of the dialog.
 
Methods inherited from class org.eclipse.rse.files.ui.widgets.SystemSelectRemoteFileOrFolderForm
addSelectionChangedListener, addViewerFilter, clearErrorMessage, dispose, enableAddMode, getFirstSelection, getInitialFocusControl, getInputProvider, getMultipleSelectionMode, getRemoteAdapters, getSelectedConnection, getSelectedObject, getSelectedObjects, getSelections, getShell, getSystemViewForm, internalGetConnection, removeSelectionChangedListener, setAllowFolderSelection, setAllowForMultipleParents, setAutoExpandDepth, setDefaultConnection, setErrorMessage, setErrorMessage, setFileTypes, setFileTypes, setLocationPrompt, setMessage, setMessageLine, setMultipleSelectionMode, setNameText, setPageComplete, setRestrictFolders, setRootFolder, setSelectionTreeToolTipText, setSelectionValidator, setShowLocationPrompt, setShowNewConnectionPrompt, setShowPropertySheet, setSystemConnection, setSystemTypes, toggleShowPropertySheet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExtractToForm

public ExtractToForm(ISystemMessageLine msgLine,
                     Object caller,
                     boolean fileMode)
Constructor for ExtractToForm

Method Detail

createContents

public Control createContents(Shell shell,
                              Composite parent)
In this method, we populate the given SWT container with widgets and return the container to the caller.

Overrides:
createContents in class SystemSelectRemoteFileOrFolderForm
Parameters:
parent - The parent composite

verify

public boolean verify()
Completes processing of the dialog. Intercept of parent method.

Overrides:
verify in class SystemSelectRemoteFileOrFolderForm
Returns:
true if no errors

isPageComplete

public boolean isPageComplete()
Description copied from class: SystemSelectRemoteFileOrFolderForm
This method can be called by the dialog or wizard page host, to decide whether to enable or disable the next, final or ok buttons. It returns true if the minimal information is available and is correct.

Overrides:
isPageComplete in class SystemSelectRemoteFileOrFolderForm

getFileName

public String getFileName()

getAdapter

protected ISystemViewElementAdapter getAdapter(Object o)
Returns the implementation of ISystemViewElement for the given object. Returns null if the adapter is not defined or the object is not adaptable.


getRemoteAdapter

protected ISystemRemoteElementAdapter getRemoteAdapter(Object o)
Returns the implementation of ISystemRemoteElement for the given object. Returns null if this object does not adaptable to this.


selectionChanged

public void selectionChanged(SelectionChangedEvent e)
User selected something in the tree. This is an intercept of the parent's method so we can process a member selection, and copy the selected member's name to the entry field.

Specified by:
selectionChanged in interface ISelectionChangedListener
Overrides:
selectionChanged in class SystemSelectRemoteFileOrFolderForm

setPreSelection

public void setPreSelection(IRemoteFile selection)
Description copied from class: SystemSelectRemoteFileOrFolderForm
Set a file or folder to preselect. This will: If there is no parent, then we were given a root. In which case we will

Overrides:
setPreSelection in class SystemSelectRemoteFileOrFolderForm

setRootFolder

public void setRootFolder(IHost connection,
                          String folderAbsolutePath)
Set the root folder from which to start listing folders or files. This version identifies the folder via a connection object and absolute path. There is another overload that identifies the folder via a single IRemoteFile object.

Overrides:
setRootFolder in class SystemSelectRemoteFileOrFolderForm
Parameters:
connection - The connection to the remote system containing the root folder
folderAbsolutePath - The fully qualified folder to start listing from (eg: "\folder1\folder2")
See Also:
RemoteFileFilterString

RSE
Release 1.0

Copyright (c) IBM Corporation and others 2000, 2006. All Rights Reserved.