Package org.eclipse.egit.core.op

Examples of org.eclipse.egit.core.op.UntrackOperation


public class UntrackActionHandler extends RepositoryActionHandler {
  public Object execute(ExecutionEvent event) throws ExecutionException {
    IResource[] resources = getSelectedResources();
    if (resources.length == 0)
      return null;
    JobUtil.scheduleUserJob(new UntrackOperation(Arrays.asList(resources)),
        UIText.Untrack_untrack, JobFamilies.UNTRACK);
    return null;
  }
View Full Code Here


    AddToIndexOperation trop = new AddToIndexOperation(files);
    trop.execute(new NullProgressMonitor());

    assertTrackedState(fileArr, true);

    UntrackOperation utop = new UntrackOperation(Arrays.asList(fileArr));

    utop.execute(new NullProgressMonitor());

    assertTrackedState(fileArr, false);
  }
View Full Code Here

    AddToIndexOperation trop = new AddToIndexOperation(containers);
    trop.execute(new NullProgressMonitor());

    assertTrackedState(fileArr, true);

    UntrackOperation utrop = new UntrackOperation(containers);
    utrop.execute(new NullProgressMonitor());

    assertTrackedState(fileArr, false);
  }
View Full Code Here

TOP

Related Classes of org.eclipse.egit.core.op.UntrackOperation

Copyright © 2018 www.massapicom. 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.