加快 PDE 编辑-编译-调试周期

发布于 2024-08-23 04:58:00 字数 79 浏览 3 评论 0原文

关于运行和测试 Eclipse 插件(在 PDE 内)的更有效方法,是否有任何容易实现的成果?除了精简 Eclipse 配置之外,这已经完成了。

Are there any low-hanging fruit regarding some more efficient way to run and test Eclipse-plugins (within the PDE)? Besides slimming down the Eclipse-configuration, which has already been done.

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

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

发布评论

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

评论(3

梦忆晨望 2024-08-30 04:58:00

我通常会最小化启动配置本身(不确定这是否是您正在做的事情)。我是这样做的:

  1. 创建一个新的启动配置
  2. 转到“插件”选项卡
  3. 选择“启动方式:” -> “仅在下面选择的插件”
  4. 单击“取消全选”
  5. 仅选择您正在工作区中调试的插件
  6. 可选:您可以取消选中“包括可选依赖项...”
  7. 单击“添加所需的插件”
  8. 保存配置和启动

现在,这可能在第一次拍摄中不起作用。这可能意味着您定义的依赖项存在问题。这也是一个很好的测试。修复它,重新启动,它应该运行得更顺畅。

I usually minimize my launch configuration itself (not sure if that is what you are doing). Here's how I do it:

  1. Create a new launch configuration
  2. Go to the "Plug-ins" tab
  3. Select "Launch With:" -> "Plug-ins selected below only"
  4. Click on "Deselect All"
  5. Select only the plug-ins you are debugging from your workspace
  6. Optional: You can uncheck "Include optional dependencies..."
  7. Click on "Add Required Plug-ins"
  8. Save the configuration and launch

Now, this might not work in the first shot. This probably means you have an issue with the defined dependencies. This is also a good test for that as well. Fix it, relaunch, and it should run much smoother.

寄风 2024-08-30 04:58:00

我使用 Launch As: Eclipse Application,我不认为它太糟糕。我发现更改plugin.xml(或fragment.xml)总是需要您退出并重新生成以获取更改,但更改Java并不总是如此,因为更改通常可以热交换。(PDE是善于在无法做到的时候警告你。)

I use Launch As: Eclipse Application and I don't find it to be too bad. I've found that changing the plugin.xml (or fragment.xml) always requires you to quit and respawn to pick up the changes, but changing Java doesn't always as the changes can often be hot-swapped in. (PDE is good at warning you when it can't.)

以往的大感动 2024-08-30 04:58:00

我希望 Eclipse 能够将我的插件动态插入到运行环境中——它可以使用常规插件来做到这一点。至于加快编辑-编译-调试周期,我通常在小型 SWT / Swing 应用程序中对我的工作进行原型设计,然后将它们集成到完整的产品中,但这在很多情况下可能行不通。

I'd like it if Eclipse could dynamically insert my plug-ins into the running environment -- it can do this with regular plug-ins. As for speeding up the edit-compile-debug cycle, I normally prototype my work in small SWT / Swing applications before integrating them into the full product, but this might not work in a lot of cases.

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