Search in sources :

Example 11 with VcsLogUi

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

the class VcsLogGearActionGroup method update.

@Override
public void update(@NotNull AnActionEvent e) {
    Project project = e.getProject();
    VcsLogUi logUi = e.getData(VcsLogDataKeys.VCS_LOG_UI);
    e.getPresentation().setEnabledAndVisible(project != null && logUi != null);
}
Also used : Project(com.intellij.openapi.project.Project) VcsLogUi(com.intellij.vcs.log.VcsLogUi)

Example 12 with VcsLogUi

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

the class GoToHashOrRefAction method update.

@Override
public void update(AnActionEvent e) {
    VcsLog log = e.getData(VcsLogDataKeys.VCS_LOG);
    VcsLogUi logUi = e.getData(VcsLogDataKeys.VCS_LOG_UI);
    e.getPresentation().setEnabledAndVisible(e.getProject() != null && log != null && logUi != null && logUi instanceof AbstractVcsLogUi);
}
Also used : VcsLog(com.intellij.vcs.log.VcsLog) AbstractVcsLogUi(com.intellij.vcs.log.ui.AbstractVcsLogUi) AbstractVcsLogUi(com.intellij.vcs.log.ui.AbstractVcsLogUi) VcsLogUi(com.intellij.vcs.log.VcsLogUi)

Example 13 with VcsLogUi

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

the class ShowLongEdgesAction method update.

@Override
public void update(@NotNull AnActionEvent e) {
    super.update(e);
    VcsLogUi ui = e.getData(VcsLogDataKeys.VCS_LOG_UI);
    if (ui != null && !ui.areGraphActionsEnabled())
        e.getPresentation().setEnabled(false);
}
Also used : VcsLogUi(com.intellij.vcs.log.VcsLogUi)

Example 14 with VcsLogUi

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

the class ShowRootsColumnAction method update.

@Override
public void update(@NotNull AnActionEvent e) {
    super.update(e);
    VcsLogUi ui = e.getData(VcsLogDataKeys.VCS_LOG_UI);
    if (ui == null || !ui.isMultipleRoots())
        e.getPresentation().setEnabledAndVisible(false);
}
Also used : VcsLogUi(com.intellij.vcs.log.VcsLogUi)

Aggregations

VcsLogUi (com.intellij.vcs.log.VcsLogUi)14 Project (com.intellij.openapi.project.Project)4 MainVcsLogUiProperties (com.intellij.vcs.log.impl.MainVcsLogUiProperties)4 VcsLogUiProperties (com.intellij.vcs.log.impl.VcsLogUiProperties)4 AbstractVcsLogUi (com.intellij.vcs.log.ui.AbstractVcsLogUi)4 VcsLog (com.intellij.vcs.log.VcsLog)2 AnAction (com.intellij.openapi.actionSystem.AnAction)1 AnActionEvent (com.intellij.openapi.actionSystem.AnActionEvent)1 ListPopup (com.intellij.openapi.ui.popup.ListPopup)1 StringUtil (com.intellij.openapi.util.text.StringUtil)1 VirtualFile (com.intellij.openapi.vfs.VirtualFile)1 Function (com.intellij.util.Function)1 ContainerUtil (com.intellij.util.containers.ContainerUtil)1 VcsLogDataKeys (com.intellij.vcs.log.VcsLogDataKeys)1 VcsLogProperties (com.intellij.vcs.log.VcsLogProperties)1 VcsLogProvider (com.intellij.vcs.log.VcsLogProvider)1 PermanentGraph (com.intellij.vcs.log.graph.PermanentGraph)1 FileHistoryUi (com.intellij.vcs.log.history.FileHistoryUi)1 VcsGoToRefComparator (com.intellij.vcs.log.impl.VcsGoToRefComparator)1 VcsLogManager (com.intellij.vcs.log.impl.VcsLogManager)1