Package org.eclipse.core.resources

Examples of org.eclipse.core.resources.IContainer.members()


    try {
      if (parentElement instanceof IContainer) {
        List<Object> r = new LinkedList<Object>();
        // Add all members:
        IContainer container = (IContainer) parentElement;
        IResource[] members = container.members();
        for (IResource member : members) {
          if (member instanceof IContainer && member.isAccessible()
              && !isResourceFiltered(member)) {
            if (member instanceof IProject) { // show only PHP
                              // projects
View Full Code Here


    this.imageList.clear();
    this.fireChanged();
    final IContainer file = this.getFile();
    if ((file != null) && file.exists()) {
      try {
        final IResource[] listFiles = file.members();
        for (final IResource f : listFiles) {
          if (f.getName().charAt(0) == '.') {
            continue;
          }
          final ArrayList<IImageEntry> z = new ArrayList<IImageEntry>();
View Full Code Here

    IContainer container = getContainer(project, config.getOutputDirectory());
    if (!container.exists()) {
      return;
    }
    if (config.isCanClearOutputDirectory()) {
      for (IResource resource : container.members()) {
        resource.delete(IResource.KEEP_HISTORY, monitor);
      }
    } else if (config.isCleanUpDerivedResources()) {
      List<IFile> resources = derivedResourceMarkers.findDerivedResources(container, null);
      for (IFile iFile : resources) {
View Full Code Here

                    getBucket(fileMatch.getFile()).add(fileMatch);
                }
            }
        } else if (object instanceof IContainer) {
            IContainer container = (IContainer) object;
            IResource[] members = container.members();
            for (int i = 0; i < members.length; i++) {
                collectMatches(members[i]);
            }
        } else if (object instanceof IFile) {
            Match[] matches = fResult.getMatches(object);
View Full Code Here

    case IResource.FOLDER:
    case IResource.PROJECT:
      // Do not traverse into sub-folders like ".svn"
      if (root || isJavaIdentifier(resource.getName())) {
        final IContainer container = (IContainer) resource;
        for (final IResource child : container.members()) {
          walkResource(child, false);
        }
      }
      break;
    }
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.