|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectDialog
org.csstudio.ui.util.dialogs.ResourceSelectionDialog
public final class ResourceSelectionDialog
This class represents a Dialog to choose a file in the workspace.
Constructor Summary | |
---|---|
ResourceSelectionDialog(Shell parentShell,
java.lang.String dialogMessage,
java.lang.String[] fileExtensions)
Creates an input dialog with OK and Cancel buttons. |
Method Summary | |
---|---|
protected void |
configureShell(Shell shell)
|
protected Control |
createDialogArea(Composite parent)
|
IPath |
getSelectedResource()
Returns the path to the selected resource. |
void |
handleEvent(Event event)
|
protected void |
okPressed()
|
void |
setSelectedResource(IPath path)
Sets the initially selected resource. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ResourceSelectionDialog(Shell parentShell, java.lang.String dialogMessage, java.lang.String[] fileExtensions)
Note that the open
method blocks for input dialogs.
parentShell
- the parent shell, or null
to create a top-level
shelldialogMessage
- the dialog message, or null
if nonefileExtensions
- the file extensions of files to show in the dialog. Use an
empty array or null
to show only containers
(folders).Method Detail |
---|
public void setSelectedResource(IPath path)
path
- the path to the initially selected resource.protected void configureShell(Shell shell)
protected Control createDialogArea(Composite parent)
protected void okPressed()
public IPath getSelectedResource()
null
if no
resource was selected.public void handleEvent(Event event)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |