Examples of IndexChangedEvent


Examples of org.eclipse.jgit.events.IndexChangedEvent

   * @throws IOException
   */
  public void rereadIfNecessary() throws IOException {
    if (cacheFile.exists() && cacheFile.lastModified() != lastCacheTime) {
      read();
      db.fireEvent(new IndexChangedEvent());
    }
  }
View Full Code Here

Examples of org.eclipse.jgit.events.IndexChangedEvent

        throw new IOException(
            JGitText.get().couldNotRenameTemporaryIndexFileToIndex);
      changed = false;
      statDirty = false;
      lastCacheTime = cacheFile.lastModified();
      db.fireEvent(new IndexChangedEvent());
    } finally {
      if (!lock.delete())
        throw new IOException(
            JGitText.get().couldNotDeleteLockFileShouldNotHappen);
      if (tmpIndex.exists() && !tmpIndex.delete())
View Full Code Here

Examples of org.eclipse.jgit.events.IndexChangedEvent

    if (!tmp.commit())
      return false;
    snapshot = tmp.getCommitSnapshot();
    if (indexChangedListener != null
        && !Arrays.equals(readIndexChecksum, writeIndexChecksum))
      indexChangedListener.onIndexChanged(new IndexChangedEvent());
    return true;
  }
View Full Code Here

Examples of org.eclipse.jgit.events.IndexChangedEvent

    if (!tmp.commit())
      return false;
    snapshot = tmp.getCommitSnapshot();
    if (indexChangedListener != null
        && !Arrays.equals(readIndexChecksum, writeIndexChecksum))
      indexChangedListener.onIndexChanged(new IndexChangedEvent());
    return true;
  }
View Full Code Here

Examples of org.eclipse.jgit.events.IndexChangedEvent

  }

  @Override
  public void notifyIndexChanged() {
    snapshot = FileSnapshot.save(getIndexFile());
    fireEvent(new IndexChangedEvent());
  }
View Full Code Here

Examples of org.eclipse.jgit.events.IndexChangedEvent

                  e));
        } finally {
          fireContentChanged();
          RepositoryMapping mapping = RepositoryMapping.getMapping(path);
          if (mapping != null)
            mapping.getRepository().fireEvent(new IndexChangedEvent());
          if (out != null)
            try {
              out.close();
            } catch (IOException ex) {
              // ignore
View Full Code Here

Examples of org.eclipse.jgit.events.IndexChangedEvent

  }

  @Override
  public void notifyIndexChanged() {
    snapshot = FileSnapshot.save(getIndexFile());
    fireEvent(new IndexChangedEvent());
  }
View Full Code Here

Examples of org.eclipse.jgit.events.IndexChangedEvent

  }

  @Override
  public void notifyIndexChanged() {
    snapshot = FileSnapshot.save(getIndexFile());
    fireEvent(new IndexChangedEvent());
  }
View Full Code Here

Examples of org.eclipse.jgit.events.IndexChangedEvent

    if (!tmp.commit())
      return false;
    snapshot = tmp.getCommitSnapshot();
    if (indexChangedListener != null
        && !Arrays.equals(readIndexChecksum, writeIndexChecksum))
      indexChangedListener.onIndexChanged(new IndexChangedEvent());
    return true;
  }
View Full Code Here

Examples of org.eclipse.jgit.events.IndexChangedEvent

  }

  @Override
  public void notifyIndexChanged() {
    snapshot = FileSnapshot.save(getIndexFile());
    fireEvent(new IndexChangedEvent());
  }
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.