Community
Participate
Working Groups
if (current == null) {
try {
current = manipulatingContext.installBundle(bundleLocation);
if (!version.equals(current.getVersion()) || !symbolicName.equals(current.getSymbolicName()))
if (symbolicName != null && version != null) {
// can happen if, for example, the new version of the bundle is installed
Version v;
// to the same bundle location as the old version
current.update();
v = new Version(version);
if (!symbolicName.equals(current.getSymbolicName()) || !v.equals(current.getVersion())) {
}
} catch (IllegalArgumentException e) {
// invalid version string; should log
e.printStackTrace();
if (Activator.DEBUG)
System.out.println("installed bundle:" + finalList[i]); //$NON-NLS-1$
continue;
if (packageAdminService.getBundleType(bundle) == PackageAdmin.BUNDLE_TYPE_FRAGMENT)
if (bundle.getBundleId() == 0)
bundle.start();