|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Abstraction layer of the
class. This is needed to exchange the internal file dialog of the FileDialog
SwtGraphFileChooser. For example, the plugin uses a dialog which
restricts the root directory to the currently used workspace.
| Method Summary | |
java.lang.String |
getFileName()
Returns the path of the first file that was selected in the dialog relative to the filter path, or an empty string if no such file has been selected. |
java.lang.String[] |
getFileNames()
Returns a (possibly empty) array with the paths of all files that were selected in the dialog relative to the filter path. |
java.lang.String[] |
getFilterExtensions()
Returns the file extensions which the dialog will use to filter the files it shows. |
java.lang.String[] |
getFilterNames()
Returns a (possibly empty) array with the paths of all files that were selected in the dialog relative to the filter path. |
java.lang.String |
getFilterPath()
Returns the directory path that the dialog will use, or an empty string if this is not set. |
int |
getStyle()
Returns the currently setted style bits, which must not match style bits setted at construction time |
java.lang.String |
open()
Makes the dialog visible and brings it to the front of the display. |
void |
setFilterExtensions(java.lang.String[] extensions)
Set the file extensions which the dialog will use to filter the files it shows to the argument, which may be null. |
void |
setFilterNames(java.lang.String[] names)
Sets the the names that describe the filter extensions which the dialog will use to filter the files it shows to the argument, which may be null. |
void |
setFilterPath(java.lang.String directory)
Sets the directory path that the dialog will use to the argument, which may be null. |
| Method Detail |
public java.lang.String open()
public java.lang.String getFilterPath()
setFilterExtensions(java.lang.String[])public void setFilterPath(java.lang.String directory)
Note that the path string is platform dependent. For convenience, either '/' or '\' can be used as a path separator.
setFilterExtensions(java.lang.String[])public java.lang.String getFileName()
public java.lang.String[] getFileNames()
public int getStyle()
public void setFilterExtensions(java.lang.String[] extensions)
The strings are platform specific. For example, on Windows, an extension filter string is typically of the form "*.extension", where "*.*" matches all files.
extensions - the file extension filterpublic java.lang.String[] getFilterExtensions()
public void setFilterNames(java.lang.String[] names)
names - the list of filter namespublic java.lang.String[] getFilterNames()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||