public class RemoteResourceBrowser
extends org.eclipse.jface.dialogs.Dialog
implements org.eclipse.jface.operation.IRunnableContext
Modifier and Type | Field and Description |
---|---|
static int |
DIRECTORY_BROWSER |
static java.lang.String |
EMPTY_STRING |
static int |
FILE_BROWSER |
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
Constructor and Description |
---|
RemoteResourceBrowser(org.eclipse.swt.widgets.Shell parent,
int style) |
Modifier and Type | Method and Description |
---|---|
protected org.eclipse.swt.widgets.Button |
createButton(org.eclipse.swt.widgets.Composite parent,
int id,
java.lang.String label,
boolean defaultButton) |
protected org.eclipse.swt.widgets.Control |
createContents(org.eclipse.swt.widgets.Composite parent) |
protected org.eclipse.swt.widgets.Control |
createDialogArea(org.eclipse.swt.widgets.Composite parent) |
IRemoteConnection |
getConnection()
Get the connection that was selected
|
org.eclipse.core.filesystem.IFileStore |
getResource()
Get the resources that was selected.
|
java.util.List<org.eclipse.core.filesystem.IFileStore> |
getResources()
Get the resources that were selected.
|
void |
run(boolean fork,
boolean cancelable,
org.eclipse.jface.operation.IRunnableWithProgress runnable) |
void |
setConnection(IRemoteConnection connection)
Set the connection for the browser.
|
void |
setInitialPath(java.lang.String path)
Set the initial path to start browsing.
|
void |
setTitle(java.lang.String title)
Set the fDialogTitle of the dialog.
|
void |
setType(int type)
Set the type of browser.
|
void |
showConnections(boolean enable)
Show available connections on browser if possible (default disabled).
|
void |
showHiddenCheckbox(boolean showHidden)
Enable a checkbox to show hidden files (default enabled)
|
void |
showLocalSelection(boolean showLocalSelection)
Enable selection of local files
|
void |
showNewFolderButton(boolean showNewFolderButton)
Enable a button to create new folders (default enabled)
|
applyDialogFont, buttonPressed, cancelPressed, close, convertHeightInCharsToPixels, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, convertWidthInCharsToPixels, create, createButtonBar, createButtonsForButtonBar, dialogFontIsDefault, getBlockedHandler, getButton, getButtonBar, getCancelButton, getDialogArea, getDialogBoundsSettings, getDialogBoundsStrategy, getImage, getInitialLocation, getInitialSize, getOKButton, initializeBounds, initializeDialogUnits, isResizable, okPressed, setBlockedHandler, setButtonLayoutData, setButtonLayoutFormData, shortenText
canHandleShellCloseEvent, configureShell, constrainShellSize, createShell, getConstrainedShellBounds, getContents, getDefaultImage, getDefaultImages, getDefaultOrientation, getLayout, getParentShell, getReturnCode, getShell, getShellListener, getShellStyle, getWindowManager, handleFontChange, handleShellCloseEvent, open, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setParentShell, setReturnCode, setShellStyle, setWindowManager
public static final java.lang.String EMPTY_STRING
public static final int FILE_BROWSER
public static final int DIRECTORY_BROWSER
public RemoteResourceBrowser(org.eclipse.swt.widgets.Shell parent, int style)
protected org.eclipse.swt.widgets.Button createButton(org.eclipse.swt.widgets.Composite parent, int id, java.lang.String label, boolean defaultButton)
createButton
in class org.eclipse.jface.dialogs.Dialog
protected org.eclipse.swt.widgets.Control createContents(org.eclipse.swt.widgets.Composite parent)
createContents
in class org.eclipse.jface.dialogs.Dialog
protected org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite parent)
createDialogArea
in class org.eclipse.jface.dialogs.Dialog
public IRemoteConnection getConnection()
public org.eclipse.core.filesystem.IFileStore getResource()
public java.util.List<org.eclipse.core.filesystem.IFileStore> getResources()
public void run(boolean fork, boolean cancelable, org.eclipse.jface.operation.IRunnableWithProgress runnable) throws java.lang.reflect.InvocationTargetException, java.lang.InterruptedException
run
in interface org.eclipse.jface.operation.IRunnableContext
java.lang.reflect.InvocationTargetException
java.lang.InterruptedException
public void setConnection(IRemoteConnection connection)
connection
- connection that supports the IRemoteFileService servicepublic void setInitialPath(java.lang.String path)
path
- initial pathpublic void setTitle(java.lang.String title)
title
- title to displaypublic void setType(int type)
public void showConnections(boolean enable)
enable
- enable connection display if truepublic void showHiddenCheckbox(boolean showHidden)
showHidden
- show hidden files if truepublic void showLocalSelection(boolean showLocalSelection)
showLocalSelection
- show local files if truepublic void showNewFolderButton(boolean showNewFolderButton)
showNewFolderButton
- show new folder button if true