Search in sources :

Example 1 with IndexDataGetter

use of com.intellij.vcs.log.data.index.IndexDataGetter in project intellij-community by JetBrains.

the class IndexSpeedSearch method getCommitSubject.

@Nullable
private String getCommitSubject(@NotNull Integer row) {
    IndexDataGetter dataGetter = myIndex.getDataGetter();
    if (dataGetter != null) {
        Integer id = myComponent.getModel().getIdAtRow(row);
        String message = dataGetter.getFullMessage(id);
        if (message != null)
            return IndexedDetails.getSubject(message);
    }
    return super.getElementText(row);
}
Also used : IndexDataGetter(com.intellij.vcs.log.data.index.IndexDataGetter) Nullable(org.jetbrains.annotations.Nullable)

Aggregations

IndexDataGetter (com.intellij.vcs.log.data.index.IndexDataGetter)1 Nullable (org.jetbrains.annotations.Nullable)1