|
Eclipse Platform Release 3.1 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jface.window.Window
org.eclipse.jface.dialogs.Dialog
org.eclipse.ui.dialogs.SelectionDialog
org.eclipse.ui.dialogs.ResourceListSelectionDialog
Shows a list of resources to the user with a text entry field for a string pattern used to filter the list of resources.
Nested Class Summary |
---|
Nested classes inherited from class org.eclipse.jface.window.Window |
---|
Window.IExceptionHandler |
Field Summary |
---|
Fields inherited from class org.eclipse.jface.dialogs.Dialog |
---|
blockedHandler, buttonBar, dialogArea, DLG_IMG_ERROR, DLG_IMG_INFO, DLG_IMG_MESSAGE_ERROR, DLG_IMG_MESSAGE_INFO, DLG_IMG_MESSAGE_WARNING, DLG_IMG_QUESTION, DLG_IMG_WARNING, ELLIPSIS |
Fields inherited from class org.eclipse.jface.window.Window |
---|
CANCEL, OK |
Constructor Summary | |
---|---|
ResourceListSelectionDialog(Shell parentShell,
IContainer container,
int typeMask)
Creates a new instance of the class. |
|
ResourceListSelectionDialog(Shell parentShell,
IResource[] resources)
Creates a new instance of the class. |
Method Summary | |
---|---|
protected String |
adjustPattern()
Adjust the pattern string for matching. |
protected void |
cancelPressed()
Notifies that the cancel button of this dialog has been pressed. |
boolean |
close()
Closes this window, disposes its shell, and removes this window from its window manager (if it has one). |
void |
create()
Creates this window's widgetry in a new top-level shell. |
protected Control |
createDialogArea(Composite parent)
Creates the contents of this dialog, initializes the listener and the update thread. |
boolean |
getAllowUserToToggleDerived()
Returns whether to include a "Show derived resources" checkbox in the dialog. |
protected boolean |
getShowDerived()
Returns whether derived resources should be shown in the list. |
protected void |
okPressed()
The user has selected a resource and the dialog is closing. |
protected void |
refresh(boolean force)
Refreshes the filtered list of resources. |
protected boolean |
select(IResource resource)
Use this method to further filter resources. |
void |
setAllowUserToToggleDerived(boolean allow)
Sets whether to include a "Show derived resources" checkbox in the dialog. |
protected void |
setShowDerived(boolean show)
Sets whether derived resources should be shown in the list. |
protected void |
updateOKState(boolean state)
Update the enabled state of the OK button. |
Methods inherited from class org.eclipse.ui.dialogs.SelectionDialog |
---|
configureShell, createButtonsForButtonBar, createMessageArea, getInitialElementSelections, getInitialSelections, getMessage, getOkButton, getResult, setInitialElementSelections, setInitialSelections, setMessage, setResult, setSelectionResult, setTitle |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ResourceListSelectionDialog(Shell parentShell, IResource[] resources)
parentShell
- shell to parent the dialog onresources
- resources to display in the dialogpublic ResourceListSelectionDialog(Shell parentShell, IContainer container, int typeMask)
parentShell
- shell to parent the dialog oncontainer
- container to get resources fromtypeMask
- mask containing IResource types to be consideredselect(IResource)
Method Detail |
protected String adjustPattern()
protected void cancelPressed()
Dialog
The Dialog
implementation of this framework method sets
this dialog's return code to Window.CANCEL
and closes the
dialog. Subclasses may override if desired.
cancelPressed
in class Dialog
Dialog.cancelPressed()
public boolean close()
Window
This framework method may be extended (super.close
must
be called).
close
in class Dialog
Window.close()
public void create()
Window
The default implementation of this framework method creates this window's
shell (by calling createShell
), and its controls (by
calling createContents
), then initializes this window's
shell bounds (by calling initializeBounds
).
create
in class Dialog
Window.create()
protected Control createDialogArea(Composite parent)
createDialogArea
in class Dialog
parent
- parent to create the dialog widgets in
public boolean getAllowUserToToggleDerived()
false
.
true
to include the checkbox, false
to omitpublic void setAllowUserToToggleDerived(boolean allow)
allow
- true
to include the checkbox, false
to omitprotected boolean getShowDerived()
false
.
true
to show derived resources, false
to hide themprotected void setShowDerived(boolean show)
show
- true
to show derived resources, false
to hide themprotected void okPressed()
okPressed
in class Dialog
protected boolean select(IResource resource)
protected void refresh(boolean force)
force
- if true
a refresh is forced, if false
a refresh only
occurs if the pattern has changedprotected void updateOKState(boolean state)
state
- the new enabled state of the button
|
Eclipse Platform Release 3.1 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2005. All rights reserved.