每个工作区禁用Eclipse插件 [英] Disable Eclipse plugins per workspace

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

问题描述

我将Eclipse用于不同的项目,每个项目都有自己的工作区。他们需要相当不同的插件集(SVN vs hg vs git,AppEngine vs Tomcat vs OSGi等),我已经将所有这些插件安装并且始终处于活动状态。我想选择性地禁用每个工作区的插件。

解决方案

Eclipse(3.6 / 3.7)有一个用于禁用某些插件。它在启动时激活的窗口 - >首选项 - >常规 - >启动和关闭 - >插件。但是并不是所有的插件都列在这里。



要禁用其他插件:



可以单独配置osgi.configuration.area)目录:
http://help.eclipse.org/indigo/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Freference%2Fmisc%2Fruntime-options .html%23osgiconfigurationarea



只需将eclipse_dir /配置复制到新位置即可。
为每个工作区创建启动器,并将参数添加到工作区特定的启动器,例如:
-data workspace_location -configuration new_location_for_configuration_dir。



您可以通过从configuration_directory / org.eclipse.equinox.simpleconfigurator / bundles.info文件中删除它的行来禁用osgi包(不同于插件)。



config.ini文件在自定义配置目录中必须包含以下行:

  osgi.configuration.cascaded = false 


I use Eclipse for different projects, each with its own workspace. They need quite a different set of plugins (SVN vs hg vs git, AppEngine vs Tomcat vs OSGi, and so on), and I have all those plugins installed and active all the time, which clutters the workspace quite a bit. I'd like to selectively disable plugins for each workspace.

解决方案

Eclipse (3.6/3.7) has a UI for disabling some plugins. It's under Window->Preferences->General->Startup and Shutdown->Plugins activated on startup. However not all plugins are listed here.

To disable other plugins:

It's possible to have separate configuration (osgi.configuration.area) directories: http://help.eclipse.org/indigo/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Freference%2Fmisc%2Fruntime-options.html%23osgiconfigurationarea

Simply copy eclipse_dir/configuration to a new location. Make launchers for each of your workspace and add parameters to your workspace specific launcher, for example: -data workspace_location -configuration new_location_for_configuration_dir .

You can disable osgi bundles (not same as plugins) by removing it's line from configuration_directory/org.eclipse.equinox.simpleconfigurator/bundles.info file.

The config.ini file in the custom configuration directory must contain this line:

osgi.configuration.cascaded=false

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

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