| org.eclipse.ui.dialogs.FileSelectionDialog
FileSelectionDialog | public class FileSelectionDialog extends SelectionDialog (Code) | | A standard file selection dialog which solicits a list of files from the user.
The getResult method returns the selected files.
This class may be instantiated; it is not intended to be subclassed.
Example:
FileSelectionDialog dialog =
new FileSelectionDialog(getShell(), rootElement, msg);
dialog.setInitialSelections(selectedResources);
dialog.open();
return dialog.getResult();
|
Constructor Summary | |
public | FileSelectionDialog(Shell parentShell, FileSystemElement fileSystemElement, String message) Creates a file selection dialog rooted at the given file system element. |
Method Summary | |
protected void | configureShell(Shell shell) | public void | create() | protected Control | createDialogArea(Composite parent) | public boolean | getExpandAllOnOpen() Returns whether the tree view of the file system element
will be fully expanded when the dialog is opened. | protected void | okPressed() The FileSelectionDialog implementation of this
Dialog method builds a list of the selected files for later
retrieval by the client and closes this dialog. | public void | setExpandAllOnOpen(boolean expandAll) Set whether the tree view of the file system element
will be fully expanded when the dialog is opened. |
FileSelectionDialog | public FileSelectionDialog(Shell parentShell, FileSystemElement fileSystemElement, String message)(Code) | | Creates a file selection dialog rooted at the given file system element.
Parameters: parentShell - the parent shell Parameters: fileSystemElement - the root element to populate this dialog with Parameters: message - the message to be displayed at the top of this dialog, ornull to display a default message |
configureShell | protected void configureShell(Shell shell)(Code) | | |
create | public void create()(Code) | | |
createDialogArea | protected Control createDialogArea(Composite parent)(Code) | | |
getExpandAllOnOpen | public boolean getExpandAllOnOpen()(Code) | | Returns whether the tree view of the file system element
will be fully expanded when the dialog is opened.
true to expand all on dialog open, false otherwise. |
okPressed | protected void okPressed()(Code) | | The FileSelectionDialog implementation of this
Dialog method builds a list of the selected files for later
retrieval by the client and closes this dialog.
|
setExpandAllOnOpen | public void setExpandAllOnOpen(boolean expandAll)(Code) | | Set whether the tree view of the file system element
will be fully expanded when the dialog is opened.
Parameters: expandAll - true to expand all on dialog open, false otherwise. |
|
|