Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个在 Eclipse 中创建的项目的 IProject 对象。我想知道这个项目是否链接到任何存储库。我需要以编程方式执行此操作。有没有办法获取这些信息?
org.eclipse.team.core.RepositoryProvider有一个getProvider(IProject)静态方法来获取项目的存储库信息。
org.eclipse.team.core.RepositoryProvider
getProvider(IProject)