Package org.eclipse.pde.core.plugin

Examples of org.eclipse.pde.core.plugin.IPluginModelBase


      if (entry != null) {
        String[] tokens = entry.getTokens();
        for (int i = 0; i < tokens.length; i++) {
          String pluginId = tokens[i];
          // Get PluginModelBase first to resolve system.bundle entry if it exists
          IPluginModelBase model = PluginRegistry.findModel(pluginId);
          if (model != null) {
            BundleDescription bundleDesc = model.getBundleDescription();
            if (added.contains(bundleDesc))
              continue;
            Map<BundleDescription, ArrayList<Rule>> rules = new HashMap<BundleDescription, ArrayList<Rule>>();
            findExportedPackages(bundleDesc, desc, rules);
            addDependency(bundleDesc, added, rules, entries, true);
View Full Code Here


    }
  }
 
  @SuppressWarnings("restriction")
  private JemmyLaunchDef createDef(IProject p) {
    IPluginModelBase productBundle = PDECore.getDefault().getModelManager().findModel(getValue(KEY_TEST_PRODUCT_BUNDLE_ID)+"");
    Set<String> workspace = new HashSet<String>();
    Set<String> target = new HashSet<String>();
   
    calculateBundleDependencies(workspace, target, productBundle.getBundleDescription());
   
    JemmyLaunchDef d = new JemmyLaunchDef();
    d.setProjectName(p.getName());
    d.setJunitClassName(getValue(KEY_PACKAGE_NAME)+"." + getValue(KEY_TEST_SUITE_CLASS));
    d.setTestProductId(getValue(KEY_TEST_PRODUCT_BUNDLE_ID)+".product");
View Full Code Here

    return d;
  }
 
  private void calculateBundleDependencies(Set<String> workspace, Set<String> target, BundleDescription desc) {
    if( ! workspace.contains(desc.getName()) && ! target.contains(desc.getName()) ) {
      IPluginModelBase model = PluginRegistry.findModel(desc);
      IResource resource = model.getUnderlyingResource();
      if( resource == null ) {
        target.add(desc.getName());
      } else {
        workspace.add(desc.getName());
      }
View Full Code Here

                "org.eclipse.ui.workbench",
                "org.eclipse.core.commands",
                "org.eclipse.help",
                "org.eclipse.jface.databinding"
              ));
            IPluginModelBase m = PluginRegistry.findModel("org.eclipse.ui.workbench");
           
            if( m != null ) {
              if( new Version("3.100").compareTo(m.getBundleDescription().getVersion()) < 0 ) {
                l.addAll(Arrays.asList(
                    "javax.annotation",
                    "javax.inject",
                    "org.eclipse.e4.core.commands",
                    "org.eclipse.e4.ui.workbench",
View Full Code Here

TOP

Related Classes of org.eclipse.pde.core.plugin.IPluginModelBase

Copyright © 2018 www.massapicom. 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.