public ConfigData getConfigData() throws FrameworkAdminRuntimeException { loadDelegate(); return manipulator.getConfigData(); }
public ConfigData getConfigData() throws FrameworkAdminRuntimeException { loadDelegate(); return manipulator.getConfigData(); }
private int getStartLevel(int startLevel) { return (startLevel == BundleInfo.NO_LEVEL ? manipulator.getConfigData().getInitialBundleStartLevel() : startLevel); }
private int getStartLevel(int startLevel) { return (startLevel == BundleInfo.NO_LEVEL ? manipulator.getConfigData().getInitialBundleStartLevel() : startLevel); }
public BundleInfo[] getBundlesBeingRun() { return getFrameworkManipulator().getConfigData().getBundles(); }
public IStatus undo(Map<String, Object> parameters) { Manipulator manipulator = (Manipulator) parameters.get(EclipseTouchpoint.PARM_MANIPULATOR); String propName = (String) parameters.get(ActionConstants.PARM_PROP_NAME); if (propName == null) return Util.createError(NLS.bind(Messages.parameter_not_set, ActionConstants.PARM_PROP_NAME, ID)); String previous = (String) getMemento().get(ActionConstants.PARM_PREVIOUS_VALUE); manipulator.getConfigData().setProperty(propName, previous); return Status.OK_STATUS; }
public IStatus undo(Map<String, Object> parameters) { Manipulator manipulator = (Manipulator) parameters.get(EclipseTouchpoint.PARM_MANIPULATOR); String propName = (String) parameters.get(ActionConstants.PARM_PROP_NAME); if (propName == null) return Util.createError(NLS.bind(Messages.parameter_not_set, ActionConstants.PARM_PROP_NAME, ID)); String previous = (String) getMemento().get(ActionConstants.PARM_PREVIOUS_VALUE); manipulator.getConfigData().setProperty(propName, previous); return Status.OK_STATUS; }
public IStatus undo(Map<String, Object> parameters) { Manipulator manipulator = (Manipulator) parameters.get(EclipseTouchpoint.PARM_MANIPULATOR); String propName = (String) parameters.get(ActionConstants.PARM_PROP_NAME); if (propName == null) return Util.createError(NLS.bind(Messages.parameter_not_set, ActionConstants.PARM_PROP_NAME, ID)); String previousValue = (String) getMemento().get(ActionConstants.PARM_PREVIOUS_VALUE); manipulator.getConfigData().setProperty(propName, previousValue); return Status.OK_STATUS; } }
public IStatus undo(Map<String, Object> parameters) { Manipulator manipulator = (Manipulator) parameters.get(EclipseTouchpoint.PARM_MANIPULATOR); String propName = (String) parameters.get(ActionConstants.PARM_PROP_NAME); if (propName == null) return Util.createError(NLS.bind(Messages.parameter_not_set, ActionConstants.PARM_PROP_NAME, ID)); String previous = (String) getMemento().get(ActionConstants.PARM_PREVIOUS_VALUE); manipulator.getConfigData().setProperty(propName, previous); return Status.OK_STATUS; }
public IStatus execute(Map<String, Object> parameters) { Manipulator manipulator = (Manipulator) parameters.get(EclipseTouchpoint.PARM_MANIPULATOR); String propName = (String) parameters.get(ActionConstants.PARM_PROP_NAME); if (propName == null) return Util.createError(NLS.bind(Messages.parameter_not_set, ActionConstants.PARM_PROP_NAME, ID)); String propValue = (String) parameters.get(ActionConstants.PARM_PROP_VALUE); if (propValue != null && propValue.equals(ActionConstants.PARM_AT_ARTIFACT)) { try { propValue = Util.resolveArtifactParam(parameters); } catch (CoreException e) { return e.getStatus(); } } getMemento().put(ActionConstants.PARM_PREVIOUS_VALUE, manipulator.getConfigData().getProperty(propName)); manipulator.getConfigData().setProperty(propName, propValue); return Status.OK_STATUS; }
public IStatus execute(Map<String, Object> parameters) { Manipulator manipulator = (Manipulator) parameters.get(EclipseTouchpoint.PARM_MANIPULATOR); String propName = (String) parameters.get(ActionConstants.PARM_PROP_NAME); if (propName == null) return Util.createError(NLS.bind(Messages.parameter_not_set, ActionConstants.PARM_PROP_NAME, ID)); String propValue = (String) parameters.get(ActionConstants.PARM_PROP_VALUE); if (propValue != null && propValue.equals(ActionConstants.PARM_AT_ARTIFACT)) { try { propValue = Util.resolveArtifactParam(parameters); } catch (CoreException e) { return e.getStatus(); } } getMemento().put(ActionConstants.PARM_PREVIOUS_VALUE, manipulator.getConfigData().getProperty(propName)); manipulator.getConfigData().setProperty(propName, propValue); return Status.OK_STATUS; }
public BundleInfo[] getBundlesBeingRun() { return getFrameworkManipulator().getConfigData().getBundles(); }
public IStatus undo(Map<String, Object> parameters) { Manipulator manipulator = (Manipulator) parameters.get(EclipseTouchpoint.PARM_MANIPULATOR); String propName = (String) parameters.get(ActionConstants.PARM_PROP_NAME); if (propName == null) return Util.createError(NLS.bind(Messages.parameter_not_set, ActionConstants.PARM_PROP_NAME, ID)); String previousValue = (String) getMemento().get(ActionConstants.PARM_PREVIOUS_VALUE); manipulator.getConfigData().setProperty(propName, previousValue); return Status.OK_STATUS; } }
public IStatus undo(Map<String, Object> parameters) { Manipulator manipulator = (Manipulator) parameters.get(EclipseTouchpoint.PARM_MANIPULATOR); String propName = (String) parameters.get(ActionConstants.PARM_PROP_NAME); if (propName == null) return Util.createError(NLS.bind(Messages.parameter_not_set, ActionConstants.PARM_PROP_NAME, ID)); String previous = (String) getMemento().get(ActionConstants.PARM_PREVIOUS_VALUE); manipulator.getConfigData().setProperty(propName, previous); return Status.OK_STATUS; }
public BundleInfo[] save(Manipulator manipulator, boolean backup) throws IOException { List<BundleInfo> setToInitialConfig = new LinkedList<BundleInfo>(); List<BundleInfo> setToSimpleConfig = new LinkedList<BundleInfo>(); ConfigData configData = manipulator.getConfigData(); if (!divideBundleInfos(manipulator, setToInitialConfig, setToSimpleConfig, configData.getInitialBundleStartLevel())) return configData.getBundles(); File outputFile = getConfigFile(manipulator); URI installArea = ParserUtils.getOSGiInstallArea(Arrays.asList(manipulator.getLauncherData().getProgramArgs()), manipulator.getConfigData().getProperties(), manipulator.getLauncherData()).toURI(); saveConfiguration(setToSimpleConfig.toArray(new BundleInfo[setToSimpleConfig.size()]), outputFile, installArea, backup); configData.setProperty(SimpleConfiguratorManipulatorImpl.PROP_KEY_CONFIGURL, outputFile.toURL().toExternalForm()); return orderingInitialConfig(setToInitialConfig); }
public BundleInfo[] save(Manipulator manipulator, boolean backup) throws IOException { List setToInitialConfig = new LinkedList(); List setToSimpleConfig = new LinkedList(); ConfigData configData = manipulator.getConfigData(); if (!divideBundleInfos(manipulator, setToInitialConfig, setToSimpleConfig, configData.getInitialBundleStartLevel())) return configData.getBundles(); File outputFile = getConfigFile(manipulator); URI installArea = ParserUtils.getOSGiInstallArea(Arrays.asList(manipulator.getLauncherData().getProgramArgs()), manipulator.getConfigData().getProperties(), manipulator.getLauncherData()).toURI(); saveConfiguration((BundleInfo[]) setToSimpleConfig.toArray(new BundleInfo[setToSimpleConfig.size()]), outputFile, installArea, backup); configData.setProperty(SimpleConfiguratorManipulatorImpl.PROP_KEY_CONFIGURL, outputFile.toURL().toExternalForm()); return orderingInitialConfig(setToInitialConfig); }
public BundleInfo[] save(Manipulator manipulator, boolean backup) throws IOException { List<BundleInfo> setToInitialConfig = new LinkedList<BundleInfo>(); List<BundleInfo> setToSimpleConfig = new LinkedList<BundleInfo>(); ConfigData configData = manipulator.getConfigData(); if (!divideBundleInfos(manipulator, setToInitialConfig, setToSimpleConfig, configData.getInitialBundleStartLevel())) return configData.getBundles(); File outputFile = getConfigFile(manipulator); URI installArea = ParserUtils.getOSGiInstallArea(Arrays.asList(manipulator.getLauncherData().getProgramArgs()), manipulator.getConfigData().getProperties(), manipulator.getLauncherData()).toURI(); saveConfiguration(setToSimpleConfig.toArray(new BundleInfo[setToSimpleConfig.size()]), outputFile, installArea, backup); configData.setProperty(SimpleConfiguratorManipulatorImpl.PROP_KEY_CONFIGURL, outputFile.toURL().toExternalForm()); return orderingInitialConfig(setToInitialConfig); }
private void initialize() { this.bundleInfosList.clear(); LauncherData launcherData = manipulator.getLauncherData(); ConfigData configData = manipulator.getConfigData(); File fwJar = getFwJar(launcherData); if (fwJar == null) throw new IllegalStateException("launcherData.getLauncherConfigFile() == null && fwJar is not set."); //$NON-NLS-1$ // No fw persistent data location is taken into consideration. BundleInfo[] bInfos = configData.getBundles(); for (int j = 0; j < bInfos.length; j++) this.installBundle(bInfos[j]); if (getSystemBundle() == null) { BundleInfo sysBInfo = new BundleInfo(launcherData.getFwJar().toURI(), 0, true); sysBInfo.setBundleId(0); this.installBundle(sysBInfo); } }
private void initialize() { this.bundleInfosList.clear(); LauncherData launcherData = manipulator.getLauncherData(); ConfigData configData = manipulator.getConfigData(); File fwJar = getFwJar(launcherData);; if (fwJar == null) throw new IllegalStateException("launcherData.getLauncherConfigFile() == null && fwJar is not set."); // No fw persistent data location is taken into consideration. BundleInfo[] bInfos = configData.getBundles(); for (int j = 0; j < bInfos.length; j++) this.installBundle(bInfos[j]); if (getSystemBundle() == null) { BundleInfo sysBInfo = new BundleInfo(launcherData.getFwJar().toURI(), 0, true); sysBInfo.setBundleId(0); this.installBundle(sysBInfo); } }
private void initialize() { this.bundleInfosList.clear(); LauncherData launcherData = manipulator.getLauncherData(); ConfigData configData = manipulator.getConfigData(); File fwJar = getFwJar(launcherData); if (fwJar == null) throw new IllegalStateException("launcherData.getLauncherConfigFile() == null && fwJar is not set."); //$NON-NLS-1$ // No fw persistent data location is taken into consideration. BundleInfo[] bInfos = configData.getBundles(); for (int j = 0; j < bInfos.length; j++) this.installBundle(bInfos[j]); if (getSystemBundle() == null) { BundleInfo sysBInfo = new BundleInfo(launcherData.getFwJar().toURI(), 0, true); sysBInfo.setBundleId(0); this.installBundle(sysBInfo); } }