Package org.eclipse.egit.core.op

Examples of org.eclipse.egit.core.op.IgnoreOperation.execute()


    String jobname = UIText.IgnoreActionHandler_addToGitignore;
    Job job = new Job(jobname) {
      @Override
      protected IStatus run(IProgressMonitor monitor) {
        try {
          operation.execute(monitor);
        } catch (CoreException e) {
          return Activator.createErrorStatus(e.getStatus()
              .getMessage(), e);
        }
        if (operation.isGitignoreOutsideWSChanged())
View Full Code Here


  public void testIgnoreFileCancel() throws Exception {
    IFolder binFolder = project.getProject().getFolder("bin");
    IgnoreOperation operation = new IgnoreOperation(Arrays.asList(binFolder.getLocation()));
    NullProgressMonitor monitor = new NullProgressMonitor();
    monitor.setCanceled(true);
    operation.execute(monitor);

    assertFalse(project.getProject().getFile(Constants.GITIGNORE_FILENAME).exists());
  }

View Full Code Here

  @Test
  public void testIgnoreWithResource() throws Exception {
    IFolder binFolder = project.getProject().getFolder("bin");
    @SuppressWarnings("deprecation")
    IgnoreOperation operation = new IgnoreOperation(new IResource[] {binFolder});
    operation.execute(new NullProgressMonitor());

    String content = project.getFileContent(Constants.GITIGNORE_FILENAME);
    assertEquals("/bin/\n", content);
  }
View Full Code Here

    final IgnoreOperation operation = new IgnoreOperation(Arrays.asList(paths));
    Job job = new Job("Ignoring resources for test") {
      @Override
      protected IStatus run(IProgressMonitor monitor) {
        try {
          operation.execute(monitor);
        } catch (CoreException e) {
          return e.getStatus();
        }
        return Status.OK_STATUS;
      }
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.