每个工作区的特定插件 [英] Specific plugins per workspace

查看:86
本文介绍了每个工作区的特定插件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我发现了这篇文章,并想知道是否有办法根据我目前工作的工作空间激活我所有的所有安装的插件。

I came across this post and wondered if there is a way to activate only a few of all of my installed plugins depending on the workspace I currently work in.

例如 - 如果我组织了这样的工作空间

For example - If I organized my workspaces like this

/workspaces
 /java
 /jee
 /php
...

如果我正在工作,我不需要Android-Plugin我的Java EE项目等等。

I don't need the Android-Plugin if I'm working on my Java EE-Projects and so on.

我也来到了这个,建议停用每个工作区的某些功能。但是这不是一个选择,因为显然没有插件被注册为能力。

I also came accross this, suggesting to deactivate some capabilities for each workspace. But this not an option, as apparently no plugin is registered as capability.

谢谢,m

编辑: BTW,我正在使用Eclipse 3.5 Galileo

BTW, I am using Eclipse 3.5 Galileo

推荐答案

也许你可以实现你的目标,但需要很多的定制工作,所以我不会为自己做的:)

Maybe you can achieve your goal but it needs lots of "customization work" so I would not do it for myself :)


  • 创建一个最小的Eclipse安装使用您所有工作区的插件。

  • 为每个工作区创建一个dropins文件夹,并将所有工作区特定的插件放入该文件夹。

  • 为所有工作区创建Eclipse快捷方式,并使用类似于的数据 - 数据_workspacedir_ -vmargs -Dorg.eclipse.equinox.p2.reconciler.dropins.directory = _dropindir _在快捷方式中。

  • 启动eclipse与您的一个新的快捷方式。

  • Create a "minimal" Eclipse install with plugins you use all of your workspaces.
  • Create one dropins folder for every workspace and put all of your "workspace-specific plugins" into that folder.
  • Create an Eclipse shortcut for all workspaces and use something like "-data _workspacedir_ -vmargs -Dorg.eclipse.equinox.p2.reconciler.dropins.directory=_dropindir_" in the shortcut.
  • Start eclipse with one of your new shortcuts.

请注意在这种情况下,您不能在Eclipse中切换工作区,您必须关闭当前的工作区并启动t他是新的使用相应的快捷方式。

Note that in this case you cannot switch workspace within Eclipse, you have to close the current one and start the new one using the corresponding shortcut.

更新:我发现一些Eclipse功能请求,使这种安装更容易,如果他们将实现:

UPDATE: I have found some Eclipse feature request for making this kind of setup easier if they will be implemented:

  • Software Update must allow to install plug-ins into extension location
  • Support for multiple bundle pools

这篇关于每个工作区的特定插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆