Package org.eclipse.core.resources

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


            throw ce;
          }
          RepositoryProvider
              .map(project, GitProvider.class.getName());
          autoIgnoreDerivedResources(project, monitor);
          project.refreshLocal(IResource.DEPTH_INFINITE,
              new SubProgressMonitor(monitor, 50));
          monitor.worked(10);
        } else {
          // TODO is this the right location?
          if (GitTraceLocation.CORE.isActive())
View Full Code Here


            .getLocation();
        if (location != null
            && location.toFile().equals(
                record.getProjectSystemFile())) {
          project.open(monitor);
          project.refreshLocal(IResource.DEPTH_INFINITE, monitor);
        }
      }
      return null;
    }
    if (record.getProjectDescription() == null) {
View Full Code Here

        .asList(repositoryMapping));
    projectData.store();
    GitProjectData.add(destination, projectData);
    RepositoryProvider
        .map(destination, GitProvider.class.getName());
    destination.refreshLocal(IResource.DEPTH_INFINITE,
        new SubProgressMonitor(monitor, 50));
  }

  private boolean unmapProject(final IResourceTree tree, final IProject source) {
    // The Repository mapping does not support moving
View Full Code Here

        }
        ISchedulingRule rule = p.getWorkspace().getRuleFactory().refreshRule(p);
        try {
          getJobManager().beginRule(rule, monitor);
          if(p.exists()) // handle missing projects after branch switch
            p.refreshLocal(IResource.DEPTH_INFINITE, new SubProgressMonitor(monitor, 1));
        } catch (CoreException e) {
          handleError(UIText.Activator_refreshFailed, e, false);
          return new Status(IStatus.ERROR, getPluginId(), e.getMessage());
        } finally {
          getJobManager().endRule(rule);
View Full Code Here

    IFile gitignore = proj.getFile(".gitignore");
    gitignore.create(
        new ByteArrayInputStream(ignoredName.getBytes(proj
            .getDefaultCharset())), false, null);
    proj.refreshLocal(IResource.DEPTH_INFINITE, null);

    // when
    launchSynchronization(INITIAL_TAG, HEAD, true);

    // then
View Full Code Here

    IFile newFile = proj.getFile(newFileName);
    newFile.create(
        new ByteArrayInputStream("content of new file".getBytes(proj
            .getDefaultCharset())), false, null);
    // force refresh
    proj.refreshLocal(IResource.DEPTH_INFINITE, null);
    Job.getJobManager().join(ResourcesPlugin.FAMILY_AUTO_BUILD, null);

    // then
    SWTBotTreeItem workingTree = getExpandedWorkingTreeItem();
    assertEquals(GitModelWorkingTree_workingTree, workingTree.getText());
View Full Code Here

    IFile gitignore = proj.getFile(".gitignore");
    gitignore.create(
        new ByteArrayInputStream(ignoredName.getBytes(proj
            .getDefaultCharset())), false, null);
    proj.refreshLocal(IResource.DEPTH_INFINITE, null);

    // when
    launchSynchronization(INITIAL_TAG, HEAD, true);

    // then
View Full Code Here

          new NullProgressMonitor());
      IProjectDescription desc = project.getDescription();
      desc.setNatureIds(new String[] { PHPNature.ID });
      project.setDescription(desc, null);
 
      project.refreshLocal(IResource.DEPTH_INFINITE, null);
      project.build(IncrementalProjectBuilder.FULL_BUILD, null);
    } catch (CoreException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    }
View Full Code Here

      desc.setNatureIds(new String[] { PHPNature.ID });
      project.setDescription(desc, null);
 
      ProjectOptions.setPhpVersion(version, project);
 
      project.refreshLocal(IResource.DEPTH_INFINITE, null);
      project.build(IncrementalProjectBuilder.FULL_BUILD, null);
    } catch (CoreException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    }
View Full Code Here

          .getProject(map.get(PROJECT).toString());

      perfMonitor.execute(getProjectNameWithVersion(map)
          + ".testBuildProject", new Operation() {
        public void run() throws Exception {
          project.refreshLocal(IResource.DEPTH_INFINITE, null);
          PHPCoreTests.waitForIndexer();
        }
      }, 1, 10);
    }
  }
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.