net.bpelunit.framework.client.eclipse.dialog.field
Class FileSelector
java.lang.Object
net.bpelunit.framework.client.eclipse.dialog.field.FileSelector
public class FileSelector
- extends Object
Provides methods for selecting a file in the workspace.
- Version:
- $Id$
- Author:
- Philip Mayer
|
Method Summary |
static String |
getFile(org.eclipse.swt.widgets.Shell shell,
String preSelectFile,
org.eclipse.ui.dialogs.ISelectionStatusValidator validator,
org.eclipse.jface.viewers.ViewerFilter filter,
org.eclipse.core.resources.IProject project,
org.eclipse.core.resources.IContainer directory)
Opens a dialog and lets the user select a file from the current project. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileSelector
public FileSelector()
getFile
public static String getFile(org.eclipse.swt.widgets.Shell shell,
String preSelectFile,
org.eclipse.ui.dialogs.ISelectionStatusValidator validator,
org.eclipse.jface.viewers.ViewerFilter filter,
org.eclipse.core.resources.IProject project,
org.eclipse.core.resources.IContainer directory)
- Opens a dialog and lets the user select a file from the current project. The code attempts to
find the file "currentFile" which is assumed to be relative to the current directory and
select it.
The returned file name is relative to the current directory.
- Parameters:
shell - shellpreSelectFile - a file path and name to preselectvalidator - file validator for the file dialogfilter - filters objects in the selection dialogproject - project to be displayed in selection dialogdirectory - directory to be pre-selected in the selection dialog
- Returns:
Copyright © 2013 Leibniz Universität Hannover. All Rights Reserved.