public int compareTo(Bundle other) { long thisBundleId = getBundleId(); long otherBundleId = other.getBundleId(); if (thisBundleId < otherBundleId) return -1; else if (thisBundleId == otherBundleId) return 0; else return 1; }
public void setBundle(Bundle b) { try { MetaTypeInformation mtp = Activator.getMTP(b); jcmInfo.setProvider(mtp, b); } catch (Exception e) { e.printStackTrace(); Activator.log.error("Failed to get MetaTypeInformation from bundle " + b.getBundleId(), e); } }