| org.eclipse.ui.dialogs.ResourceListSelectionDialog
ResourceListSelectionDialog | public class ResourceListSelectionDialog extends SelectionDialog (Code) | | Shows a list of resources to the user with a text entry field
for a string pattern used to filter the list of resources.
since: 2.1 |
Inner Class :static class ResourceDescriptor implements Comparable | |
Inner Class :class UpdateFilterThread extends Thread | |
Inner Class :class UpdateGatherThread extends Thread | |
Method Summary | |
protected String | adjustPattern() Adjust the pattern string for matching. | protected void | cancelPressed() | public boolean | close() | public void | create() | protected Control | createDialogArea(Composite parent) Creates the contents of this dialog, initializes the
listener and the update thread. | public boolean | getAllowUserToToggleDerived() Returns whether to include a "Show derived resources" checkbox in the dialog. | protected IDialogSettings | getDialogBoundsSettings() | 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. | public 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. |
container | IContainer container(Code) | | |
descriptors | ResourceDescriptor[] descriptors(Code) | | |
descriptorsSize | int descriptorsSize(Code) | | |
folderNames | Table folderNames(Code) | | |
gatherResourcesDynamically | boolean gatherResourcesDynamically(Code) | | |
labelProvider | WorkbenchLabelProvider labelProvider(Code) | | |
okEnabled | boolean okEnabled(Code) | | |
resourceNames | Table resourceNames(Code) | | |
updateFilterThread | UpdateFilterThread updateFilterThread(Code) | | |
updateGatherThread | UpdateGatherThread updateGatherThread(Code) | | |
ResourceListSelectionDialog | public ResourceListSelectionDialog(Shell parentShell, IResource[] resources)(Code) | | Creates a new instance of the class.
Parameters: parentShell - shell to parent the dialog on Parameters: resources - resources to display in the dialog |
ResourceListSelectionDialog | public ResourceListSelectionDialog(Shell parentShell, IContainer container, int typeMask)(Code) | | Creates a new instance of the class. When this constructor is used to
create the dialog, resources will be gathered dynamically as the pattern
string is specified. Only resources of the given types that match the
pattern string will be listed. To further filter the matching resources,
See Also: ResourceListSelectionDialog.select(IResource) Parameters: parentShell - shell to parent the dialog on Parameters: container - container to get resources from Parameters: typeMask - mask containing IResource types to be considered |
adjustPattern | protected String adjustPattern()(Code) | | Adjust the pattern string for matching.
|
cancelPressed | protected void cancelPressed()(Code) | | See Also: org.eclipse.jface.dialogs.Dialog.cancelPressed |
close | public boolean close()(Code) | | See Also: org.eclipse.jface.window.Window.close |
create | public void create()(Code) | | See Also: org.eclipse.jface.window.Window.create |
createDialogArea | protected Control createDialogArea(Composite parent)(Code) | | Creates the contents of this dialog, initializes the
listener and the update thread.
Parameters: parent - parent to create the dialog widgets in |
getAllowUserToToggleDerived | public boolean getAllowUserToToggleDerived()(Code) | | Returns whether to include a "Show derived resources" checkbox in the dialog.
The default is false .
true to include the checkbox, false to omit since: 3.1 |
getDialogBoundsSettings | protected IDialogSettings getDialogBoundsSettings()(Code) | | |
getShowDerived | protected boolean getShowDerived()(Code) | | Returns whether derived resources should be shown in the list.
The default is false .
true to show derived resources, false to hide them since: 3.1 |
okPressed | protected void okPressed()(Code) | | The user has selected a resource and the dialog is closing.
Set the selected resource as the dialog result.
|
refresh | protected void refresh(boolean force)(Code) | | Refreshes the filtered list of resources.
Called when the text in the pattern text entry has changed.
Parameters: force - if true a refresh is forced, if false a refresh onlyoccurs if the pattern has changed since: 3.1 |
select | protected boolean select(IResource resource)(Code) | | Use this method to further filter resources. As resources are gathered,
if a resource matches the current pattern string, this method will be called.
If this method answers false, the resource will not be included in the list
of matches and the resource's children will NOT be considered for matching.
|
setAllowUserToToggleDerived | public void setAllowUserToToggleDerived(boolean allow)(Code) | | Sets whether to include a "Show derived resources" checkbox in the dialog.
Parameters: allow - true to include the checkbox, false to omit since: 3.1 |
setShowDerived | protected void setShowDerived(boolean show)(Code) | | Sets whether derived resources should be shown in the list.
Parameters: show - true to show derived resources, false to hide them since: 3.1 |
updateOKState | protected void updateOKState(boolean state)(Code) | | Update the enabled state of the OK button. To be called when
the resource list is updated.
Parameters: state - the new enabled state of the button |
|
|