Package org.eclipse.jgit.events

Examples of org.eclipse.jgit.events.RefsChangedEvent


  /** If the parent should fire listeners, fires them. */
  private void fireRefsChanged() {
    final int last = lastNotifiedModCnt.get();
    final int curr = modCnt.get();
    if (last != curr && lastNotifiedModCnt.compareAndSet(last, curr) && last != 0)
      parent.fireEvent(new RefsChangedEvent());
  }
View Full Code Here


  /** If the parent should fire listeners, fires them. */
  private void fireRefsChanged() {
    final int last = lastNotifiedModCnt.get();
    final int curr = modCnt.get();
    if (last != curr && lastNotifiedModCnt.compareAndSet(last, curr) && last != 0)
      parent.fireEvent(new RefsChangedEvent());
  }
View Full Code Here

  /** If the parent should fire listeners, fires them. */
  private void fireRefsChanged() {
    final int last = lastNotifiedModCnt.get();
    final int curr = modCnt.get();
    if (last != curr && lastNotifiedModCnt.compareAndSet(last, curr) && last != 0)
      parent.fireEvent(new RefsChangedEvent());
  }
View Full Code Here

  /** If the parent should fire listeners, fires them. */
  private void fireRefsChanged() {
    final int last = lastNotifiedModCnt.get();
    final int curr = modCnt.get();
    if (last != curr && lastNotifiedModCnt.compareAndSet(last, curr) && last != 0)
      parent.fireEvent(new RefsChangedEvent());
  }
View Full Code Here

  /** If the parent should fire listeners, fires them. */
  private void fireRefsChanged() {
    final int last = lastNotifiedModCnt.get();
    final int curr = modCnt.get();
    if (last != curr && lastNotifiedModCnt.compareAndSet(last, curr) && last != 0)
      parent.fireEvent(new RefsChangedEvent());
  }
View Full Code Here

  /** If the parent should fire listeners, fires them. */
  private void fireRefsChanged() {
    final int last = lastNotifiedModCnt.get();
    final int curr = modCnt.get();
    if (last != curr && lastNotifiedModCnt.compareAndSet(last, curr))
      parent.fireEvent(new RefsChangedEvent());
  }
View Full Code Here

  /** If the parent should fire listeners, fires them. */
  private void fireRefsChanged() {
    final int last = lastNotifiedModCnt.get();
    final int curr = modCnt.get();
    if (last != curr && lastNotifiedModCnt.compareAndSet(last, curr) && last != 0)
      parent.fireEvent(new RefsChangedEvent());
  }
View Full Code Here

        pm.beginTask("", 1); //$NON-NLS-1$
        StashDropCommand command = Git.wrap(repo).stashDrop();
        command.setStashRef(index);
        try {
          command.call();
          repo.fireEvent(new RefsChangedEvent());
        } catch (JGitInternalException e) {
          throw new TeamException(e.getLocalizedMessage(),
              e.getCause());
        } catch (GitAPIException e) {
          throw new TeamException(e.getLocalizedMessage(),
View Full Code Here

  /** If the parent should fire listeners, fires them. */
  private void fireRefsChanged() {
    final int last = lastNotifiedModCnt.get();
    final int curr = modCnt.get();
    if (last != curr && lastNotifiedModCnt.compareAndSet(last, curr) && last != 0)
      parent.fireEvent(new RefsChangedEvent());
  }
View Full Code Here

  /** If the parent should fire listeners, fires them. */
  private void fireRefsChanged() {
    final int last = lastNotifiedModCnt.get();
    final int curr = modCnt.get();
    if (last != curr && lastNotifiedModCnt.compareAndSet(last, curr) && last != 0)
      parent.fireEvent(new RefsChangedEvent());
  }
View Full Code Here

TOP

Related Classes of org.eclipse.jgit.events.RefsChangedEvent

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.