private static String getVersionAttribute(IBundle bundle) { int manifestVersion = BundlePluginBase.getBundleManifestVersion(bundle); return (manifestVersion < 2) ? ICoreConstants.PACKAGE_SPECIFICATION_VERSION : Constants.VERSION_ATTRIBUTE; }
protected int getManifestVersion() { return BundlePluginBase.getBundleManifestVersion(fBundle); }
private String getVersionAttribute(IBundle bundle) { int manifestVersion = BundlePluginBase.getBundleManifestVersion(bundle); return (manifestVersion < 2) ? ICoreConstants.PACKAGE_SPECIFICATION_VERSION : Constants.VERSION_ATTRIBUTE; }
private static String getExportedPackageHeader(IBundle bundle) { int manifestVersion = BundlePluginBase.getBundleManifestVersion(bundle); return (manifestVersion < 2) ? ICoreConstants.PROVIDE_PACKAGE : Constants.EXPORT_PACKAGE; }
protected int getManifestVersion() { return BundlePluginBase.getBundleManifestVersion(fBundle); }
protected String getVersionAttribute() { int manifestVersion = BundlePluginBase.getBundleManifestVersion(getBundle()); return (manifestVersion < 2) ? ICoreConstants.PACKAGE_SPECIFICATION_VERSION : Constants.VERSION_ATTRIBUTE; }
public String getExportedPackageHeader() { int manifestVersion = BundlePluginBase.getBundleManifestVersion(getBundle()); return (manifestVersion < 2) ? ICoreConstants.PROVIDE_PACKAGE : Constants.EXPORT_PACKAGE; }
protected String getVersionAttribute() { int manifestVersion = BundlePluginBase.getBundleManifestVersion(getBundle()); return (manifestVersion < 2) ? ICoreConstants.PACKAGE_SPECIFICATION_VERSION : Constants.VERSION_ATTRIBUTE; }
private String getVersionAttribute() { int manifestVersion = BundlePluginBase.getBundleManifestVersion(getBundle()); return (manifestVersion < 2) ? ICoreConstants.PACKAGE_SPECIFICATION_VERSION : Constants.VERSION_ATTRIBUTE; }
private String getLazyStateHeaderValue(boolean lazyStart) { if (BundlePluginBase.getBundleManifestVersion(getBundle()) >= 2 && TargetPlatformHelper.getTargetVersion() >= 3.4) return lazyStart ? Constants.ACTIVATION_LAZY : null; return Boolean.toString(lazyStart); }
public boolean isReexported() { int bundleManifestVersion = BundlePluginBase.getBundleManifestVersion(fHeader.getBundle()); if (bundleManifestVersion > 1) return Constants.VISIBILITY_REEXPORT.equals(getDirective(Constants.VISIBILITY_DIRECTIVE)); return "true".equals(getAttribute(ICoreConstants.REPROVIDE_ATTRIBUTE)); //$NON-NLS-1$ }
public boolean isOptional() { int bundleManifestVersion = BundlePluginBase.getBundleManifestVersion(fHeader.getBundle()); if (bundleManifestVersion > 1) return Constants.RESOLUTION_OPTIONAL.equals(getDirective(Constants.RESOLUTION_DIRECTIVE)); return "true".equals(getAttribute(ICoreConstants.OPTIONAL_ATTRIBUTE)); //$NON-NLS-1$ }
public boolean isOptional() { int bundleManifestVersion = BundlePluginBase.getBundleManifestVersion(fHeader.getBundle()); if (bundleManifestVersion > 1) return Constants.RESOLUTION_OPTIONAL.equals(getDirective(Constants.RESOLUTION_DIRECTIVE)); return "true".equals(getAttribute(ICoreConstants.OPTIONAL_ATTRIBUTE)); //$NON-NLS-1$ }
public boolean isReexported() { int bundleManifestVersion = BundlePluginBase.getBundleManifestVersion(fHeader.getBundle()); if (bundleManifestVersion > 1) return Constants.VISIBILITY_REEXPORT.equals(getDirective(Constants.VISIBILITY_DIRECTIVE)); return "true".equals(getAttribute(ICoreConstants.REPROVIDE_ATTRIBUTE)); //$NON-NLS-1$ }
public boolean isOptional() { int manifestVersion = BundlePluginBase.getBundleManifestVersion(getHeader().getBundle()); if (manifestVersion > 1) return Constants.RESOLUTION_OPTIONAL.equals(getDirective(Constants.RESOLUTION_DIRECTIVE)); return "true".equals(getAttribute(ICoreConstants.OPTIONAL_ATTRIBUTE)); //$NON-NLS-1$ }
public boolean isOptional() { int manifestVersion = BundlePluginBase.getBundleManifestVersion(getHeader().getBundle()); if (manifestVersion > 1) return Constants.RESOLUTION_OPTIONAL.equals(getDirective(Constants.RESOLUTION_DIRECTIVE)); return "true".equals(getAttribute(ICoreConstants.OPTIONAL_ATTRIBUTE)); //$NON-NLS-1$ }
private String getLazyStartHeaderName() { if (BundlePluginBase.getBundleManifestVersion(getBundle()) >= 2) { if (TargetPlatformHelper.getTargetVersion() >= 3.4) return Constants.BUNDLE_ACTIVATIONPOLICY; else if (TargetPlatformHelper.getTargetVersion() >= 3.2) return ICoreConstants.ECLIPSE_LAZYSTART; } return ICoreConstants.ECLIPSE_AUTOSTART; }
public void addBundle(String id, String version, boolean exported, boolean optional) { RequireBundleObject element = new RequireBundleObject(this, id); int bundleManifestVersion = BundlePluginBase.getBundleManifestVersion(getBundle()); if (optional) if (bundleManifestVersion > 1) element.setDirective(Constants.RESOLUTION_DIRECTIVE, Constants.RESOLUTION_OPTIONAL); else element.setAttribute(ICoreConstants.OPTIONAL_ATTRIBUTE, "true"); //$NON-NLS-1$ if (exported) if (bundleManifestVersion > 1) element.setDirective(Constants.VISIBILITY_DIRECTIVE, Constants.VISIBILITY_REEXPORT); else element.setAttribute(ICoreConstants.REPROVIDE_ATTRIBUTE, "true"); //$NON-NLS-1$ if (version != null && version.trim().length() > 0) element.setAttribute(Constants.BUNDLE_VERSION_ATTRIBUTE, version.trim()); addManifestElement(element); }
public void setReexported(boolean export) { boolean old = isReexported(); int bundleManifestVersion = BundlePluginBase.getBundleManifestVersion(fHeader.getBundle()); if (export) { if (bundleManifestVersion > 1) setDirective(Constants.VISIBILITY_DIRECTIVE, Constants.VISIBILITY_REEXPORT); else setAttribute(ICoreConstants.REPROVIDE_ATTRIBUTE, "true"); //$NON-NLS-1$ } else { if (bundleManifestVersion > 1) setDirective(Constants.VISIBILITY_DIRECTIVE, null); else setAttribute(ICoreConstants.REPROVIDE_ATTRIBUTE, null); } fHeader.update(); firePropertyChanged(this, Constants.VISIBILITY_DIRECTIVE, Boolean.toString(old), Boolean.toString(export)); }
public void setOptional(boolean optional) { boolean old = isOptional(); int manifestVersion = BundlePluginBase.getBundleManifestVersion(getHeader().getBundle()); if (optional) { if (manifestVersion > 1) setDirective(Constants.RESOLUTION_DIRECTIVE, Constants.RESOLUTION_OPTIONAL); else setAttribute(ICoreConstants.OPTIONAL_ATTRIBUTE, "true"); //$NON-NLS-1$ } else { setDirective(Constants.RESOLUTION_DIRECTIVE, null); setAttribute(ICoreConstants.OPTIONAL_ATTRIBUTE, null); } fHeader.update(); firePropertyChanged(this, Constants.RESOLUTION_DIRECTIVE, Boolean.toString(old), Boolean.toString(optional)); }