Package org.eclipse.core.resources

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


      } catch (IOException e) {
        throwCoreException(e.getMessage(), e);
      }  
     

      project.refreshLocal(IResource.DEPTH_INFINITE, new SubProgressMonitor(monitor, 1));
    }
  }

  private void throwCoreException(String message) throws CoreException {
    throwCoreException(message, null);
View Full Code Here


  protected void refreshProject(IProgressMonitor monitor) throws CoreException {

    IProject project = CloudFoundryProjectUtil.getProject(appModule);
    if (project != null && project.isAccessible()) {
      project.refreshLocal(IResource.DEPTH_INFINITE, monitor);
    }
  }

}
View Full Code Here

          // wait and try again to work-around
          // ConcurrentModificationException (bug 280488)
          try {
            Thread.sleep(500);
            project.open(null);
            project.refreshLocal(IResource.DEPTH_INFINITE, null);
          }
          catch (InterruptedException e1) {
            Thread.currentThread().interrupt();
          }
        }
View Full Code Here

        }

        try {
            initializeBuilder(project, notifier);
            do_build(kind, project, erlProject, notifier);
            project.refreshLocal(IResource.DEPTH_INFINITE, null);
        } catch (final OperationCanceledException e) {
            if (BuilderHelper.isDebugging()) {
                ErlLogger.debug("Build of " + project.getName() + " was canceled.");
            }
        } catch (final Exception e) {
View Full Code Here

            try {
                final OtpErlangObject projectInfo = BuilderUtils
                        .createProjectInfo(erlProject);
                backend.getOtpRpc().call("erlide_builder_rebar", "clean", "x",
                        projectInfo);
                project.refreshLocal(IResource.DEPTH_INFINITE, null);

            } catch (final RpcException e) {
                ErlLogger.error(e);
            }
            project.refreshLocal(IResource.DEPTH_INFINITE, null);
View Full Code Here

                project.refreshLocal(IResource.DEPTH_INFINITE, null);

            } catch (final RpcException e) {
                ErlLogger.error(e);
            }
            project.refreshLocal(IResource.DEPTH_INFINITE, null);

        } catch (final Exception e) {
            ErlLogger.error(e);
            final String msg = NLS.bind(BuilderMessages.build_inconsistentProject,
                    e.getLocalizedMessage(), e.getClass().getName());
View Full Code Here

      BuildContext buildContext = getBuildContext();
      IMavenProjectFacade mproj = getMavenProjectFacade();

      IProject proj = mproj.getProject();

      proj.refreshLocal(IResource.DEPTH_INFINITE, monitor);

      for (String dirName : outputDirs) {
        IFile generatedSource = proj.getFile(dirName);
        File generatedSourceFolder = generatedSource.getFullPath().toFile();
        buildContext.refresh(generatedSourceFolder);
View Full Code Here

    BuildContext buildContext = getBuildContext();
    IMavenProjectFacade mproj = getMavenProjectFacade();

    IProject proj = mproj.getProject();

    proj.refreshLocal(IResource.DEPTH_INFINITE, monitor);

    IFile generatedSource = proj.getFile(sourceRoot);
    File generatedSourceFolder = generatedSource.getFullPath().toFile();
    buildContext.refresh(generatedSourceFolder);
    // tell m2e builder to refresh generated files
View Full Code Here

    BuildContext buildContext = getBuildContext();
    IMavenProjectFacade mproj = getMavenProjectFacade();

    IProject proj = mproj.getProject();

    proj.refreshLocal(IResource.DEPTH_INFINITE, monitor);
    IFile generatedSource = proj.getFile(sourceRoot);
    File generatedSourceFolder = generatedSource.getFullPath().toFile();
    buildContext.refresh(generatedSourceFolder);
    // tell m2e builder to refresh generated files
    File generated = maven.getMojoParameterValue(getSession(), getMojoExecution(), sourceRoot, File.class);
View Full Code Here

                    /* Remove the headless build files */
                    headlessBuildManager.setup(enabledPlugins, false, iProject.getLocation().toFile(), false, enabledIgnorePlugins);

                    /* refresh the project; files were created outside of Eclipse API */
                    iProject.refreshLocal(IResource.DEPTH_INFINITE, null);

                    return;
                }
            }

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.