0

I want to install some features in the PDE Eclipse runtime, but not in the Eclipse installation.

However, the features actually used by the PDE Eclipse runtime are those selected when starting the runtime. The features installed through ''Help → Install New Software...'' in runtime are not actually used by.

Plug-ins configuration

Installing features in runtime only modifies the p2 profile (${workspace_loc}/.metadata/.plugins/org.eclipse.pde.core/Eclipse Application/.p2/org.eclipse.equinox.p2.engine/profileRegistry/) and does not affect the bundles used (${workspace_loc}/.metadata/.plugins/org.eclipse.pde.core/Eclipse Application/org.eclipse.equinox.simpleconfigurator/bundles.info").

In this case, the features used in the runtime must already be in the installation, and there can be no new ones.

Also, the "Support software installation in the launched application" configuration doesn't do anything but affect how the p2 profile is created, but the p2 profile doesn't work in runtime...

Configuration configuration

It seems impossible to install new features in PDE Eclipse runtime and have them take effect. I think this is a BUG in the implementation of this part of the PDE.

Not sure I'm operating and understanding this correctly, do not hesitate to advise me, thanks!

9
  • 1
    I guess you want to add features to the target platform for your Eclipse-based application, which can be done in the preferences Plug-in Development > Target Platform, or even better via a target platform definition file (see e.g. Eclipse help or tutorial), right? Commented Jun 12 at 12:03
  • When I mentioned "PDE Eclipse runtime", I was referring to running a developing plugin as Eclipse Application (Right-click on "Run As Eclipse Application"). In the "Run" menu item you can configure the "Run Configurations...". If org.eclipse.equinox.p2.user.ui feature is included, then "new features" can be installed from the "Help → Install New Software..." menu in the starting Eclipse Application, but the newly installed features will not be available in runtime anyway. Commented Jun 12 at 12:53
  • 2
    Yes, Run As Eclipse Application uses the things from the active target platform only, not what was installed in a previous run. I don't think this is a bug, but perhaps your expectations are wrong. Or is there any documentation that says otherwise? I guess the only way to analyze/debug p2 is to remotely debug an installation. Commented Jun 12 at 16:13
  • 1
    The documentation is here saying (last paragraph): "The contents of the profile are cleared and recreated on each launch, but if the application is restarted the same profile is kept.". If I understand you correctly, you would like it without "cleared and recreated". Remotely debug RCP application see e.g. stackoverflow.com/q/13385558/6505250 Commented Jun 12 at 19:04
  • 2
    The "Support software installation in the launched application" option has been introduced by commit 6ce14a0. For details see bug #250126. Commented Jun 13 at 8:00

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.