|
org.eclipse.rse.files.ui.widgets
Class SaveAsForm
java.lang.Object
org.eclipse.rse.files.ui.widgets.SystemSelectRemoteFileOrFolderForm
org.eclipse.rse.files.ui.widgets.SaveAsForm
-
All Implemented Interfaces:
-
ISelectionChangedListener
-
public class SaveAsForm
- extends
SystemSelectRemoteFileOrFolderForm
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_composite,
selectionValidator,
showLocationPrompt,
showPropertySheet,
showRootFilter,
spacer1,
spacer2,
sr,
treeTip,
valid,
verbiage,
verbiageLabel,
viewerFilters
|
Methods inherited from class org.eclipse.rse.files.ui.widgets.
SystemSelectRemoteFileOrFolderForm
|
addSelectionChangedListener,
addViewerFilter,
clearErrorMessage,
dispose,
enableAddMode,
getFirstSelection,
getInitialFocusControl,
getInputProvider,
getMultipleSelectionMode,
getRemoteAdapters,
getSelectedConnection,
getSelectedObject,
getSelectedObjects,
getSelectedParent,
getSelections,
getShell,
getSystemTree,
internalGetConnection,
removeSelectionChangedListener,
setAllowFolderSelection,
setAllowForMultipleParents,
setAutoExpandDepth,
setDefaultConnection,
setErrorMessage,
setErrorMessage,
setFileTypes,
setFileTypes,
setLocationPrompt,
setMessage,
setMessageLine,
setMultipleSelectionMode,
setNameText,
setPageComplete,
setRestrictFolders,
setRootFolder,
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
|
fileNameText
protected
Text fileNameText
fileName
protected
String fileName
initialFileName
protected
String initialFileName
validator
protected
ValidatorFileName validator
SaveAsForm
public SaveAsForm(
ISystemMessageLine msgLine,
Object caller,
boolean fileMode)
- Constructor for SaveAsForm
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()
-
setPreSelection
public void setPreSelection(
IRemoteFile selection)
-
Description copied from class:
SystemSelectRemoteFileOrFolderForm
- Set a file or folder to preselect. This will:
- Set the parent folder as the root folder
- Pre-expand the parent folder
- Pre-select the given file or folder after expansion
If there is no parent, then we were given a root. In which case we will
- Force setRestrictFolders to false
- Pre-expand the root drives (Windows) or root files (Unix)
- Pre-select the given root drive (Windows only)
-
-
Overrides:
-
setPreSelection
in class
SystemSelectRemoteFileOrFolderForm
-
getViewAdapter
protected
ISystemViewElementAdapter getViewAdapter(
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
-
Copyright (c) IBM Corporation and others 2000, 2008. All Rights Reserved.
|
|