如何组织 Eclipse - 工作区 VS 编程语言
我使用 Eclipse 进行 PHP (PDT)、Python 编程,有时还使用 Android。每种编程语言都需要在 Eclipse 启动后运行许多东西。
当然,我不会同时使用所有这些,我为每一个都有不同的工作空间。有没有什么方法或建议,如何使 Eclipse 在打开定义的工作区时仅运行必要的工具?
例如:
我选择/workspace/www/,因此只有 PDT 工具才会运行
我选择/workspace/android/,这样只会出现Android工具和工具栏中的按钮
出现必须手动从每个工作区中删除所有不需要的东西?或者可以全部删除吗?
I use Eclipse for programming in PHP (PDT), Python and sometimes Android. Each of this programming languages requires to run many things after Eclipse start.
Of course I do not use all of them at one moment, I have different workspace for each of those. Is there any way, or recommendation, how to make Eclipse to run only neccessary tools when opening defined workspace?
e.g.:
I choose /workspace/www/, so then only PDT tools will run
I choose /workspace/android/, so then only Android tools and buttons in toolbars will appears
Do I have to manually remove all unneccessary things from each of the workspace? Or it is either possible to remove all?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
插件存储在 Eclipse 安装中,而不是工作区文件夹中。因此,一种解决方案是为每个任务安装不同的 Eclipse,在这种情况下,仅加载所需的插件(而其他插件不可用),另一方面,您必须维护至少三个并行的 Eclipse 安装。
另一种解决方案是在启动时禁用插件激活:在首选项/常规/启动和关闭中,您可以禁用不加载的单个插件。这种方法的问题是,这只有助于不加载插件,但其菜单和工具栏贡献将被加载。
The plug-ins are stored in the Eclipse installation, not in the workspace folder. So one solution would be to different Eclipse installations for every task, in this case only the required plug-ins would load (and the others not available), on the other hand, you have to maintain at least three parallel Eclipse installations.
Another solution is to disable plug-in activation on startup: in Preferences/General/Startup and Shutdown you can disable single plug-ins not loading. The problem with this approach is, that this only helps to not load plug-ins, but its menu and toolbar contributions will be loaded.
我自己没有这样做过......但显然你可以安装一个具有多种配置的 Eclipse:请参阅 这个 stackoverflow 问题。
使用不同的 Eclipse 配置(如链接中所述)将允许您以不同的方式打开 Eclipse,从而仅加载您想要的插件。
I haven't done this myself... but apparently you can have ONE installation of Eclipse with multiple configurations: see this stackoverflow question.
Using different Eclipse configurations (as described in the link) would allow you to open Eclipse differently and thus only load the plugins you want.