Ten Tips for Installing Plugins in Eclipse Galileo
Join the DZone community and get the full member experience.Join For Free
eclipse galileo (3.5) has a shiny new plugin installation dialog box. in fact, the whole process went through a complete re-factoring. this has become a tradition in eclipse: 3.3 and 3.4 each had a completely different plugin installation routines.
while the process itself is simpler in galileo, there are still some issues you should be aware of. here are some pitfalls to avoid and tips to make the process smoother. most of these tips are around the install dialog box found under help → install new software .
1. do not "contact all update sites" unless you have to
there's a small check box in the install dialog box labeled " contact all update sites during install to find required software ". on the face of it, it sounds like a very good idea: if you install a plugin and your platform does not have all required plugins, it will simply find them and install automatically.
in reality this has some unwanted side-effects: first, the process may be slower because eclipse may contact more update sites then you intended. some sites may not be that fast for you (especially if you are not in north america). this is not the worse part, though. in this process, eclipse may find other tidbits which are not entirely related (see the next point).
clearly, this process needs perfecting. my suggestion: uncheck this box. if some dependencies are missing you will be notified at the next step and you will not be able to proceed without it. in that case, turn it on and... (read the next section)
2. carefully review what you are about to install
after you select the plugins to install and click next, eclipse performs several checks. the next dialog box is very important. do not dismiss it automatically by clicking next. read the messages and make sure you understand what you are signing.
in some cases, there may be added plugins which are unrelated to what you are about to install and you may choose to remove those (which may not always work).
3. be wary of "grouping items by category"
the next check box to tackle is " group items by category ". this seemingly harmless button does more than you think. true, it will group the items you see by categories, which is something you want. however, if the items on the site are not categorized they will not appear at all, thus, you will not be able to install it.
newer sites are supposed to be categorized (supposed being the key word here). older sites may be uncategorized. this is very confusing for novice users, so be careful. it is also an important note to people building update sites: make sure you categorize your plugins, even if you have just one .
4. a lot is going on in the background
the update sites are contacted in the background. you can see the progress in the lower right corner of your screen. fortunately, in galileo you can actually cancel this process (which used to hang in ganymede). the background fetch may continue after you close the install dialog box, even if you didn't install a thing.
5. installing epp packages
this tip should be in a completely separate article because it is very important and many people are not familiar with it. epp stands for eclipse packaging project . it is the project responsible for creating the eclipse download packages.
when you first download eclipse, you need to select your package: "eclipse ide for java developers", "eclipse ide for php developers", etc. these packages are created as part of the epp.
what if you want an eclipse ide for java & php developers? very simple. start by downloading one of the packages and add the other package from the update site. you can download the java package first and once it is running, do the following:
- go to help → install new software .
- from the sites drop-down, select the site titled " epp package repository "
- select the " epp php feature " and follow the rest of the installation process.
this is a very easy way of getting the entire package into your ide. the same technique can be used to install a 64-bit mac os x package, although such option is not available on the main downloads page. see more details here .
6. drag and drop archives
if you have an archive which contains an update site, you may simply drop it inside the install dialog box to add it to your site list. this works on windows and does not work on mac os x.
7. all sites are kept
keep in mind, that eclipse does not "forget" update sites, unless you specifically ask. for example, if you entered a wrong url or a temporary archive, it will always be there. to remove it, you must go to the " available software sites " preferences page and specifically remove it. you can access this page directly from the install dialog box by clicking the link "available software sites".
the preferences page will show enabled and disabled sites. you can disable a site without deleting it. disabled sites will not be searched when looking for updates or missing plugins. however, you can still find them by typing part of their name in the address box of the install dialog box. there's no need to enable the sites first: once you find the site and select it, it will be enabled automatically.
8. restart after installing a plugin
eclipse is based on a powerful framework called osgi which enables reloading dependencies and plugins. yet, from my experience, there's a chance it won't work. so, although it is possible to continue without restarting, please don't.
uninstalling plugins can be done from about eclipse → installation details → installed software . just pick a feature and click uninstall. you can get to the same dialog box from the install dialog box by clicking on " what is already installed? ".
note that eclipse may still contact update sites and install updates while uninstalling plugins. this is a bug which will hopefully be fixed in future versions. to avoid that, you may disable the update sites in the "available software sites" preferences page.
10. there are other options
the sheer complexity of the plugin installation process created a need and it was clear that this need could be filled by 3rd party tools. personally, i use pulse , which has a free edition, but there are several other good and free options out there.
these tools will replace the standard plugin installation procedure with a more simplified one. they often offer a catalog of plugins which you can just select and install with a simple drag and drop operation and faster servers. it's the end of the infamous "plugin hunt".
specifically in pulse, you can also build and maintain your own configuration which you can install and reinstall with one click. you can also share it with your team. i really recommend looking into these options for novice users and power users alike.
Opinions expressed by DZone contributors are their own.