Examples of refreshLocal()


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

      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

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

    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

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

    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

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

                    /* 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

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

            newNatures[natures.length] = BndtoolsConstants.NATURE_ID;
            description.setNatureIds(newNatures);
            iProject.setDescription(description, null);

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

            return;
        } catch (CoreException e) {}
    }
}
View Full Code Here

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

        }

        ReleaseHelper.updateProject(context);

        IProject proj = ReleaseUtils.getProject(context.getProject());
        proj.refreshLocal(IResource.DEPTH_INFINITE, context.getProgressMonitor());

        return true;
    }

    private static boolean doRelease(ReleaseContext context, List<Baseline> diffs, List<IReleaseParticipant> participants) throws Exception {
View Full Code Here

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

    try {

      context.setProgressMonitor(monitor);

      IProject proj = ReleaseUtils.getProject(context.getProject());
      proj.refreshLocal(IResource.DEPTH_INFINITE, monitor);

      boolean ok = ReleaseHelper.release(context, context.getBaselines());

      ResourcesPlugin.getWorkspace().getRoot().getProject(context.getProject().getName()).refreshLocal(IResource.DEPTH_INFINITE, context.getProgressMonitor());
View Full Code Here

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

    if (outputFolderPath.length() != 0) {
      // If the output directory is set and inside the workspace it will be refreshed
      IResource result = ResourcesPlugin.getWorkspace().getRoot().findMember(outputFolderPath);
     
      if (result != null)
          result.refreshLocal(IResource.DEPTH_INFINITE, null);
    }
  }
}
View Full Code Here

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

            IPath p = (IPath) path.clone();
            while (p.segmentCount() > 0) {
                p = p.removeLastSegments(1);
                IResource resource = ResourcesPlugin.getWorkspace().getRoot().findMember(p);
                if (resource != null) {
                    resource.refreshLocal(2, null);
                    return;
                }
            }
        } catch (Exception e) {
            logger.logError("While refreshing path " + path, e);
View Full Code Here

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

    public static void refreshFile(File f) throws Exception {
        String path = toLocal(f);
        IResource r = ResourcesPlugin.getWorkspace().getRoot().findMember(path);
        if (r != null) {
            r.refreshLocal(IResource.DEPTH_INFINITE, null);
        }
    }

    public static void refresh(Project p) throws Exception {
        IJavaProject jp = getJavaProject(p);
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.