Package org.eclipse.core.resources

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


    }
    IResource resource = file.getProject().findMember(path);
    if(resource!=null && resource.exists() && resource instanceof IContainer){
      try {
        IContainer container = (IContainer)resource;
        IResource[] children = container.members();
        ArrayList list = new ArrayList();
        for(int i=0;i<children.length;i++){
          // ignore dot files.
          if(children[i].getName().startsWith(".")){
            continue;
View Full Code Here


     */
    protected void addAll(IResource resource) throws CoreException {
        add(resource);
        if (resource instanceof IContainer) {
            IContainer container = (IContainer) resource;
            IResource[] members = container.members(IContainer.EXCLUDE_DERIVED);
            for (IResource child : members) {
                addAll(child);
            }
        }
    }
View Full Code Here

     
    } else if (resource instanceof IContainer) {
      IContainer container = (IContainer) resource;

      try {
        IResource[] members = container.members();
        monitor.beginTask("", members.length); //$NON-NLS-1$
        for (int i = 0; i < members.length; i++) {
          if (monitor != null && !monitor.isCanceled())
            format(new SubProgressMonitor(monitor, 1), members[i]);
        }
View Full Code Here

            result = true;
        }
        else if (resource instanceof IContainer) {
          IContainer container = (IContainer) resource;
          IResource[] members;
          members = container.members();
          for (int i = 0; i < members.length; i++) {
            boolean available = processorAvailable(members[i]);

            if (available) {
              result = true;
View Full Code Here

     
    } else if (resource instanceof IContainer) {
      IContainer container = (IContainer) resource;
     
      try {
        IResource[] members = container.members();
        monitor.beginTask("", members.length);
        for (int i = 0; i < members.length; i++) {
          if (monitor != null && !monitor.isCanceled())
            format(new SubProgressMonitor(monitor, 1), members[i]);
        }
View Full Code Here

            result = true;
        }
        else if (resource instanceof IContainer) {
          IContainer container = (IContainer) resource;
          IResource[] members;
          members = container.members();
          for (int i = 0; i < members.length; i++) {
            boolean available = processorAvailable(members[i]);

            if (available) {
              result = true;
View Full Code Here

      } else if (element instanceof IContainer) {
        if (element instanceof IProject) {
          IContainer container = (IContainer) element;
          if (container.isAccessible()) {
            try {
              IResource[] members = container.members();
              return members;
            } catch (CoreException e) {
              // "Error.CommonResourceDialog.0.1" = "Error in
              // project memeber querying"
              // "Error.CommonResourceDialog.0.2" = "Please refer
View Full Code Here

            try {
              // Filter all the files under the project and only
              // show
              // the folder in the container selection dialog
              List children = new ArrayList();
              IResource[] members = container.members();
              for (int i = 0; i < members.length; i++) {
                if (!members[i].getName().equals(
                    IFileFolderConstants.FOLDER_WEBINF)
                    && !members[i]
                        .getName()
View Full Code Here

                IFileFolderConstants.FOLDER_WEBINF)
                || container.getName().equals(
                    IFileFolderConstants.FOLDER_METAINF)) {
              return false;
            }
            IResource[] members = container.members();
            for (int i = 0; i < members.length; i++) {
              {
                if (select(viewer, members[i].getParent(),
                    members[i])) {
                  return true;
View Full Code Here

        // compare in upper case
        IResource parent = ResourcesPlugin.getWorkspace().getRoot().findMember(getContainerFullPath());
        if (parent instanceof IContainer) {
          IContainer container = (IContainer) parent;
          try {
            IResource[] members = container.members();
            String enteredFileUpper = fileName.toUpperCase();
            for (int i = 0; i < members.length; i++) {
              String resourceUpperName = members[i].getName().toUpperCase();
              if (resourceUpperName.equals(enteredFileUpper)) {
                return members[i].getName();
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.