java.lang.Object
org.eclipse.jgit.events.RepositoryEvent<IndexChangedListener>
org.eclipse.jgit.events.IndexChangedEvent
Describes a change to one or more paths in the index file.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
dispatch
(IndexChangedListener listener) Dispatch this event to the given listener.Get type of listener this event dispatches toboolean
Whether the index was changed by the same JGit processMethods inherited from class org.eclipse.jgit.events.RepositoryEvent
getRepository, setRepository, toString
-
Constructor Details
-
IndexChangedEvent
public IndexChangedEvent(boolean internal) Notify that the index changed- Parameters:
internal
-true
if the index was changed by the same JGit process- Since:
- 5.0
-
-
Method Details
-
isInternal
public boolean isInternal()Whether the index was changed by the same JGit process- Returns:
true
if the index was changed by the same JGit process- Since:
- 5.0
-
getListenerType
Description copied from class:RepositoryEvent
Get type of listener this event dispatches to- Specified by:
getListenerType
in classRepositoryEvent<IndexChangedListener>
- Returns:
- type of listener this event dispatches to
-
dispatch
Description copied from class:RepositoryEvent
Dispatch this event to the given listener.- Specified by:
dispatch
in classRepositoryEvent<IndexChangedListener>
- Parameters:
listener
- listener that wants this event.
-