Package org.eclipse.core.resources

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


      if (!libFolder.getFile("gwt-servlet.jar").exists()) {
        String servletJarLocation = Utils.getGWTLocation(project) + "/gwt-servlet.jar";
        File srcFile = new File(servletJarLocation);
        File destFile = new File(libFolder.getLocation().toFile(), "gwt-servlet.jar");
        FileUtils.copyFile(srcFile, destFile);
        libFolder.refreshLocal(IResource.DEPTH_INFINITE, null);
      }
    }
  }

  private static IFolder ensureCreateFolder(IProject project, String name) throws CoreException {
View Full Code Here


        File outputDirectory = new File( mavenProject.getBuild().getOutputDirectory() );
        outputDirectory.mkdirs();
        IPath relPath =
            MavenProjectUtils.getProjectRelativePath( project, mavenProject.getBuild().getOutputDirectory() );
        IFolder folder = project.getFolder( relPath );
        folder.refreshLocal( IResource.DEPTH_INFINITE, monitor );
        return folder.getFullPath();
    }

    public static void addPDENature( IProject project, IPath manifestPath, IProgressMonitor monitor )
        throws CoreException
View Full Code Here

    } catch (Exception e) {
      WizardsPlugin.getDefault().log(e);
      throw new InvocationTargetException(e);
    }

    subprojectFolder.refreshLocal(IResource.DEPTH_INFINITE, monitor);

    IFolder sourceFolder;
    sourceFolder = subprojectFolder.getFolder("src"); // BUG: totally wrong
    if (!sourceFolder.exists()) {
      // create source folder
View Full Code Here

    }
    File underlyingFile = underlyingFolder.getLocation().toFile();
    if (underlyingFile.exists()) {
      FileUtilities.deleteRecursively(underlyingFile);
      try {
        underlyingFolder.refreshLocal(IResource.DEPTH_ONE, monitor);
      } catch (CoreException e) {
        CorePlugin.getDefault().log(e);
      }
    }
    else {
View Full Code Here

        // MS: touch a build/.version file to notify rapid turnaround of
        // changes
        workspaceRunnableProject.refreshLocal(IResource.DEPTH_ONE, runInWorkspaceMonitor);
        IFolder buildFolder = workspaceRunnableProject.getFolder(IBuildAdapter.FILE_NAME_BUILD);
        if (buildFolder.exists()) {
          buildFolder.refreshLocal(IResource.DEPTH_ONE, runInWorkspaceMonitor);
          try {
            IFile buildVersion = buildFolder.getFile(".version");
            InputStream versionInputStream = new ByteArrayInputStream(String.valueOf(System.currentTimeMillis()).getBytes());
            if (buildVersion.exists()) {
              buildVersion.setContents(versionInputStream, IResource.FORCE | IResource.DERIVED, runInWorkspaceMonitor);
View Full Code Here

        } else {
          delta = null;
          long t0 = System.currentTimeMillis();
          IFolder buildFolder = getProject().getFolder("build");
          subProgressMonitor.subTask("scrubbing build folder ...");
          buildFolder.refreshLocal(IResource.DEPTH_INFINITE, null);
          subProgressMonitor.worked(1);
          getLogger().debug("refresh build folder took: " + (System.currentTimeMillis() - t0) + " ms");
          t0 = System.currentTimeMillis();
          buildFolder.delete(true, false, null);
          subProgressMonitor.worked(2);
View Full Code Here

          t0 = System.currentTimeMillis();
          buildFolder.delete(true, false, null);
          subProgressMonitor.worked(2);
          getLogger().debug("scrubbing build folder took: " + (System.currentTimeMillis() - t0) + " ms");
          t0 = System.currentTimeMillis();
          buildFolder.refreshLocal(IResource.DEPTH_INFINITE, null);
          subProgressMonitor.subTask("re-creating structure ...");
          _buildVisitor._checkDirs();
          subProgressMonitor.worked(2);
          getLogger().debug("re-creating build folder took: " + (System.currentTimeMillis() - t0) + " ms");
        }
View Full Code Here

          findMember.refreshLocal(IResource.DEPTH_INFINITE, new NullProgressMonitor());
          findMember.getParent().refreshLocal(IResource.DEPTH_ONE, new NullProgressMonitor());
        }

      }
      folder.refreshLocal(IResource.DEPTH_INFINITE, new SubProgressMonitor(monitor,
              generateResources.length));

      monitor.worked(1);
    } catch (ModelException e) {
      if (DLTKCore.DEBUG_PARSER) {
View Full Code Here

    File outputDir = outputDirPath.makeAbsolute().toFile();

    if(!inputDir.exists()) {
      inputDir.mkdirs();
      IFolder folder = proj.getProject().getFolder(RutaProjectUtils.getDefaultInputLocation());
      folder.refreshLocal(IResource.DEPTH_INFINITE, new NullProgressMonitor());
    }
    IFolder outputFolder = proj.getProject().getFolder(RutaProjectUtils.getDefaultOutputLocation());
  if(!outputDir.exists()) {
      outputDir.mkdirs();
      outputFolder.refreshLocal(IResource.DEPTH_INFINITE, new NullProgressMonitor());
View Full Code Here

      folder.refreshLocal(IResource.DEPTH_INFINITE, new NullProgressMonitor());
    }
    IFolder outputFolder = proj.getProject().getFolder(RutaProjectUtils.getDefaultOutputLocation());
  if(!outputDir.exists()) {
      outputDir.mkdirs();
      outputFolder.refreshLocal(IResource.DEPTH_INFINITE, new NullProgressMonitor());
    }
   
    IPreferenceStore store = RutaIdePlugin.getDefault().getPreferenceStore();
    boolean clearOutput = store.getBoolean(RutaCorePreferences.PROJECT_CLEAR_OUTPUT);
    if(clearOutput) {
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.