Package org.eclipse.core.resources

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


            switch (selectedWizardType) {
            case SettingsConstants.WSDL_2_JAVA_TYPE:
                doFinishWSDL2Java();
                IProject selectedWorkspaceProject = outputPage.getSelectedWorkspaceProject();
                if(selectedWorkspaceProject != null){
                  selectedWorkspaceProject.refreshLocal(IResource.DEPTH_INFINITE, new NullProgressMonitor());
                }
                break;
            case SettingsConstants.JAVA_2_WSDL_TYPE:
                doFinishJava2WSDL();
                break;
View Full Code Here


    IWorkspaceRoot root= ResourcesPlugin.getWorkspace().getRoot();
    IProject project= root.getProject(projectName);
    if (!project.exists()) {
      project.create(null);
    } else {
      project.refreshLocal(IResource.DEPTH_INFINITE, null);
    }
   
    if (!project.isOpen()) {
      project.open(null);
    }
View Full Code Here

        // current basedirPath. Refreshed projects will be removed from the list for subsequent checks
        while(ite.hasNext()) {
          IProject project = ite.next();
          final IPath projectLocation = project.getLocation();
          if(projectLocation != null && projectLocation.equals(basedirPath) && project.isAccessible()) {
            project.refreshLocal(refreshDepth, monitor);
            count++;
            ite.remove();
            break;
          }
        }
View Full Code Here

     * Creates a pydev_unit_test_project to be used in the tests
     */
    protected IProject createProject(IProgressMonitor monitor, String projectName) throws CoreException {
        IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject(projectName);
        if (project.exists()) {
            project.refreshLocal(IResource.DEPTH_INFINITE, null);
            try {
                project.delete(true, monitor);
            } catch (Exception e) {
                e.printStackTrace();
            }
View Full Code Here

         
          FacetManager.installFacets(project, phpVersion, symfonyVersion, monitor);
          monitor.worked(1);
          createProjectSettings(project, containerPath.toString(), consolePath.toString());
         
          project.refreshLocal(IResource.DEPTH_INFINITE, monitor);
          monitor.worked(2);
        } catch (Exception e) {
          Logger.logException(e);
          // cleanup on failure
          if(project != null) {
View Full Code Here

  private void syncProjectReferences(List<IProject> wanted, SubMonitor subMon) {
    subMon.setWorkRemaining(2);
    try {
      checkCancel(subMon);
      final IProject project = getProject();
      project.refreshLocal(IResource.DEPTH_INFINITE, subMon.newChild(1));
      final IProjectDescription description = getProject().getDescription();
      List<IProject> current = Lists.newArrayList(description.getDynamicReferences());
      if(current.size() == wanted.size() && current.containsAll(wanted))
        return; // already in sync
      // not in sync, set them
View Full Code Here

      else {
        project.create(description, monitor);
      }
    }
    else {
      project.refreshLocal(IResource.DEPTH_INFINITE, monitor);
    }
    if (monitor.isCanceled()) {
      throw new OperationCanceledException();
    }
    if (!project.isOpen()) {
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

                Job job = new Job("Configure new Roo project") {

                  @Override
                  protected IStatus run(IProgressMonitor monitor) {
                    try {
                      project.refreshLocal(IResource.DEPTH_INFINITE, monitor);
                    }
                    catch (CoreException e) {
                      RooCoreActivator.log(e);
                    }
                    RooNature.addOutxmlOption(project);
View Full Code Here

        Processor processor = new Processor(processingInfo);
        IProject processedProject = processor.process(project, newPath, topLevelPackageTokens,
            configurationDescriptor.getProjectNameToken(), collectedInput, inputKinds, shell, monitor);
        if (processedProject != null) {
          processedProject.refreshLocal(IResource.DEPTH_INFINITE, new NullProgressMonitor());
          SpringCoreUtils.buildFullProject(processedProject);
        }
      }
      catch (Exception e) {
        handleError("Failure while processing template for project: " + projectName, e);
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.