Package org.eclipse.core.resources

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


                    subMonitor.subTask("Clearing History...");
                    project.clearHistory(subMonitor.newChild(100));

                    subMonitor.subTask("Refreshing Project");
                    project.refreshLocal(IResource.DEPTH_INFINITE,
                        subMonitor.newChild(100));

                    if (baseProject == null) {
                        subMonitor.subTask("Creating Project...");
                        project.create(subMonitor.newChild(50));
View Full Code Here


        }

        // TODO Should we really be the ones doing this? Here?
        try {
            if (result != null)
                result.refreshLocal(IResource.DEPTH_INFINITE, monitor);
        } catch (CoreException e) {
            log.error("Refresh failed", e);
        }

        return result;
View Full Code Here

   
    if(compilerProcess.exitValue() != 0)
      //throw new CoreException(new Status(Status.ERROR, XVRPlugin.PLUGIN_ID, "Compilation of " + prj.getName() + "failed and returns with code : " + compilerProcess.exitValue()));
      throw new CoreException(new ResourceStatus(ResourceStatus.BUILD_FAILED, "Compilation of " + prj.getName() + " failed and returns with code : " + compilerProcess.exitValue()));
   
    prj.refreshLocal(IResource.DEPTH_INFINITE, new NullProgressMonitor());
   
    return true;
  }

 
View Full Code Here

     
      if(element instanceof IContainer){
        IContainer c = (IContainer)element;
        IProject p = c.getProject();
        try {
          p.refreshLocal(IProject.DEPTH_INFINITE, new NullProgressMonitor());
        } catch (CoreException e1) {
          e1.printStackTrace();
        }
       
        String project_loc = p.getLocation().toOSString();
View Full Code Here

    // when the tree isn't locked.  This shouldn't cause a regression, since
    // when the call fails currently things keep on going due to the catch
    if (!project.getWorkspace().isTreeLocked())
    {
        try {
          project.refreshLocal(IResource.DEPTH_INFINITE, null);
        } catch (CoreException e) {
//                 TODO C.B.:pushing this down to a warning because it creates really
//                 spurious output.  Don't know why we are calling refreshLocal at all.
                JSFCorePlugin.log(Status.WARNING, "Error.RefreshingLocal", e); //$NON-NLS-1$
        }
View Full Code Here

      if (project != null)
      {
        try
        {
          project.accept(visitor);
          project.refreshLocal(IResource.DEPTH_INFINITE, null);
        } catch (CoreException e)
        {
          DestecsLibraryPlugin.log("Failed to upgrade project in action", e);
        }
      }
View Full Code Here

          File architecturesFile = architecturesPath.toFile();
          if(true)
          {
            folderCreated = architecturesFile.mkdirs();
            try {
              project.refreshLocal(IResource.DEPTH_INFINITE, new NullProgressMonitor());
            } catch (CoreException e1) {
              DestecsDebugPlugin.logError("Failed to refresh project", e1);
            }
          }
         
View Full Code Here

      {
        DestecsLibraryPlugin.log("Failed to create library: "+ lib.name, e);
      }
    }

    project.refreshLocal(IResource.DEPTH_INFINITE, null);

  }

  public static void updateLink(IResource resource, Library lib, String file,
      String outputFolder,boolean refresh) throws CoreException
View Full Code Here

    resource.delete(true, new NullProgressMonitor());
    IProject project = resource.getProject();
    createLink(project, lib, file, outputFolder);
    if(refresh)
    {
      project.refreshLocal(IResource.DEPTH_INFINITE, null);
    }
  }

  @SuppressWarnings("deprecation")
  private static void createLink(IProject project, Library lib, String file,
View Full Code Here

          File architecturesFile = architecturesPath.toFile();
          if(true)
          {
            folderCreated = architecturesFile.mkdirs();
            try {
              project.refreshLocal(IResource.DEPTH_INFINITE, new NullProgressMonitor());
            } catch (CoreException e1) {
              DestecsDebugPlugin.logError("Failed to refresh project", e1);
            }
          }
         
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.