|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IRemoteFileDialogTools

Set of useful methods to open platform specific file dialogs
| Field Summary | |
|---|---|
static int |
MULTI
Style constant for multi-selection behavior in lists and multiple line support on text fields (value is 1<<1=2). |
static int |
OPEN
The FileDialog style constant for open file dialog behavior (value is 1<<12=4096). |
static int |
SAVE
The FileDialog style constant for save file dialog behavior (value is 1<<13=8192). |
static int |
SINGLE
Style constant for single selection behavior in lists and single line support on text fields (value is 1<<2=4). |
| Method Summary | |
|---|---|
java.lang.String |
showDirectoryDialog(java.lang.String filterPath,
java.lang.String msg)
Displays a dialog to select a directory |
java.lang.String[] |
showFileDialog(int type,
java.lang.String[] filterNames,
java.lang.String[] filterExt,
int filterIndex,
java.lang.String filterPath,
java.lang.String fileName,
boolean overwrite,
java.lang.String dlgText)
Most powerful method to open a file dialog. |
java.lang.String |
showFileOpenDialog()
Opens a simple open dialog with default title and no filter |
java.lang.String |
showFileSaveDialog(java.lang.String defaultFileName,
boolean overwrite)
Opens a simple save dialog with default title and no filter |
| Field Detail |
|---|
static final int OPEN
static final int SAVE
static final int MULTI
static final int SINGLE
| Method Detail |
|---|
java.lang.String[] showFileDialog(int type,
java.lang.String[] filterNames,
java.lang.String[] filterExt,
int filterIndex,
java.lang.String filterPath,
java.lang.String fileName,
boolean overwrite,
java.lang.String dlgText)
throws RemoteEclipseAPIException
type - bit combination of OPEN, SAVE, MULTI and SINGLEfilterNames - Sets the names that describe the filter extensions which the dialog will use to filter the files it shows to the argument. Or use null to not define filter namesfilterExt - Set the file extensions which the dialog will use to filter the files it shows to the argument. For filters with multiple extensions, use semicolon as a separator, e.g. "*.jpg;*.png". Or use null to not define filter extensionsfilterIndex - Set the 0-based index of the file extension filter which the dialog will use initially to filter the files it shows to the argument. This is an index into the FilterExtensions array and the FilterNames array, or -1 to not set the indexfilterPath - Sets the directory path that the dialog will use or nullfileName - filename that should be displayed as default or nulloverwrite - Sets the flag that the dialog will use to determine whether to prompt the user for file overwrite if the selected file already existsdlgText - title of the file dialog or null to use default
null, if the dialog has been canceled
RemoteEclipseAPIException
java.lang.String showFileOpenDialog()
throws RemoteEclipseAPIException
null
RemoteEclipseAPIException
java.lang.String showFileSaveDialog(java.lang.String defaultFileName,
boolean overwrite)
throws RemoteEclipseAPIException
defaultFileName - filename that should be displayed as default or nulloverwrite - Sets the flag that the dialog will use to determine whether to prompt the user for file overwrite if the selected file already exists
null
RemoteEclipseAPIException
java.lang.String showDirectoryDialog(java.lang.String filterPath,
java.lang.String msg)
throws RemoteEclipseAPIException
filterPath - Sets the path that the dialog will use to filter the directories it shows to the argument, which may be null. If the string is null, then the operating system's default filter path will be used.msg - Sets the dialog's message, which is a description of the purpose for which it was opened. This message will be visible on the dialog while it is open, can be null
RemoteEclipseAPIException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||