Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,12 @@ DartProblemsPresentationHelper getPresentationHelper() {
return content != null ? (DartProblemsViewPanel)content.getComponent() : null;
}

// Inlined from `ActionCenter` (where it was removed).
// see: https://github.com/flutter/dart-intellij-third-party/issues/80
private static @Nullable ToolWindow getToolWindow(@Nullable Project project) {
return project == null ? null : ToolWindowManager.getInstance(project).getToolWindow("Notifications");
}

void setTabTitle(@TabTitle @NotNull String tabTitle) {
ToolWindow toolWindow = getDartAnalysisToolWindow();
Content content = toolWindow != null ? toolWindow.getContentManager().getContent(0) : null;
Expand Down Expand Up @@ -251,9 +257,7 @@ else if ("never.show.again".equals(e.getDescription())) {
@Override
protected void hyperlinkActivated(@NotNull Notification notification, @NotNull HyperlinkEvent e) {
notification.expire();
// 2025.1, 251 change in platform, see
// https://github.com/JetBrains/intellij-plugins/commit/762b22a5626c1b47f133cefb483bbc16178caee3
final ToolWindow toolWindow = ActionCenter.getToolWindow(myProject);
final ToolWindow toolWindow = getToolWindow(myProject);
if (toolWindow != null) toolWindow.activate(null);
// ActionCenter.activateLog(myProject);
}
Expand Down
Loading