FileParameterpublic class FileParameter extends DirectoryParameter This class inherits from the DirectoryParameter class and appears the same,
except for the dialog box that it opens.
The reason for this is not because it is logically an extension of the
DirectoryParameter class, but because it's better to leave the existing code
where it is (for the sake of browsing CVS history). |
Fields Summary |
---|
protected String[] | extension_list |
Methods Summary |
---|
protected java.lang.String | getBrowseImageResource()We don't have a better resource for this at the moment.
return "openFolderButton";
| protected java.lang.String | openDialog(org.eclipse.swt.widgets.Shell shell, java.lang.String old_value)
FileDialog dialog = new FileDialog(shell, SWT.APPLICATION_MODAL);
dialog.setFilterPath(old_value);
if (this.extension_list != null) {
dialog.setFilterExtensions(this.extension_list);
}
return dialog.open();
|
|