为 Eclipse 上的每个项目分配一个透视图
我对某些项目使用 SVN (Subversive),对其他项目使用 git (EGit),因此我为每种类型的项目配置了两个不同的视角。我想知道是否有一种方法可以为每个项目关联一个透视图,以便当我打开它们时透视图会自动更改。
有没有办法(本机或通过插件)来完成此任务?
I'm using SVN (Subversive) for some projects and git (EGit) for others, so I've configured two different perspectives for each type of project. I'd like to know if there's a way to associate a perspective for each project, so that when I open them the perspective is changed automatically.
Is there a way, native or via a plugin, to accomplish this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我相信,即使不是不可能,也是非常困难的。在项目创建时,有时会触发透视变化(例如,创建插件项目会打开 PDE 视图)。否则,不使用一般的透视打开方法。
如果您编写自己的插件,它可以提供所需的开关:通过监听项目的打开,或者通过添加不同的打开项目命令,可以编写更改当前视角的代码。另一方面,我不知道有任何可用的插件。
I believe, it is very hard, if not impossible to do this. At project creation sometimes a perspective change is triggered (e.g. the creation of a plug-in project opens the PDE view). Otherwise, no general perspective opening method is used.
If you write your own plug-in, it could provide the required switch: either by listening to the opening of the project, or by adding a different Open project command, it is possible to write code that changes the current perspective. On the other hand, I don't know any of those plug-ins available.