Package org.eclipse.core.resources

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


    // it doesn't exist
    // make sure the parent exists
    createFolderRecursively(folder.getParent());
   
    // create this one
    folder.create(true, true, new NullProgressMonitor());
  }
 
}
View Full Code Here


                project.delete(true, true, null);
        }
       
        private IFolder createBinFolder() throws CoreException {
                IFolder binFolder= project.getFolder("bin");
                binFolder.create(false, true, null);
                return binFolder;
        }
       
        IFolder createXmlFolder() throws CoreException {
            IFolder xmlFolder= project.getFolder("xml");
View Full Code Here

                return binFolder;
        }
       
        IFolder createXmlFolder() throws CoreException {
            IFolder xmlFolder= project.getFolder("xml");
            xmlFolder.create(false, true, null);
            return xmlFolder;
    }
      

        private void setJavaNature() throws CoreException {
View Full Code Here

                javaProject.setOutputLocation(outputLocation, null);
        }

        private IPackageFragmentRoot createSourceFolder() throws CoreException {
                IFolder folder= project.getFolder("src");
                folder.create(false, true, null);
                IPackageFragmentRoot root= javaProject.getPackageFragmentRoot(folder);

                IClasspathEntry[] oldEntries= javaProject.getRawClasspath();
                IClasspathEntry[] newEntries= new IClasspathEntry[oldEntries.length + 1];
                System.arraycopy(oldEntries, 0, newEntries, 0, oldEntries.length);
View Full Code Here

          } else {
            part = part + SLASH + nameParts[i];
          }
          IFolder directory = parentFolder.getFolder(new Path(part));
          if (!directory.exists()) {
            directory.create(true, true, monitor);
          }
        }
        // If it's not directory; it's a file.
        if (!entry.isDirectory()) {
View Full Code Here

    String name = instruction.getName();
    if (instruction.isDirectory()) {
      IFolder directory = parentFolder.getFolder(new Path(name));
      if (!directory.exists()) {
        try {
          directory.create(true, true, monitor);
        } catch (CoreException e) {
          throw new RuntimeException("IOException encountered from directory.create()", e);
        }
      }
View Full Code Here

      } else {
        part = part + SLASH + packageParts[i];
      }
      lastCreatedFolder = parentFolder.getFolder(new Path(part));
      if (!lastCreatedFolder.exists()) {
        lastCreatedFolder.create(true, true, monitor);
      }
    }
    return lastCreatedFolder;
  }
View Full Code Here

                public void run(IProgressMonitor monitor) throws InvocationTargetException {
                    try {
                        // TODO move to par provider
                        monitor.beginTask(Messages.getString("NewProcessDefinitionWizard.monitor.title"), 4);
                        IFolder folder = page.getProcessFolder();
                        folder.create(true, true, null);
                        monitor.worked(1);
                        IFile definitionFile = ProjectFinder.getProcessDefinitionFile(folder);
                        String processName = page.getProcessFolder().getName();
                        Document document = JpdlVersionRegistry.getContentProvider(page.getJpdlVersion()).getInitialProcessDefinitionDocument(
                                processName);
View Full Code Here

            IFolder processFolder = project.getFolder("src/process/" + processName);
            if (processFolder.exists()) {
                throw new Exception(Messages.getString("ImportParWizardPage.error.processWithSameNameExists"));
            }
            processFolder.create(true, true, null);

            ZipFile zip = new ZipFile(parFile, ZipFile.OPEN_READ);
            Enumeration<? extends ZipEntry> entries = zip.entries();
            while (entries.hasMoreElements()) {
                ZipEntry entry = entries.nextElement();
View Full Code Here

    mProject.createProject();
    mProject.createProjectContent();

    // create invalid dot corpus
    IFolder dotCorpusFolder = mProject.getProject().getFolder(".corpus");
    dotCorpusFolder.create(true, true, null);

    // check for default dotCorpus file
    assertTrue(CasEditorPlugin.getNlpModel().findMember(mProject.getDotCorpus()) != null);

    // check that no content elements exist
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.