Search in sources :

Example 1 with IndexChangedEvent

use of org.eclipse.jgit.events.IndexChangedEvent in project egit by eclipse.

the class LocalNonWorkspaceTypedElement method fireChanges.

private void fireChanges() {
    fireContentChanged();
    // external file change must be reported explicitly, see bug 481682
    Repository myRepository = repository;
    boolean updated = false;
    if (!myRepository.isBare()) {
        updated = refreshRepositoryState(myRepository);
    }
    if (!updated) {
        RepositoryMapping mapping = RepositoryMapping.getMapping(path);
        if (mapping != null) {
            mapping.getRepository().fireEvent(new IndexChangedEvent());
        }
    }
}
Also used : Repository(org.eclipse.jgit.lib.Repository) RepositoryMapping(org.eclipse.egit.core.project.RepositoryMapping) IndexChangedEvent(org.eclipse.jgit.events.IndexChangedEvent)

Aggregations

RepositoryMapping (org.eclipse.egit.core.project.RepositoryMapping)1 IndexChangedEvent (org.eclipse.jgit.events.IndexChangedEvent)1 Repository (org.eclipse.jgit.lib.Repository)1