Package org.eclipse.cdt.core.index
Interface IIndexChangeEvent
public interface IIndexChangeEvent
IndexChangeEvents describe changes to the index.
- Since:
- 4.0
- Restriction:
- This interface is not intended to be implemented by clients.
- Restriction:
- This interface is not intended to be extended by clients.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the project for which the index has changed.Returns the set of files that has been cleared in the index.Returns the set of files that has been added or updated.boolean
Returnstrue
when a new file had been added to the index.boolean
Returnstrue
when the index for the project was cleared.boolean
Returnstrue
when the index for the project was loaded for the first time or reloaded with a different database.
-
Method Details
-
getAffectedProject
ICProject getAffectedProject()Returns the project for which the index has changed. -
isReloaded
boolean isReloaded()Returnstrue
when the index for the project was loaded for the first time or reloaded with a different database. -
isCleared
boolean isCleared()Returnstrue
when the index for the project was cleared. -
getFilesCleared
Set<IIndexFileLocation> getFilesCleared()Returns the set of files that has been cleared in the index. WhenisCleared()
returnstrue
, the set will be empty. -
getFilesWritten
Set<IIndexFileLocation> getFilesWritten()Returns the set of files that has been added or updated. WhenisCleared()
returnstrue
, the files of the set have been written after the index was cleared. -
hasNewFile
boolean hasNewFile()Returnstrue
when a new file had been added to the index.- Since:
- 5.2
-