The question first involves two concepts:
- Eclipse workspace: The workspace for Eclipse is the local code space that needs to be connected when you run eclipse, and projects created in Eclipse are saved in the Eclipse's workspace by default
- TFS workspace: The workspace for TFS is a mapping management manager for source code on the TFS server and source code on the local disk
Switching TFS Workspaces in Eclipse is not as flexible as Team Explorer and must work with the eclipse's workspace to complete. The technical points are:
-You need to map the parent directory of the TFS Server source code project to the workspace root of the local eclipse
-You must follow the steps below to create a mapping relationship for two workspaces:
1. Do not import the project before using tee to connect to the TFS server!!!
2. Use Eclipse to import a project from a TFS server that creates an association between the eclipse's workspace and the TFS workspace during the import process
3. The second time you use Eclipse to open a new workspace, refer to the steps above to import a new project
The following is a description of the procedure (take myeclipse as an example):
Import Project
Repeat this to create a second workspace