Package org.eclipse.core.resources

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


            {
                final IContainer root = this.roots.get( 0 );
               
                try
                {
                    for( IResource child : root.members() )
                    {
                        if( child.isAccessible() )
                        {
                            elements.add( child );
                        }
View Full Code Here


        List<IResource> toRet = new ArrayList<IResource>();
        IContainer parent = initResource.getParent();

        try {
            //Remove the __init__ that originated this request.
            IResource[] members = parent.members();
            ArrayList<IResource> lst = new ArrayList<IResource>(members.length - 1);
            for (int i = 0; i < members.length; i++) {
                IResource resource = members[i];
                if (!PythonPathHelper.isValidInitFile(resource.getName())) {
                    lst.add(resource);
View Full Code Here

                } else if (element instanceof IContainer) {
                    IContainer container = (IContainer) element;
                    if (container.isAccessible()) {
                        try {
                            List children = new ArrayList();
                            IResource[] members = container.members();
                            for (int i = 0; i < members.length; i++) {
                                if (members[i].getType() != IResource.FILE) {
                                    children.add(members[i]);
                                }
                            }
View Full Code Here

            } else if (element instanceof IContainer) {
                IContainer container = (IContainer) element;
                if (container.isAccessible()) {
                    try {
                        List children = new ArrayList();
                        IResource[] members = container.members();
                        for (int i = 0; i < members.length; i++) {
                            if (members[i].getType() != IResource.FILE) {
                                children.add(members[i]);
                            }
                        }
View Full Code Here

            if (container.isAccessible()) {
                try {
                    List<IResource> children = new ArrayList<IResource>();

                    IResource[] members = container.members();

                    for (int i = 0; i < members.length; i++) {

                        if (members[i] instanceof IFile) {
View Full Code Here

    if (variant instanceof GitLocalResourceVariant
        && ((GitLocalResourceVariant) variant).getResource() instanceof IContainer) {
      IContainer resource = (IContainer) ((GitLocalResourceVariant) variant)
          .getResource();
      try {
        IResource[] children = resource.members();
        IResourceVariant[] result = new IResourceVariant[children.length];
        for (int i = 0; i < children.length; i++)
          result[i] = new GitLocalResourceVariant(children[i]);
        return result;
      } catch (CoreException e) {
View Full Code Here

  private static boolean hasContainerAnyFiles(IResource resource) {
    if (resource instanceof IContainer) {
      IContainer container = (IContainer) resource;
      try {
        return anyFile(container.members());
      } catch (CoreException e) {
        // if can't get any info, treat as with file
        return true;
      }
    }
View Full Code Here

      ArrayList resourcesCollector) throws CoreException {
    final IContainer container = (IContainer) pack.getResource();
    if (container == null)
      return;

    final IResource[] members = container.members();

    /*
     * Check whether this package is removed completely or only cleared. The
     * default package can never be removed completely.
     */
 
View Full Code Here

    } else if (element instanceof IContainer) {
      IContainer container = (IContainer) element;
      if (container.isAccessible()) {
        try {
          List children = new ArrayList();
          IResource[] members = container.members();
          for (int i = 0; i < members.length; i++) {
            if (members[i].getType() != IResource.FILE) {
              children.add(members[i]);
            }
          }
View Full Code Here

        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()) {
                if (member instanceof IProject) { // show only
                  // PHP
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.