|
RSE Release 3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jface.window.Window
org.eclipse.jface.dialogs.Dialog
org.eclipse.rse.ui.dialogs.SystemPromptDialog
org.eclipse.rse.ui.dialogs.SystemRemoteResourceDialog
public abstract class SystemRemoteResourceDialog
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.eclipse.jface.window.Window |
---|
Window.IExceptionHandler |
Field Summary |
---|
Fields inherited from class org.eclipse.jface.dialogs.Dialog |
---|
blockedHandler, buttonBar, DIALOG_DEFAULT_BOUNDS, DIALOG_PERSISTLOCATION, DIALOG_PERSISTSIZE, dialogArea, DLG_IMG_ERROR, DLG_IMG_HELP, DLG_IMG_INFO, DLG_IMG_MESSAGE_ERROR, DLG_IMG_MESSAGE_INFO, DLG_IMG_MESSAGE_WARNING, DLG_IMG_QUESTION, DLG_IMG_WARNING, ELLIPSIS |
Fields inherited from class org.eclipse.jface.window.Window |
---|
CANCEL, OK |
Constructor Summary | |
---|---|
SystemRemoteResourceDialog(Shell shell,
String title,
ISystemResourceSelectionInputProvider inputProvider)
|
Method Summary | |
---|---|
protected Control |
createInner(Composite parent)
Called by createContents method. |
protected ISystemMessageLine |
createMessageLine(Composite c)
Create message line. |
protected Control |
getInitialFocusControl()
Return the Control to be given initial focus. |
IHost |
getSelectedConnection()
|
Object |
getSelectedObject()
Return selected file or folder |
Object[] |
getSelectedObjects()
Return all selected objects. |
ISystemTree |
getSystemTree()
Returns the system tree |
abstract String |
getTreeTip()
|
abstract String |
getVerbiage()
|
abstract SystemActionViewerFilter |
getViewerFilter()
|
void |
initForm()
|
boolean |
isPageComplete()
Indicates whether the page for the form is complete or not. |
protected boolean |
processDetails(boolean hideMode)
Private method. |
protected boolean |
processOK()
Private method. |
void |
setConnectionComboLabel(String label)
Sets the label for the connection combo in the form |
void |
setCustomViewerFilter(SystemActionViewerFilter viewerFilter)
|
void |
setDefaultSystemConnection(IHost connection,
boolean onlyConnection)
|
void |
setMessage(String message)
Set the message shown at the top of the form |
void |
setMultipleSelectionMode(boolean multiple)
Set multiple selection mode. |
void |
setPreSelection(Object selection)
|
void |
setSelectionTreeToolTipText(String tip)
Set the tooltip text for the remote systems tree from which an item is selected. |
void |
setSelectionValidator(IValidatorRemoteSelection validator)
|
void |
setShowNewConnectionPrompt(boolean showNewConnectionPrompt)
|
void |
setShowPropertySheet(boolean show)
Show the property sheet on the right hand side, to show the properties of the selected object. |
void |
setShowPropertySheet(boolean show,
boolean initialState)
Show the property sheet on the right hand side, to show the properties of the selected object. |
void |
setSystemTypes(IRSESystemType[] types)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SystemRemoteResourceDialog(Shell shell, String title, ISystemResourceSelectionInputProvider inputProvider)
Method Detail |
---|
protected Control createInner(Composite parent)
SystemPromptDialog
createInner
in class SystemPromptDialog
protected ISystemMessageLine createMessageLine(Composite c)
createMessageLine
in class SystemPromptDialog
public void initForm()
public void setDefaultSystemConnection(IHost connection, boolean onlyConnection)
public void setSystemTypes(IRSESystemType[] types)
protected Control getInitialFocusControl()
SystemPromptDialog
getInitialFocusControl
in class SystemPromptDialog
public void setPreSelection(Object selection)
public void setSelectionValidator(IValidatorRemoteSelection validator)
public void setCustomViewerFilter(SystemActionViewerFilter viewerFilter)
public void setMultipleSelectionMode(boolean multiple)
If you turn on multiple selection mode, you must use the getSelectedObjects() method to retrieve the list of selected objects.
Further, if you turn this on, it has the side effect of allowing the user to select any remote object. The assumption being if you are prompting for files, you also want to allow the user to select a folder, with the meaning being that all files within the folder are implicitly selected.
getSelectedObjects()
public void setMessage(String message)
setMessage
in interface ISystemMessageLine
setMessage
in class SystemPromptDialog
public void setSelectionTreeToolTipText(String tip)
public void setShowPropertySheet(boolean show)
This overload always shows the property sheet
Default is false
public void setShowPropertySheet(boolean show, boolean initialState)
This overload shows a Details>>> button so the user can decide if they want to see the property sheet.
show
- True if show the property sheet within the dialoginitialState
- True if the property is to be initially displayed, false if it is not
to be displayed until the user presses the Details button.public Object getSelectedObject()
public Object[] getSelectedObjects()
setMultipleSelectionMode(boolean)
public IHost getSelectedConnection()
protected boolean processOK()
Called when user presses OK button. Return true to close dialog. Return false to not close dialog.
processOK
in class SystemPromptDialog
public void setShowNewConnectionPrompt(boolean showNewConnectionPrompt)
protected boolean processDetails(boolean hideMode)
Called when user presses DETAILS button.
Note the text is automatically toggled for us! We need only do whatever the functionality is that we desire
processDetails
in class SystemPromptDialog
hideMode
- the current state of the details toggle, prior to this request. If we return true from
this method, this state and the button text will be toggled.
public ISystemTree getSystemTree()
public boolean isPageComplete()
public void setConnectionComboLabel(String label)
public abstract SystemActionViewerFilter getViewerFilter()
public abstract String getVerbiage()
public abstract String getTreeTip()
|
RSE Release 3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |