本文整理了Java中org.eclipse.osgi.service.resolver.State.getHighestBundleId()
方法的一些代码示例,展示了State.getHighestBundleId()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。State.getHighestBundleId()
方法的具体详情如下:
包路径:org.eclipse.osgi.service.resolver.State
类名称:State
方法名:getHighestBundleId
[英]Returns the highest bundle ID. The value -1 is returned if no bundles exist in this state.
Note that this method returns the highest bundle ID the ever existed in this this state object. This bundle may have been removed from the state.
[中]返回最高的捆绑ID。如果此状态下不存在捆绑,则返回值-1。
请注意,此方法返回此状态对象中有史以来最高的bundle ID。此捆绑包可能已从状态中删除。
代码示例来源:origin: org.eclipse/org.eclipse.osgi
public long getHighestBundleId() {
return target.getHighestBundleId();
}
代码示例来源:origin: org.jibx.config.3rdparty.org.eclipse/org.eclipse.osgi
public long getHighestBundleId() {
return target.getHighestBundleId();
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.osgi.compatibility.state
public long getHighestBundleId() {
return platformAdmin.getSystemState().getHighestBundleId();
}
代码示例来源:origin: org.eclipse.pde/launching
public boolean isEmpty() {
return fOperation.getState().getHighestBundleId() == -1;
}
代码示例来源:origin: com.github.veithen.cosmos.bootstrap/org.eclipse.osgi.compatibility.state
public long getHighestBundleId() {
return platformAdmin.getSystemState().getHighestBundleId();
}
代码示例来源:origin: org.eclipse/org.eclipse.pde.core
public boolean hasErrors() {
return fState.getHighestBundleId() > -1
&& fState.getBundles().length > fState.getResolvedBundles().length;
}
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.pde.core
public boolean hasErrors() {
if (fState.getHighestBundleId() > -1) {
BundleDescription[] bundles = fState.getBundles();
for (int i = 0; i < bundles.length; i++) {
BundleDescription desc = bundles[i];
if (!desc.isResolved()) {
return true;
} else if (desc.isSingleton()) {
BundleDescription[] dups = fState.getBundles(desc.getSymbolicName());
if (dups.length > 1) {
// more than one singleton
return true;
}
}
}
}
return false;
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.equinox.frameworkadmin.equinox
maxId = state.getHighestBundleId();
} catch (NoSuchMethodError e) {
maxId = getMaxId(state);
代码示例来源:origin: org.eclipse.equinox.frameworkadmin/equinox
maxId = state.getHighestBundleId();
} catch (NoSuchMethodError e) {
maxId = getMaxId(state);
内容来源于网络,如有侵权,请联系作者删除!