Eclipse RCP: Automatically Add Required Plugins

I found that Run Configurations has a “powerful” button on the Plugins tab. This is the "Add required plugins" button. When I deselected all, and then check my plugins in the workspace and click this button, this will help me include a list of suitable dependencies (the minimum required plugins), ready to run (successfully validate).

Now I have a feature-based product. I am already adding my plugins to this function. But it cannot work (no restriction, etc.). How can I add dependencies to my function in the Plug-ins and Fragments editor? Because when I click "Sync" in the .product file, a new collection of dependencies is created based on my feature.xml, which usually does not have enough plugins to run. It is very difficult to add one by one if we have a screencapture from the minimum required list of plugins, as I said above.

The Add Required button on the Dependencies tab of the .product file is not useful in this case.

Thank you in advance!

+4
source share
1 answer

Eclipse offers to initialize the function using the given launch configuration. (Dialog after File-New .. -Feature)

You can create a new function, select the launch configuration, open the resulting "feature.xml" as text (Context menu / Open with), copy the contents of the require section to your old function, delete the new function again.

(There must be a better / more correct way for this)

+2
source

All Articles