Package org.eclipse.core.resources

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


            //              result.add(cls);
            //          }
          }
        }
        IFolder libFolder = (IFolder)project.findMember(ToolProjectSupport.LIBRARY_FOLDER_NAME);
        members = libFolder.members();
        for (IResource resource : members){
          ToolPlan plan = ToolPlan.getInstance(resource);
          if (plan != null){
            ToolClass cls = plan.findClass(className);
            if (cls!= null)
View Full Code Here


            if (cls!= null)
              result.add(cls);
          }
        }
        libFolder = (IFolder)project.findMember(ToolProjectSupport.UDS_LIBRARY_FOLDER_NAME);
        members = libFolder.members();
        for (IResource resource : members){
          ToolPlan plan = ToolPlan.getInstance(resource);
          if (plan != null){
            ToolClass cls = plan.findClass(className);
            if (cls!= null)
View Full Code Here

      return this.cursors;
    } else {
      IFolder folder = (IFolder)getFile().getParent();
      List<ToolCursor> cursors = new ArrayList<ToolCursor>();
      try {
        for (IResource file : folder.members()){
          if (!file.getFileExtension().equalsIgnoreCase("cur"))
            continue;
          ToolCursor cls = ToolCursor.fetch((IFile)file);
          if (cls != null)
            cursors.add(cls);
View Full Code Here

      /*
       * get the class resources from the IFolder
       */
      IFolder folder = (IFolder)getFile().getParent();
      try {
        for (IResource file : folder.members()){
          if (!file.getFileExtension().equalsIgnoreCase("cdf"))
            continue;
          ToolClass cls = ToolClass.fetch((IFile)file);
          if (cls != null)
            classes.add(cls);
View Full Code Here

      /*
       * get the class resources from the IFolder
       */
      IFolder folder = (IFolder)getFile().getParent();
      try {
        for (IResource file : folder.members()){
          if (!file.getFileExtension().equalsIgnoreCase("so"))
            continue;
          ToolServiceObject cls = ToolServiceObject.fetch((IFile)file);
          if (cls != null)
            soList.add(cls);
View Full Code Here

       */
      IFolder folder = (IFolder)getFile().getParent();

      try {
        InterfaceContentDescriber icd = new InterfaceContentDescriber();
        for (IResource file : folder.members()){
          if (!file.getFileExtension().equalsIgnoreCase("cdf"))
            continue;
          if (icd.describe(((IFile)file).getContents(), null) != IContentDescriber.VALID)
            continue;
          ToolInterface inter = ToolInterface.fetch(file.getProject(), (IFile)file);
View Full Code Here

    IFolder untitledFolder = project.getFolder("untitled");
    if(!untitledFolder.exists()) {
      untitledFolder.create(true, true, new NullProgressMonitor());
      return 0;
    }
    IResource[] resources = untitledFolder.members();
    int result = resources.length > 0
        ? 1
        : 0;
    for(IResource r : resources) {
      // tied to format "untitled-n"
View Full Code Here

    private void closeAllRelatedFiles(final IResource resource) throws CoreException
    {       
        if (resource instanceof IFolder)
        {
            IFolder folder = (IFolder)resource;
            for (IResource child : folder.members())
            {
                closeAllRelatedFiles(child);
            }
            return;
        }
View Full Code Here

      IResource eachFile = fileList[i];
      if(eachFile.getType() == IResource.FILE && eachFile.getName().equals(fileName)){
        this.partenerFile = eachFile.getFullPath().toString();
      }else if(eachFile.getType() == IResource.FOLDER){
        IFolder file = (IFolder) eachFile;
        travelAllFolder(file.members(), fileName);
      }
    }
  }

  /**
 
View Full Code Here

        case (ITaglibRecord.TAGDIR) : {
          IFolder tagFolder = ResourcesPlugin.getWorkspace().getRoot().getFolder(((ITagDirRecord) record).getPath());
          if (tagFolder.isAccessible()) {
            IResource[] members;
            try {
              members = tagFolder.members();
              for (int i = 0; i < members.length; i++) {
                modificationStamp = Math.max(modificationStamp, members[i].getModificationStamp());
              }
            }
            catch (CoreException e) {
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.