@SuppressWarnings("rawtypes") public Dictionary[] getPlatformProperties() { return target.getPlatformProperties(); }
@SuppressWarnings("rawtypes") public Dictionary[] getPlatformProperties() { return target.getPlatformProperties(); }
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); }
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); }
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; }
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; }
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); }
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(); }
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; }
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(); }
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; }
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(); }
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(); }
public Dictionary[] getPlatformProperties() { return platformAdmin.getSystemState().getPlatformProperties(); }
public Dictionary[] getPlatformProperties() { return platformAdmin.getSystemState().getPlatformProperties(); }
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; }
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; }
protected void copyState(State state) { fStateCopy = state.getFactory().createState(state); fStateCopy.setResolver(Platform.getPlatformAdmin().getResolver()); fStateCopy.setPlatformProperties(state.getPlatformProperties()); }
protected void copyState(State state) { fStateCopy = state.getFactory().createState(state); fStateCopy.setResolver(Platform.getPlatformAdmin().createResolver()); fStateCopy.setPlatformProperties(state.getPlatformProperties()); }
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; }