Get the Source for Your Team Project (Team Explorer Everywhere)

In the Team Foundation Server plug-in for Eclipse, you can import projects or you can use Source Control Explorer to get version-controlled items from the server and populate them into your local workspace. When possible, you should import projects from Package Explorer or Project Explorer. For more information, see Import an Eclipse Project from Team Foundation Server.

Your local workspace is associated with a specific instance of Visual Studio Team Foundation Server. If you have not created a workspace and connected to an instance of Team Foundation Server, you must do so before you follow the steps in this procedure. For more information, see Connect to Team Projects.

Source Control Explorer does not automatically detect changes that were made outside of the Eclipse development environment. Any changes that were made by using the Cross-platform Command-Line Client for Team Foundation Server, for example, do not appear in Source Control Explorer until you click Refresh.

Required Permissions

To perform these procedures, your Create a workspace and Read permissions must be set to Allow. For more information, see Team Foundation Server Permissions on the Microsoft Web site.

To populate a workspace

  1. In Team Explorer, expand the team project for which you want to move files or folders, and double-click the Source Control node.

    For information about how to open Team Explorer, see Open Team Explorer.

  2. In the left pane of Source Control Explorer, click the team project or folder that contains the file or folder that you want to add to the workspace.

    Items that appear dimmed and have a value of Not downloaded in the Latest column have not been copied to your local workspace.

  3. Right-click the folder or file that you want to add to the workspace, and then click either Get Latest Version to copy the most recent version of the items or click Get Specific Version.

    If you click Get Specific Version, the Get dialog box appears.

  4. In the Get dialog box, verify that the file or folder is the one that you want to get, and then specify the type of version that you want to get from the Type list. You can select any of the following types:

    • Changeset - Get a version based on a changeset.

    • Date - Get a version based on a date. If you specify this type, you must also specify a date in the Date list.

    • Label - Get a version based on a label.

    • Latest Version – Get the most recent version from the server for Team Foundation version control.

    • Workspace Version - Get a version based on the workspace.

  5. (Optional) Select the Force get of file versions already in the workspace check box if you want files from the server for Team Foundation version control to overwrite all local files.

  6. (Optional) Select the Overwrite writable files that are not checked out check box if you want to overwrite writeable local files.

    You might select this check box if you had modified a local copy but now want to discard those changes. If you select this check box, files from the server will overwrite all files that do not have the read-only attribute associated with them and are not checked out. Only files on the server that are different will overwrite the files in the local workspace.

  7. Click Get.

    The specified files or folders are copied to your local workspace, and Source Control Explorer is updated.

See Also

Other Resources

Getting a Local Copy of Files from the Version Control Server (Team Explorer Everywhere)