Java Reference
In-Depth Information
Figure 9.3
Eclipse PDE makes it easy to define a target platform from the Aries assembly. This platform
is used for both compiling and running.
Tycho and target platforms
If you're using Tycho to build and generate your own p2 repository, you can—and
probably should—use that repository as your target platform instead, by adding it as
a repository of type
Software site
. Before the IDE will recognize your p2 repository,
you'll also need to follow some extra repository generation steps, creating at least
one category for the repository, and then adding the repository contents to it.
EDITING MANIFESTS
Eclipse
PDE
is a manifest-first
IDE
, and as you'd expect it provides a sophisticated
tabbed editor for bundle manifests (see figure 9.4).
WARNING: REQUIRE-BUNDLE AND ECLIPSE
If you're using Eclipse's
PDE
to
write your bundles, it's easy to inadvertently use
Require-Bundle
instead of
Import-Package
.
Require-Bundle
should only be used in the case of split
packages, and even then other alternatives should be sought! Historically,
Eclipse used
Require-Bundle
internally, and the manifest editor still makes it
slightly easier to require bundles than to import packages by positioning it
more prominently on the dependencies panel.


