Package org.eclipse.pde.internal.core

Examples of org.eclipse.pde.internal.core.FeatureModelManager


  @SuppressWarnings( { "unchecked" })
  public Object[] getFeatures()
  {
    final IProject[] projects = ResourcesPlugin.getWorkspace().getRoot().getProjects();
    final ArrayList models = new ArrayList();
    final FeatureModelManager manager = PDECore.getDefault().getFeatureModelManager();
    for (int i = 0; i < projects.length; i++)
    {
      final IFeatureModel model = manager.findFeatureModel(projects[i].getName());
      if (model != null)
      {
        models.add(model);
      }
    }
View Full Code Here


  @SuppressWarnings("unchecked")
  private IFeatureModel[] getFeatures(final IProduct prod)
  {
    final ArrayList list = new ArrayList();
    final FeatureModelManager manager = PDECore.getDefault().getFeatureModelManager();
    final IProductFeature[] features = prod.getFeatures();
    for (int i = 0; i < features.length; i++)
    {
      final IFeatureModel model = manager.findFeatureModel(features[i].getId(), features[i].getVersion());
      if (model != null)
        list.add(model);
    }
    return (IFeatureModel[]) list.toArray(new IFeatureModel[list.size()]);
  }
View Full Code Here

     *            the update site model
     * @return the features or an empty array if not features can be found
     */
    public IFeatureModel[] getFeatures(ISiteModel updateSiteModel) {
        final List<IFeatureModel> models = new ArrayList<IFeatureModel>();
        final FeatureModelManager manager = PDECore.getDefault().getFeatureModelManager();
        for (ISiteFeature siteFeature : updateSiteModel.getSite().getFeatures()) {
            final IFeatureModel model = manager.findFeatureModel(siteFeature.getId());
            if (model != null) {
                models.add(model);
            }
        }
        return models.toArray(new IFeatureModel[models.size()]);
View Full Code Here

TOP

Related Classes of org.eclipse.pde.internal.core.FeatureModelManager

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.