Search in sources :

Example 6 with AbstractVcsLogUi

use of com.intellij.vcs.log.ui.AbstractVcsLogUi in project intellij-community by JetBrains.

the class ShowCommitTooltipAction method actionPerformed.

@Override
public void actionPerformed(@NotNull AnActionEvent e) {
    VcsLogUtil.triggerUsage(e);
    VcsLogGraphTable table = ((AbstractVcsLogUi) e.getRequiredData(VcsLogDataKeys.VCS_LOG_UI)).getTable();
    int row = table.getSelectedRow();
    if (ScrollingUtil.isVisible(table, row)) {
        table.showTooltip(row);
    }
}
Also used : AbstractVcsLogUi(com.intellij.vcs.log.ui.AbstractVcsLogUi) VcsLogGraphTable(com.intellij.vcs.log.ui.table.VcsLogGraphTable)

Aggregations

AbstractVcsLogUi (com.intellij.vcs.log.ui.AbstractVcsLogUi)6 VcsLogUi (com.intellij.vcs.log.VcsLogUi)4 Project (com.intellij.openapi.project.Project)2 VcsLog (com.intellij.vcs.log.VcsLog)2 VirtualFile (com.intellij.openapi.vfs.VirtualFile)1 ToolWindow (com.intellij.openapi.wm.ToolWindow)1 ContentManager (com.intellij.ui.content.ContentManager)1 VcsGoToRefComparator (com.intellij.vcs.log.impl.VcsGoToRefComparator)1 VcsLogManager (com.intellij.vcs.log.impl.VcsLogManager)1 VcsLogPanel (com.intellij.vcs.log.ui.VcsLogPanel)1 VcsLogGraphTable (com.intellij.vcs.log.ui.table.VcsLogGraphTable)1 VisiblePackRefresher (com.intellij.vcs.log.visible.VisiblePackRefresher)1