25

I have two eclipse directories, both are Galileo. One has plugin A installed, the another has plugin B. Now I want to have just one eclipse, is it save to just copy the plugins directory from one of the eclipses to the other?

Ron
  • 7,588
  • 11
  • 38
  • 42
  • seanf gave the best answer. AFAIK just copying plugins into directories is not a good approach. Consider making his answer the correct. – Roland Mar 14 '14 at 17:44

5 Answers5

46

I'm not sure when it was introduced, but in Eclipse 3.7 you can install plug-ins from another Eclipse installation via the GUI: File->Import->Install->From Existing Installation. You can also transfer the list of update sites. See https://stackoverflow.com/a/10494974/14379

Community
  • 1
  • 1
seanf
  • 6,504
  • 3
  • 42
  • 52
5

Yes, but I would recommend using a "shared dropins directory" to avoid the copy altogether.

Modify tour eclipse.ini for both installation:

-Dorg.eclipse.equinox.p2.reconciler.dropins.directory=/<myPath>/mySharedDropins

Sadly, when you originally install a plugin, you cannot install it directly in the shared dropins, so at least one copy is still necessary there.

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
3

Yes, it is safe. This is one way (not the preferred one) to install new plugins.

tangens
  • 39,095
  • 19
  • 120
  • 139
  • Ok, so it works. Nice. I guess I can just zip my plugins folder for backup and copy it back to restore it. – Ron May 20 '10 at 14:40
3

You can also install one plugin from another using p2. You add the other installed Eclipse as an update site, and you can select the installed plug-in (after unchecking the categorization).

For update site you the following path: /path/to/eclipse/p2/org.eclipse.equinox.p2.engine/profileRegistry/SDKProfile.profile

Zoltán Ujhelyi
  • 13,788
  • 2
  • 32
  • 37
0

An alternative to modifying the .ini file is using Link Files in your Dropins folders. The link files are simply text files with the extension .link. They contain a single (I think, never tried with multiple) line of text of the form:

path=<full path to an external folder>

The folder you reference should have two sub-folders: plugins and features, where you install your plugins. You can install multiple plugins in a single location. You can drop multiple link files, which means, you can maintain sets of plugins and drop them into different Eclipse installations (which is more flexible than using a shared dropins).

More information:

zvikico
  • 9,765
  • 4
  • 38
  • 49