为 Eclipse 上的每个项目分配一个透视图

发布于 2024-12-25 06:02:01 字数 148 浏览 4 评论 0原文

我对某些项目使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

甜中书 2025-01-01 06:02:01

我相信,即使不是不可能,也是非常困难的。在项目创建时,有时会触发透视变化(例如,创建插件项目会打开 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文