The Eclipse platform is a framework for building IDEs, composed of a layer of UI APIs, beginning with the SWT (standard widget toolkit), rising to JFace (which provides more elaborate UI components such as dialogs), and culminating in the Workbench, which is synonymous with the Eclipse UI itself. These make up the large-scale topology of Eclipse; its features are further extended and refined by plug-ins.
Think of the Eclipse platform as a house-building kit that comes with all the materials for the basics: foundation, floors, walls, ceilings, and roof. Eclipse’s plug-ins are the means by which you add the windows, doors, and paint that customize the house.
Eclipse is written in Java, and the plug-ins are Java entities delivered in a .jar (Java Archive) file. The actual connection between a plug-in and Eclipse is described in an XML file. This file carries information such as which other plug-ins this plug-in depends on, which extension point the plug-in connects to (where it hooks into Eclipse), or which classes within the plug-in are associated with each extension point. In short, the XML file defines how the plug-in will be bound to the Eclipse environment.
Each plug-in is stored in its own folder within a special plug-ins directory. When Eclipse starts up, it traverses this directory, reading all the XML files and building an internal registry of all available plug-ins. The plug-ins are not loaded from the start, but are instead loaded only when needed. Once a plug-in is activated, it is never removed.
With this plug-in format, Eclipse 2.1 can deduce how plug-ins are hooked in without having to load any Java code. Consequently, Eclipse launches more quickly than it otherwise would. And because an Eclipse plug-in has no life cycle, you avoid complex life-cycle management issues.
However, because multiple plug-ins can attach to a given extension point, it also means that the first time an action requires one or more plug-ins to be activated, response can be slow as Eclipse activates the series of “attached” plug-ins. In addition, a running Eclipse session will consume more and more memory as plug-ins are loaded over time. Hopefully, the Java VM (virtual machine) garbage collector will mitigate the forever-upward memory usage.
‑ Steve McGarry, Compuware software developer, contributed to this article.
Having trouble installing and setting up Win10? You aren’t alone. Here are many of the most common...
It's all about knowing how to build an open source community -- plus experience running applications in...
Win7 Update scans got you fuming? Here’s how to make the most of Microsoft’s 'magic' speed-up patch
Sponsored by Puppet
Sponsored by Intel
From blockchain to SDN to container management, these rookies made big waves in open source
Working with functional programming requires a shift in your thinking, but has benefits in productivity...
Enterprises know the ability to adapt quickly is essential, but can that agility extend to the core,...
Crypto experts agree it's time to ditch SHA-1 if you haven't already, but also to know where the real...