Get Eclipse Projects

Function:

This tool returns a file descriptor pointing to a file that contains all Eclipse projects that meet the specified nature and repository provider criterion, if specified.

Note: All closed projects defined in the workspace are returned even if they do not meet the specified nature.

Tool Attribute:

Attribute Type Description
Eclipse Project Matchname String The match name to be used by the tool to identify Eclipse projects. The default value is ECLIPSE_PROJECT.
Repository Provider Filter String The repository provider to be used to filter result of the “Get Eclipse Projects” tool. This attribute is optional. Valid values are, for example, “com.accurev.ide.eclipse.AccuRevProvider” to filter AccuRev projects, “org.tigris.subversion.subclipse.core.svnnature” to filter Subclipse projects or “org.eclipse.egit.core.GitProvider” to filter EGit projects.

Filtering by the 'Repository Provider Filter' attribute is meant to show only projects which are shared by a certain source management system, for example, AccuRev, SVN, GIT, and so on.

How to get the value for the Repository Provider Filter attribute:

Open the Plug-ins view in Enterprise Developer. Find the plug-in of the Repository Provider plug-in that refers to the extension “org.eclipse.team.core.repository”. Normally, the core plug-in of the Repository Provider plug-in refers to the extension.



Open the plug-in and navigate to the “Extensions” tab. Expand the “org.eclipse.team.core.repository” extension and select the “Repository Provider”. The value of the “id:” attribute in the “Extension Element Details box” is the repository provider id that is needed.

Parameters:

Parameter # I/O Type Description
1 [M] I String Specifies a regular expression filtering the Eclipse projects by project nature.
2 [M] O File Specifies file descriptor pointing to the result file containing the returned Eclipse projects.

The output file descriptor should be of type InputStream and have the following structure:

Number Target ID
1 [M] The Eclipse Resource ID of the project.
2 [M] A Match Name identifying the AWM element type.