Top Description Fields Constructors Methods
org.eclipse.jgit.events

public Class WorkingTreeModifiedEvent

extends RepositoryEvent<WorkingTreeModifiedListener>
Class Inheritance
Imports
java.util.Collection, .Collections, org.eclipse.jgit.annotations.NonNull

A org.eclipse.jgit.events.RepositoryEvent describing changes to the working tree. It is fired whenever a org.eclipse.jgit.dircache.DirCacheCheckout modifies (adds/deletes/updates) files in the working tree.
Since
4.9

Field Summary

Modifier and TypeField and Description
private Collection<String>
private Collection<String>

Constructor Summary

AccessConstructor and Description
public
WorkingTreeModifiedEvent(Collection<String>
repository-relative paths that were added or updated
modified
,
Collection<String>
repository-relative paths that were deleted
deleted
)

Creates a new org.eclipse.jgit.events.WorkingTreeModifiedEvent with the given collections.

Method Summary

Modifier and TypeMethod and Description
public void
dispatch(WorkingTreeModifiedListener
listener that wants this event.
listener
)

Implements abstract org.eclipse.jgit.events.RepositoryEvent.dispatch.

Dispatch this event to the given listener.

public Collection<String>

Returns:

the set
getDeleted
()

Retrieves the java.util.Collection of repository-relative paths of files that were deleted.

public Class<WorkingTreeModifiedListener>
getListenerType()

Implements abstract org.eclipse.jgit.events.RepositoryEvent.getListenerType.

Get type of listener this event dispatches to

public Collection<String>

Returns:

the set
getModified
()

Retrieves the java.util.Collection of repository-relative paths of files that were modified (added or updated).

public boolean

Returns:

true if no files were modified or deleted, false otherwise
isEmpty
()

Determines whether there are any changes recorded in this event.

Inherited from org.eclipse.jgit.events.RepositoryEvent:
getRepositorysetRepositorytoString

Field Detail

deletedback to summary
private Collection<String> deleted
modifiedback to summary
private Collection<String> modified

Constructor Detail

WorkingTreeModifiedEventback to summary
public WorkingTreeModifiedEvent(Collection<String> modified, Collection<String> deleted)

Creates a new org.eclipse.jgit.events.WorkingTreeModifiedEvent with the given collections.

Parameters
modified:Collection<String>

repository-relative paths that were added or updated

deleted:Collection<String>

repository-relative paths that were deleted

Method Detail

dispatchback to summary
public void dispatch(WorkingTreeModifiedListener listener)

Implements abstract org.eclipse.jgit.events.RepositoryEvent.dispatch.

Doc from org.eclipse.jgit.events.RepositoryEvent.dispatch.

Dispatch this event to the given listener.

Parameters
listener:WorkingTreeModifiedListener

listener that wants this event.

Annotations
@Override
getDeletedback to summary
public Collection<String> getDeleted()

Retrieves the java.util.Collection of repository-relative paths of files that were deleted.

Returns:Collection<String>

the set

Annotations
@NonNull
getListenerTypeback to summary
public Class<WorkingTreeModifiedListener> getListenerType()

Implements abstract org.eclipse.jgit.events.RepositoryEvent.getListenerType.

Doc from org.eclipse.jgit.events.RepositoryEvent.getListenerType.

Get type of listener this event dispatches to

Returns:Class<WorkingTreeModifiedListener>

type of listener this event dispatches to

Annotations
@Override
getModifiedback to summary
public Collection<String> getModified()

Retrieves the java.util.Collection of repository-relative paths of files that were modified (added or updated).

Returns:Collection<String>

the set

Annotations
@NonNull
isEmptyback to summary
public boolean isEmpty()

Determines whether there are any changes recorded in this event.

Returns:boolean

true if no files were modified or deleted, false otherwise