Package org.springsource.ide.eclipse.commons.internal.content.core

Examples of org.springsource.ide.eclipse.commons.internal.content.core.DescriptorMatcher


    return projectItems;

  }

  protected List<ContentItem> read(File file) throws CoreException {
    DescriptorMatcher matcher = new DescriptorMatcher(getInstallDirectory());
    DescriptorReader reader = new DescriptorReader();
    reader.read(file);
    List<Descriptor> descriptors = reader.getDescriptors();
    List<ContentItem> items = new ArrayList<ContentItem>();

    for (Descriptor descriptor : descriptors) {
      // Verify if the descriptor ID and version match an expected pattern
      // for the descriptor's
      // files. See the matcher for the actual matching criteria.
      if (!matcher.match(descriptor)) {
        continue;
      }
      ContentItem item = new ContentItem(descriptor.getId());
      item.setLocalDescriptor(descriptor);
      items.add(item);
View Full Code Here

TOP

Related Classes of org.springsource.ide.eclipse.commons.internal.content.core.DescriptorMatcher

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.