Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

RSE
Release 3.0

org.eclipse.rse.files.ui.widgets
Class SaveAsForm

java.lang.Object
  extended by 

org.eclipse.rse.files.ui.widgets.SystemSelectRemoteFileOrFolderForm
      extended by 
org.eclipse.rse.files.ui.widgets.SaveAsForm
All Implemented Interfaces:
ISelectionChangedListener

public class SaveAsForm
extends SystemSelectRemoteFileOrFolderForm


Field Summary
protected   String fileName
           
protected   Text fileNameText
           
protected   String initialFileName
           
protected   ValidatorFileName validator
           
 
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
 
Constructor Summary
SaveAsForm ( ISystemMessageLine msgLine, Object caller, boolean fileMode)
          Constructor for SaveAsForm
 
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.
  String getFileName ()
           
protected   ISystemRemoteElementAdapter getRemoteAdapter ( Object o)
          Returns the implementation of ISystemRemoteElement for the given object.
protected   ISystemViewElementAdapter getViewAdapter ( Object o)
          Returns the implementation of ISystemViewElement 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.
 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, 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
 

Field Detail

fileNameText

protected 
Text fileNameText

fileName

protected 
String fileName

initialFileName

protected 
String initialFileName

validator

protected 
ValidatorFileName validator
Constructor Detail

SaveAsForm

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

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()

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

RSE
Release 3.0

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

 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire