Package org.eclipse.core.resources

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


    if(clearOutput) {
      List<File> outputFiles = getFiles(outputDir, false);
      for (File file : outputFiles) {
      file.delete();
    }
      outputFolder.refreshLocal(IResource.DEPTH_INFINITE, new NullProgressMonitor());
    }
   
    List<File> inputFiles = getFiles(inputDir, false);

    int ticks = (inputFiles.size() * 2) + 1;
View Full Code Here


    }
    if (ae != null) {
      ae.destroy();
    }
    IFolder folder = outputFolder;
    folder.refreshLocal(IResource.DEPTH_INFINITE, new NullProgressMonitor());
    clearConsoleLink(handler);
    mon.done();
  }

  private static String getText(File each) {
View Full Code Here

          if (nature != null) {
            List<IFolder> descriptorFolders = RutaProjectUtils.getDescriptorFolders(each);
            if (descriptorFolders != null && !descriptorFolders.isEmpty()) {
              IFolder descFolder = descriptorFolders.get(0);
              RutaProjectCreationWizard.copyDescriptors(descFolder);
              descFolder.refreshLocal(IResource.DEPTH_INFINITE, monitor);
            }
          }
        } catch (CoreException e) {
          RutaAddonsPlugin.error(e);
        }
View Full Code Here

        final IFolder platformFolder = karafProject.getFolder("platform");

        final IPath obrFile =
            platformFolder.getRawLocation().append("eclipse.obr").addFileExtension("xml");

        platformFolder.refreshLocal(0, monitor);

        final PopulateObrFileJob populateObrJob = new PopulateObrFileJob(karafProject.getName(), obrFile.toFile());
        populateObrJob.schedule();

        try {
View Full Code Here

            runtimeFolder.create(true, true, monitor);
        }

        final IPath runtimeProperties = runtimeFolder.getRawLocation().append("runtime").addFileExtension("properties");

        runtimeFolder.refreshLocal(0, monitor);

        FileOutputStream out = null;
        try {
            out = new FileOutputStream(runtimeProperties.toFile());
            combinedProperties.store(out, "Combined interpolated runtime properties");
View Full Code Here

        IFolder layoutIFolder = proj.getFolder(".settings/org.eclipse.sapphire.ui.diagram/layouts");
        File layoutFolder = layoutIFolder.getLocation().toFile();
              if (!layoutFolder.exists())
              {
                  mkdirs(layoutFolder);
                  layoutIFolder.refreshLocal(IResource.DEPTH_ONE, null);
              }
              IFile layoutFile = layoutIFolder.getFile(fileName);
              layoutFile.refreshLocal(IResource.DEPTH_ONE, null);
              return layoutFile;
      }
View Full Code Here

        } finally {
            if (os != null) {
                os.close();
            }
        }
        mdFolder.refreshLocal(IResource.DEPTH_INFINITE, null);
    }

    public static IPath createGuvnorMetadataLocation(String rootPath) throws Exception {
        IPath path = new Path(rootPath + File.separator + ".guvnorinfo"); //$NON-NLS-1$
        if (!path.toFile().exists()) {
View Full Code Here

      return;
    }
   
    IFolder classesFolder = editorFile.getProject().getFolder("classes");
    try {
      classesFolder.refreshLocal(IFolder.DEPTH_INFINITE, null);
      if (!classesFolder.exists()) {
        classesFolder.create(true, true, null);
      }
    } catch (CoreException e) {
      e.printStackTrace();
View Full Code Here

    }
   
    EvaluateTextUtil.evaluateText(editor.getCorrespondingREPL(), compileLibCommand(lib), true);
    // TODO: send the compile via the server to synchronize with the compilation end before refreshing the project
    try {
      classesFolder.refreshLocal(IFolder.DEPTH_INFINITE, null);
    } catch (CoreException e) {
      e.printStackTrace();
    }
  }
 
View Full Code Here

   
    IFolder result = addFolder(externalFolderPath, externalFoldersProject, false);
    if (!result.exists())
      result.createLink(externalFolderPath, IResource.ALLOW_MISSING_LOCAL, monitor);
    else if (refreshIfExistAlready)
      result.refreshLocal(IResource.DEPTH_INFINITE,  monitor);
    return result;
  }

  public void createPendingFolders(IProgressMonitor monitor) throws JavaModelException{
    synchronized (this) {
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.