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);
}
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);
}
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);
}
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);
}
Aggregations