Select Resource

Function:

This tool opens the Eclipse Resource Selection dialog box. The tool returns the path to the selected Eclipse resource. It supports mass processing.

Tool Attributes:

Attribute Type Description
Multiple Selection [M] Boolean Specifies whether the dialog enables multiple selections.
Initial Selection [M] Boolean Specifies whether the dialog field is initialized with the selected resource.
Initial Selection Mode [M] Selection Specifies the mode of the initial selection

Valid values are: Last Selection, From Parameter

Prompt Text [M] Boolean Specifies whether a prompt text is expected as input parameter.
Project Natures (regex) [M] Boolean Specifies whether a regex qualifying the project natures is expected as an input parameter.
Project Name (regex) [M] Boolean Specifies whether a regex qualifying the project name is expected as an input parameter.
Selection Resource Type [M] Selection Specifies the Eclipse resource type that can be selected.

Valid values are: Any, Project, Folder, File, From Parameter.

From Parameter means the Eclipse resource type is defined by a tool input parameter.

Parameters:

Parameter Name I/O Type Description
Initial Selection [O] I String Eclipse resource ID(s) to be preselected.

Only enabled if the attribute "Initial Selection" is set to "true" and the attribute "Initial Selection Mode" is set to "From Parameter".

Prompt Text [O] I String Dialog prompt text.
Project Natures (regex) [O] I String A regular expression on project natures to filter projects to be displayed in dialog.
Project Name [O] I String A regular expression on project names to filter projects to be displayed in dialog.
Selection Resource Type [O] I String Type of resources to be selected. Valid values are: any, project, folder, file (only relevant, if the tool attribute "Selection Type" is set to "From Parameter").
Eclipse Path [M] O File/String Eclipse paths to the selected Eclipse resources.

Details:

If the output parameter type is "File", the paths of all selected Eclipse resources are written into the file descriptor.