Examples of PluginConverter


Examples of org.eclipse.osgi.service.pluginconversion.PluginConverter

    urlProperties.put("protocol", new String[] {"bundleentry", "bundleresource"}); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
    registrations.add(context.registerService(URLConverter.class.getName(), new URLConverterImpl(), urlProperties));

    registrations.add(AdaptorUtil.register(org.eclipse.osgi.service.environment.EnvironmentInfo.class.getName(), EclipseEnvironmentInfo.getDefault(), context));
    registrations.add(AdaptorUtil.register(PlatformAdmin.class.getName(), adaptor.getPlatformAdmin(), context));
    PluginConverter converter = PluginConverterImpl.getDefault();
    if (converter == null)
      converter = new PluginConverterImpl(adaptor, context);
    registrations.add(AdaptorUtil.register(PluginConverter.class.getName(), converter, context));
    registrations.add(AdaptorUtil.register(CommandProvider.class.getName(), new EclipseCommandProvider(context), context));
    registrations.add(AdaptorUtil.register(org.eclipse.osgi.service.localization.BundleLocalization.class.getName(), new BundleLocalizationImpl(), context));
View Full Code Here

Examples of org.eclipse.osgi.service.pluginconversion.PluginConverter

    urlProperties.put("protocol", new String[] {"bundleentry", "bundleresource"}); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
    registrations.add(context.registerService(URLConverter.class.getName(), new URLConverterImpl(), urlProperties));

    registrations.add(AdaptorUtil.register(org.eclipse.osgi.service.environment.EnvironmentInfo.class.getName(), EclipseEnvironmentInfo.getDefault(), context));
    registrations.add(AdaptorUtil.register(PlatformAdmin.class.getName(), adaptor.getPlatformAdmin(), context));
    PluginConverter converter = PluginConverterImpl.getDefault();
    if (converter == null)
      converter = new PluginConverterImpl(adaptor, context);
    registrations.add(AdaptorUtil.register(PluginConverter.class.getName(), converter, context));
    registrations.add(AdaptorUtil.register(CommandProvider.class.getName(), new EclipseCommandProvider(context), context));
    registrations.add(AdaptorUtil.register(org.eclipse.osgi.service.localization.BundleLocalization.class.getName(), new BundleLocalizationImpl(), context));
View Full Code Here

Examples of org.eclipse.osgi.service.pluginconversion.PluginConverter

    urlProperties.put("protocol", new String[] {"bundleentry", "bundleresource"}); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
    context.registerService(URLConverter.class.getName(), new URLConverterImpl(), urlProperties);

    AdaptorUtil.register(org.eclipse.osgi.service.environment.EnvironmentInfo.class.getName(), EclipseEnvironmentInfo.getDefault(), context);
    AdaptorUtil.register(PlatformAdmin.class.getName(), adaptor.getPlatformAdmin(), context);
    PluginConverter converter = PluginConverterImpl.getDefault();
    if (converter == null)
      converter = new PluginConverterImpl(adaptor, context);
    AdaptorUtil.register(PluginConverter.class.getName(), converter, context);
    AdaptorUtil.register(CommandProvider.class.getName(), new EclipseCommandProvider(context), context);
    AdaptorUtil.register(org.eclipse.osgi.service.localization.BundleLocalization.class.getName(), new BundleLocalizationImpl(), context);
View Full Code Here

Examples of org.eclipse.osgi.service.pluginconversion.PluginConverter

    if (!hasBundleStructure) {
      if (!bundleLocation.isFile() && !new File(bundleLocation, "plugin.xml").exists() //$NON-NLS-1$
          && !new File(bundleLocation, "fragment.xml").exists()) { //$NON-NLS-1$
        return null;
      }
      PluginConverter converter = acquirePluginConverter();
      manifest = converter.convertManifest(bundleLocation, false, null, false, null);
      if (manifest == null || Constants.BUNDLE_SYMBOLICNAME == null) {
        return null;
      }
    }
    try {
View Full Code Here

Examples of org.eclipse.osgi.service.pluginconversion.PluginConverter

  }

  public static PluginConverter acquirePluginConverter() {
    ServiceTracker tracker = new ServiceTracker(bundleContext, PluginConverter.class.getName(), null);
    tracker.open();
    PluginConverter converter = (PluginConverter) tracker.getService();
    tracker.close();
    return converter;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.