Eclipse 中的个人插件

发布于 2024-08-21 22:34:14 字数 161 浏览 4 评论 0原文

我有一个 eclipse 插件,但我想在工作中使用它。有没有办法让 Eclipse 使用插件文件而不影响其他使用相同中央版本 Eclipse 的人?也许有一些自定义偏好?

谢谢。

编辑:开始赏金。请指定一个逐步的解决方案,因为我对 Eclipse 的内部工作原理不是很有经验。

I own a plugin for eclipse, but I want to use it at work. Is there a way to make eclipse use plugin files without it affecting other people using the same central version of Eclipse? Maybe some custom preferences?

Thanks.

EDIT: Started a bounty. Please specify a step-by-step solution to this, as I'm not very experienced with the inner-workings of eclipse.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(4

回忆凄美了谁 2024-08-28 22:34:14

取决于 Eclipse 的版本。

我发现非常非常奇怪的是,你们都从网络共享同一个 Eclipse 实例,而不是本地安装。

如果确实如此,最肮脏的绕过方法是将插件源放在工作区中,创建一个 Eclipse 插件开发项目,在该运行时项目中启用插件,然后使用运行时 Eclipse 实例而不是原始实例作为主要实例。

Depends on the version of Eclipse.

I find it very very strange that you are all sharing the same instance of Eclipse from the network rather than having a local installation.

If that is indeed the case, the dirtiest bypass is to have your plugin sources in the workspace, create an Eclipse plugin development project, have your plugin enabled in that runtime project, and then use the runtime eclipse instance rather than the original as your primary.

街角迷惘 2024-08-28 22:34:14

有这样的设置一点也不奇怪(例如,我们在我们的大学有这样的设置,并且每个用户的磁盘空间不够大,无法在那里安装您自己的 Eclipse 版本。)

实现此目的的一个简单方法是 dropins 文件夹(我假设您使用的是 Eclipse 3.5 Galileo):

  1. 创建一个 dropins 文件夹(例如,在 Linux/Mac 上:“~/dropins”,在 Windows 上:“C:\dropins”)
  2. 使用以下命令行参数启动 Eclipse:

-Dorg.eclipse.equinox.p2.reconciler.dropins.directory="C:\dropins"

现在只需从命令行启动它,如下所示(首先 cd 到您的 Eclipse 安装,然后):

在 Linux/Mac 上:

./eclipse -Dorg.eclipse.equinox.p2.reconciler.dropins.directory="~/dropins"

在 Windows 上:

eclipse.exe -Dorg.eclipse.equinox.p2.reconciler.dropins.directory="C:\dropins"

在 Windows 上,您还可以通过右键单击 Eclipse 图标并在对话框中添加命令行参数来执行此操作。

It's not strange at all to have such a setup (eg we had this at our university, and the disk space for each user was not large enough to install your own version of Eclipse there.)

An easy way to achieve this is the dropins folder (I assume you're using Eclipse 3.5 Galileo):

  1. Create a dropins folder (eg on Linux/Mac: "~/dropins", on Windows: "C:\dropins")
  2. Start Eclipse with the following command line parameter:

-Dorg.eclipse.equinox.p2.reconciler.dropins.directory="C:\dropins"

Now just start it from the command line like this (cd to your eclipse installation first, then):

On Linux/Mac:

./eclipse -Dorg.eclipse.equinox.p2.reconciler.dropins.directory="~/dropins"

On Windows:

eclipse.exe -Dorg.eclipse.equinox.p2.reconciler.dropins.directory="C:\dropins"

On Windows, you can also do this by right-clicking the Eclipse icon, and add the command line parameter in the dialog.

萌酱 2024-08-28 22:34:14

是的。有多种方法,主要取决于您使用的 Eclipse 版本。但您始终可以在本地安装自己的 Eclipse。始终可以使用从单独目录加载的一组自己的插件。你在哪个平台?您使用的是哪个版本的 Eclipse?

至于 Eclipse 编程,我使用 Java 开发人员指南 Eclipse(第 2 版(仍然涵盖了所有当前的 v3.#,非常好))。它对如何使用多个配置进行了很好的描述。

请参阅第 I 部分 - “管理您的 Eclipse 环境”一章; “管理您的配置”部分(第 191-195 页)。

请小心,因为有关“安装新软件”的 Eclipse 功能是不同 3.# 版本之间变化最大的功能之一(至少就我所注意到的而言)。

Yes, it is. There are several ways, which mostly depends on the version you are using of Eclipse. But you can always install your own Eclipse locally. It is always possible to use a own set of plug-in loaded form a separate directory. Which platform are you on? Which version of Eclipse are you using?

As for Eclipse programming I use The Java Developer's Guide to Eclipse (2nd edition (which still covers all current v3.# very good)). It has a nice description on how multiple configurations can be used.

See part I - Chapter 'Managing Your Eclipse Environment'; section 'Managing Your Configuration' (page 191-195).

Be careful as the Eclipse functionality regarding 'Install new Software', is one of the peaces that has been most changed between the different 3.# version (at least for what I noticed).

独自←快乐 2024-08-28 22:34:14

我会选择最简单的选择:

  1. 安装另一个 Eclipse,但版本相同。

  2. 安装共享 Eclipse 具有的所有功能(您可以使用与共享 Eclipse 相同的更新站点并进行更新)。
    验证您的项目是否正确打开。

  3. 安装您自己的插件。
    再次验证您的项目是否正确打开。

  4. 验证您的项目是否使用共享实例正确打开。

恕我直言,任何配置黑客有一天都会遇到麻烦。

i'd go for the simplest choice:

  1. install another Eclipse, but the same version.

  2. install all features that the shared Eclipse has (you may use the same update sites as the shared one, and update).
    verify that your project opens correctly.

  3. install your own plugin.
    again, verify that your project opens correctly.

  4. verify that your project opens correctly with the shared instance.

IMHO, any config hack will get into trouble some day.

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