use of com.intellij.ui.EditorNotificationPanel in project go-lang-idea-plugin by go-lang-plugin-org.
the class GoFileIgnoredByBuildToolNotificationProvider method createIgnoredByBuildToolPanel.
private static EditorNotificationPanel createIgnoredByBuildToolPanel(@NotNull Project project, @NotNull VirtualFile file) {
EditorNotificationPanel panel = new EditorNotificationPanel();
String fileName = file.getName();
panel.setText("'" + fileName + "' will be ignored by build tool since its name starts with '" + fileName.charAt(0) + "'");
panel.createActionLabel("Do not show again", () -> {
PropertiesComponent.getInstance().setValue(DO_NOT_SHOW_NOTIFICATION_ABOUT_IGNORE_BY_BUILD_TOOL, true);
EditorNotifications.getInstance(project).updateAllNotifications();
});
return panel;
}
Aggregations