private Manipulator getFrameworkManipulator() { FrameworkAdmin fwAdmin = getFrameworkAdmin(); if (fwAdmin != null) return fwAdmin.getManipulator(); return null; }
private Manipulator getFrameworkManipulator() { FrameworkAdmin fwAdmin = getFrameworkAdmin(); if (fwAdmin != null) return fwAdmin.getManipulator(); return null; }
/** * Obtains the framework manipulator instance. Throws an exception * if it could not be created. */ private void getFrameworkManipulator() { FrameworkAdmin admin = getFrameworkAdmin(); if (admin == null) throw new RuntimeException("Framework admin service not found"); //$NON-NLS-1$ manipulator = admin.getManipulator(); if (manipulator == null) throw new RuntimeException("Framework manipulator not found"); //$NON-NLS-1$ }
/** * Obtains the framework manipulator instance. Throws an exception * if it could not be created. */ private void getFrameworkManipulator() { FrameworkAdmin admin = getFrameworkAdmin(); if (admin == null) throw new RuntimeException("Framework admin service not found"); //$NON-NLS-1$ manipulator = admin.getManipulator(); if (manipulator == null) throw new RuntimeException("Framework manipulator not found"); //$NON-NLS-1$ }
/** * Obtains the framework manipulator instance. Throws an exception * if it could not be created. */ private void getFrameworkManipulator() { FrameworkAdmin admin = getFrameworkAdmin(); if (admin == null) throw new RuntimeException("Framework admin service not found"); //$NON-NLS-1$ manipulator = admin.getManipulator(); if (manipulator == null) throw new RuntimeException("Framework manipulator not found"); //$NON-NLS-1$ }
/** * If the manifest of the target fw implementation has Constants.BUNDLE_SYMBOLICNAME header, * this constructor should be used. * * @param ManipulatorAdmin * @param Manipulator * @param systemBundleSymbolicName */ public SimpleBundlesState(FrameworkAdmin ManipulatorAdmin, Manipulator Manipulator, String systemBundleSymbolicName) { super(); this.fwAdmin = ManipulatorAdmin; // copy Manipulator object for avoiding modifying the parameters of the Manipulator. this.manipulator = ManipulatorAdmin.getManipulator(); this.manipulator.setConfigData(Manipulator.getConfigData()); this.manipulator.setLauncherData(Manipulator.getLauncherData()); this.systemBundleSymbolicName = systemBundleSymbolicName; this.systemBundleName = null; this.systemBundleVendor = null; initialize(); }
/** * If the manifest of the target fw implementation has not Constants.BUNDLE_SYMBOLICNAME header * but , Constants.BUNDLE_NAME and BUNDLE_VERSION, * this constructor should be used. * * @param ManipulatorAdmin * @param Manipulator * @param systemBundleName * @param systemBundleVender */ public SimpleBundlesState(FrameworkAdmin ManipulatorAdmin, Manipulator Manipulator, String systemBundleName, String systemBundleVender) { super(); this.fwAdmin = ManipulatorAdmin; // copy Manipulator object for avoiding modifying the parameters of the Manipulator. this.manipulator = ManipulatorAdmin.getManipulator(); this.manipulator.setConfigData(Manipulator.getConfigData()); this.manipulator.setLauncherData(Manipulator.getLauncherData()); this.systemBundleSymbolicName = null; this.systemBundleName = systemBundleName; this.systemBundleVendor = systemBundleVender; initialize(); }
Manipulator manipulator = fwAdmin.getManipulator(); ConfigData configData = new ConfigData(null, null, null, null);
/** * If the manifest of the target fw implementation has Constants.BUNDLE_SYMBOLICNAME header, * this constructor should be used. * * @param ManipulatorAdmin * @param Manipulator * @param systemBundleSymbolicName */ public SimpleBundlesState(FrameworkAdmin ManipulatorAdmin, Manipulator Manipulator, String systemBundleSymbolicName) { super(); this.fwAdmin = ManipulatorAdmin; // copy Manipulator object for avoiding modifying the parameters of the Manipulator. this.manipulator = ManipulatorAdmin.getManipulator(); this.manipulator.setConfigData(Manipulator.getConfigData()); this.manipulator.setLauncherData(Manipulator.getLauncherData()); this.systemBundleSymbolicName = systemBundleSymbolicName; this.systemBundleName = null; this.systemBundleVendor = null; initialize(); }
/** * If the manifest of the target fw implementation has Constants.BUNDLE_SYMBOLICNAME header, * this constructor should be used. * * @param ManipulatorAdmin * @param Manipulator * @param systemBundleSymbolicName */ public SimpleBundlesState(FrameworkAdmin ManipulatorAdmin, Manipulator Manipulator, String systemBundleSymbolicName) { super(); this.fwAdmin = ManipulatorAdmin; // copy Manipulator object for avoiding modifying the parameters of the Manipulator. this.manipulator = ManipulatorAdmin.getManipulator(); this.manipulator.setConfigData(Manipulator.getConfigData()); this.manipulator.setLauncherData(Manipulator.getLauncherData()); this.systemBundleSymbolicName = systemBundleSymbolicName; this.systemBundleName = null; this.systemBundleVendor = null; initialize(); }
/** * If the manifest of the target fw implementation has not Constants.BUNDLE_SYMBOLICNAME header * but , Constants.BUNDLE_NAME and BUNDLE_VERSION, * this constructor should be used. * * @param ManipulatorAdmin * @param Manipulator * @param systemBundleName * @param systemBundleVender */ public SimpleBundlesState(FrameworkAdmin ManipulatorAdmin, Manipulator Manipulator, String systemBundleName, String systemBundleVender) { super(); this.fwAdmin = ManipulatorAdmin; // copy Manipulator object for avoiding modifying the parameters of the Manipulator. this.manipulator = ManipulatorAdmin.getManipulator(); this.manipulator.setConfigData(Manipulator.getConfigData()); this.manipulator.setLauncherData(Manipulator.getLauncherData()); this.systemBundleSymbolicName = null; this.systemBundleName = systemBundleName; this.systemBundleVendor = systemBundleVender; initialize(); }
/** * If the manifest of the target fw implementation has not Constants.BUNDLE_SYMBOLICNAME header * but , Constants.BUNDLE_NAME and BUNDLE_VERSION, * this constructor should be used. * * @param ManipulatorAdmin * @param Manipulator * @param systemBundleName * @param systemBundleVender */ public SimpleBundlesState(FrameworkAdmin ManipulatorAdmin, Manipulator Manipulator, String systemBundleName, String systemBundleVender) { super(); this.fwAdmin = ManipulatorAdmin; // copy Manipulator object for avoiding modifying the parameters of the Manipulator. this.manipulator = ManipulatorAdmin.getManipulator(); this.manipulator.setConfigData(Manipulator.getConfigData()); this.manipulator.setLauncherData(Manipulator.getLauncherData()); this.systemBundleSymbolicName = null; this.systemBundleName = systemBundleName; this.systemBundleVendor = systemBundleVender; initialize(); }
private boolean initializeFromConfigFiles() { FrameworkAdmin fwk = LazyManipulator.getFrameworkAdmin(); if (fwk == null) return false; Manipulator manipulator = fwk.getManipulator(); LauncherData launcherData = manipulator.getLauncherData(); launcherData.setFwConfigLocation(configurationFolder != null ? configurationFolder : new File(installFolder, "configuration/config.ini")); //$NON-NLS-1$ launcherData.setHome(installFolder); try { manipulator.load(); } catch (IllegalStateException e) { return false; } catch (FrameworkAdminRuntimeException e) { return false; } catch (IOException e) { return false; } profileId = manipulator.getConfigData().getProperty("eclipse.p2.profile"); //$NON-NLS-1$ p2DataAreaURI = manipulator.getConfigData().getProperty("eclipse.p2.data.area"); //$NON-NLS-1$ return true; }
private boolean initializeFromConfigFiles() { FrameworkAdmin fwk = LazyManipulator.getFrameworkAdmin(); if (fwk == null) return false; Manipulator manipulator = fwk.getManipulator(); LauncherData launcherData = manipulator.getLauncherData(); launcherData.setFwConfigLocation(configurationFolder != null ? configurationFolder : new File(installFolder, "configuration/config.ini")); //$NON-NLS-1$ launcherData.setHome(installFolder); try { manipulator.load(); } catch (IllegalStateException e) { return false; } catch (FrameworkAdminRuntimeException e) { return false; } catch (IOException e) { return false; } profileId = manipulator.getConfigData().getProperty("eclipse.p2.profile"); //$NON-NLS-1$ p2DataAreaURI = manipulator.getConfigData().getProperty("eclipse.p2.data.area"); //$NON-NLS-1$ return true; }