Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to find list of installed Eclipse features from external program?

I am preparing windows installer for my Eclipse plugin. I want install it into target eclipse product using P2 director. I am targetting only Eclipse 3.5 for now.

Installer should check that prerequisite features/plugins are already installed. I am not sure how to do this check. (Other reason for this check is to choose what other features to install, as I will bundle some prerequisites in the installer).

Easy solution is to look into eclipse/features/ and eclipse/plugins/ directories, but plugins may be installed elsewhere too: dropins directory and linked via links directory.

I would like to get list of installed fetures and plugins from P2 (profile?), if possible. Is there any way to do this? Any better solutions?

like image 577
Peter Štibraný Avatar asked Aug 01 '09 14:08

Peter Štibraný


People also ask

How do I know what Eclipse plugins are installed?

Inside Eclipse, click on 'Help' tab in the left upper corner of the screen and then in 'About Eclipse IDE'. A pop-up window will appear. In the bottom of this window, there are two buttons 'Installation details' and 'Close'. Click on 'Installation details'.

Where all the Eclipse packages are installed?

As far as I know, Eclipse stores its plugins in its installation directory ( eclipse ). They might reside in eclipse/plugins or eclipse/dropins . You can copy the whole eclipse directory from your old box.

How do I extract a plugin from Eclipse?

This needs to be done for every workspace. To remove a plug-in you need to remove the JAR file from the "plugins" directory, located in your Eclipse installation directory. Under Indigo/3.7 the "Help > About Eclipse > Installation Details > Installed Software tab > Uninstall..." option works.

How do I know if Eclipse is installed Windows 10?

Look at Help -> About Eclipse IDE. This will tell which product and version thereof that you have installed.


1 Answers

Have a look at the P2 agent, it does what you are after. Browse the source code to see how it interacts with the repository. You can use the p2 director to streamline the actual installation.

The Equinox Incubator also has a number of useful links

like image 60
Rich Seller Avatar answered Nov 15 '22 06:11

Rich Seller