org.eclipse.osgi.service.resolver.State.getPlatformProperties()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(7.7k)|赞(0)|评价(0)|浏览(140)

本文整理了Java中org.eclipse.osgi.service.resolver.State.getPlatformProperties()方法的一些代码示例,展示了State.getPlatformProperties()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。State.getPlatformProperties()方法的具体详情如下:
包路径:org.eclipse.osgi.service.resolver.State
类名称:State
方法名:getPlatformProperties

State.getPlatformProperties介绍

[英]Returns the list of platform properties currently set for this state.
[中]返回当前为此状态设置的平台属性列表。

代码示例

代码示例来源:origin: org.jibx.config.3rdparty.org.eclipse/org.eclipse.osgi

@SuppressWarnings("rawtypes")
public Dictionary[] getPlatformProperties() {
  return target.getPlatformProperties();
}

代码示例来源:origin: org.eclipse/org.eclipse.osgi

@SuppressWarnings("rawtypes")
public Dictionary[] getPlatformProperties() {
  return target.getPlatformProperties();
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.osgi.compatibility.state

private static String getPlatformProperty(State state, String key) {
  Dictionary<Object, Object>[] platformProps = state == null ? null : state.getPlatformProperties();
  return platformProps == null || platformProps.length == 0 ? null : (String) platformProps[0].get(key);
}

代码示例来源:origin: com.github.veithen.cosmos.bootstrap/org.eclipse.osgi.compatibility.state

private static String getPlatformProperty(State state, String key) {
  Dictionary<Object, Object>[] platformProps = state == null ? null : state.getPlatformProperties();
  return platformProps == null || platformProps.length == 0 ? null : (String) platformProps[0].get(key);
}

代码示例来源:origin: com.github.veithen.cosmos.bootstrap/org.eclipse.osgi.compatibility.state

String getSystemBundle() {
  Dictionary<?, ?>[] platformProperties = state.getPlatformProperties();
  String systemBundle = platformProperties.length == 0 ? null : (String) platformProperties[0].get(StateImpl.STATE_SYSTEM_BUNDLE);
  if (systemBundle == null)
    systemBundle = EquinoxContainer.NAME;
  return systemBundle;
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.osgi.compatibility.state

String getSystemBundle() {
  Dictionary<?, ?>[] platformProperties = state.getPlatformProperties();
  String systemBundle = platformProperties.length == 0 ? null : (String) platformProperties[0].get(StateImpl.STATE_SYSTEM_BUNDLE);
  if (systemBundle == null)
    systemBundle = EquinoxContainer.NAME;
  return systemBundle;
}

代码示例来源:origin: org.eclipse/org.eclipse.osgi

private static String getPlatformProperty(State state, String key) {
  Dictionary<Object, Object>[] platformProps = state == null ? null : state.getPlatformProperties();
  return platformProps == null || platformProps.length == 0 ? null : (String) platformProps[0].get(key);
}

代码示例来源:origin: org.eclipse/org.eclipse.osgi

public VersionHashMap(ResolverImpl resolver) {
  this.resolver = resolver;
  Dictionary<?, ?>[] allProperties = resolver.getState().getPlatformProperties();
  Object preferSystem = allProperties.length == 0 ? "true" : allProperties[0].get("osgi.resolver.preferSystemPackages"); //$NON-NLS-1$//$NON-NLS-2$
  if (preferSystem == null)
    preferSystem = "true"; //$NON-NLS-1$
  preferSystemPackages = Boolean.valueOf(preferSystem.toString()).booleanValue();
}

代码示例来源:origin: org.eclipse/org.eclipse.osgi

String getSystemBundle() {
  Dictionary<?, ?>[] platformProperties = state.getPlatformProperties();
  String systemBundle = platformProperties.length == 0 ? null : (String) platformProperties[0].get(Constants.STATE_SYSTEM_BUNDLE);
  if (systemBundle == null)
    systemBundle = Constants.getInternalSymbolicName();
  return systemBundle;
}

代码示例来源:origin: com.github.veithen.cosmos.bootstrap/org.eclipse.osgi.compatibility.state

public VersionHashMap(ResolverImpl resolver) {
  this.resolver = resolver;
  Dictionary<?, ?>[] allProperties = resolver.getState().getPlatformProperties();
  Object preferSystem = allProperties.length == 0 ? "true" : allProperties[0].get("osgi.resolver.preferSystemPackages"); //$NON-NLS-1$//$NON-NLS-2$
  if (preferSystem == null)
    preferSystem = "true"; //$NON-NLS-1$
  preferSystemPackages = Boolean.valueOf(preferSystem.toString()).booleanValue();
}

代码示例来源:origin: org.jibx.config.3rdparty.org.eclipse/org.eclipse.osgi

String getSystemBundle() {
  Dictionary<?, ?>[] platformProperties = state.getPlatformProperties();
  String systemBundle = platformProperties.length == 0 ? null : (String) platformProperties[0].get(Constants.STATE_SYSTEM_BUNDLE);
  if (systemBundle == null)
    systemBundle = Constants.getInternalSymbolicName();
  return systemBundle;
}

代码示例来源:origin: org.jibx.config.3rdparty.org.eclipse/org.eclipse.osgi

public VersionHashMap(ResolverImpl resolver) {
  this.resolver = resolver;
  Dictionary<?, ?>[] allProperties = resolver.getState().getPlatformProperties();
  Object preferSystem = allProperties.length == 0 ? "true" : allProperties[0].get("osgi.resolver.preferSystemPackages"); //$NON-NLS-1$//$NON-NLS-2$
  if (preferSystem == null)
    preferSystem = "true"; //$NON-NLS-1$
  preferSystemPackages = Boolean.valueOf(preferSystem.toString()).booleanValue();
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.osgi.compatibility.state

public VersionHashMap(ResolverImpl resolver) {
  this.resolver = resolver;
  Dictionary<?, ?>[] allProperties = resolver.getState().getPlatformProperties();
  Object preferSystem = allProperties.length == 0 ? "true" : allProperties[0].get("osgi.resolver.preferSystemPackages"); //$NON-NLS-1$//$NON-NLS-2$
  if (preferSystem == null)
    preferSystem = "true"; //$NON-NLS-1$
  preferSystemPackages = Boolean.valueOf(preferSystem.toString()).booleanValue();
}

代码示例来源:origin: com.github.veithen.cosmos.bootstrap/org.eclipse.osgi.compatibility.state

public Dictionary[] getPlatformProperties() {
  return platformAdmin.getSystemState().getPlatformProperties();
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.osgi.compatibility.state

public Dictionary[] getPlatformProperties() {
  return platformAdmin.getSystemState().getPlatformProperties();
}

代码示例来源:origin: org.eclipse/org.eclipse.pde.core

protected MinimalState(MinimalState state) {
  this.fState = stateObjectFactory.createState(state.fState);
  this.fState.setPlatformProperties(state.fState.getPlatformProperties());
  this.fState.setResolver(Platform.getPlatformAdmin().getResolver());
  this.fId = state.fId;
  this.fEEListChanged = state.fEEListChanged;
  this.fExecutionEnvironments = state.fExecutionEnvironments;
  this.fNoProfile = state.fNoProfile;
}

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.pde.core

protected MinimalState(MinimalState state) {
  this.fState = stateObjectFactory.createState(state.fState);
  this.fState.setPlatformProperties(state.fState.getPlatformProperties());
  this.fState.setResolver(Platform.getPlatformAdmin().createResolver());
  this.fId = state.fId;
  this.fEEListChanged = state.fEEListChanged;
  this.fExecutionEnvironments = state.fExecutionEnvironments;
  this.fNoProfile = state.fNoProfile;
  this.fSystemBundle = state.fSystemBundle;
}

代码示例来源:origin: org.eclipse/org.eclipse.pde.core

protected void copyState(State state) {
  fStateCopy = state.getFactory().createState(state);
  fStateCopy.setResolver(Platform.getPlatformAdmin().getResolver());
  fStateCopy.setPlatformProperties(state.getPlatformProperties());
}

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.pde.core

protected void copyState(State state) {
  fStateCopy = state.getFactory().createState(state);
  fStateCopy.setResolver(Platform.getPlatformAdmin().createResolver());
  fStateCopy.setPlatformProperties(state.getPlatformProperties());
}

代码示例来源:origin: com.github.veithen.cosmos.bootstrap/org.eclipse.osgi.compatibility.state

public State createState(State original) {
  StateImpl newState = internalCreateState();
  newState.setTimeStamp(original.getTimeStamp());
  BundleDescription[] bundles = original.getBundles();
  for (int i = 0; i < bundles.length; i++) {
    BundleDescription newBundle = createBundleDescription(bundles[i]);
    newState.basicAddBundle(newBundle);
    DisabledInfo[] infos = original.getDisabledInfos(bundles[i]);
    for (int j = 0; j < infos.length; j++)
      newState.addDisabledInfo(new DisabledInfo(infos[j].getPolicyName(), infos[j].getMessage(), newBundle));
  }
  newState.setResolved(false);
  newState.setPlatformProperties(original.getPlatformProperties());
  return newState;
}

相关文章