use of org.infernus.idea.checkstyle.toolwindow.CheckStyleToolWindowPanel in project checkstyle-idea by jshiell.
the class DisplayInfo method isSelected.
@Override
public boolean isSelected(final AnActionEvent event) {
final Project project = getEventProject(event);
if (project == null) {
return false;
}
Boolean displayingInfo = getFromToolWindowPanel(toolWindow(project), CheckStyleToolWindowPanel::isDisplayingInfo);
if (displayingInfo != null) {
return displayingInfo;
}
return false;
}
use of org.infernus.idea.checkstyle.toolwindow.CheckStyleToolWindowPanel in project checkstyle-idea by jshiell.
the class ScanFilesBeforeCheckinHandler method showResultsInToolWindow.
private void showResultsInToolWindow(final Map<PsiFile, List<Problem>> results, final CheckStylePlugin plugin) {
final CheckStyleToolWindowPanel toolWindowPanel = CheckStyleToolWindowPanel.panelFor(plugin.getProject());
if (toolWindowPanel != null) {
toolWindowPanel.displayResults(results);
toolWindowPanel.showToolWindow();
}
}
use of org.infernus.idea.checkstyle.toolwindow.CheckStyleToolWindowPanel in project checkstyle-idea by jshiell.
the class DisplayErrors method isSelected.
@Override
public boolean isSelected(final AnActionEvent event) {
final Project project = getEventProject(event);
if (project == null) {
return false;
}
Boolean displayingErrors = getFromToolWindowPanel(toolWindow(project), CheckStyleToolWindowPanel::isDisplayingErrors);
if (displayingErrors != null) {
return displayingErrors;
}
return false;
}
use of org.infernus.idea.checkstyle.toolwindow.CheckStyleToolWindowPanel in project checkstyle-idea by jshiell.
the class DisplayWarnings method isSelected.
@Override
public boolean isSelected(final AnActionEvent event) {
final Project project = getEventProject(event);
if (project == null) {
return false;
}
Boolean displayingWarnings = getFromToolWindowPanel(toolWindow(project), CheckStyleToolWindowPanel::isDisplayingWarnings);
if (displayingWarnings != null) {
return displayingWarnings;
}
return false;
}
Aggregations