void () { ApplicationManager.getApplication().invokeLater(() -> { GotItTooltip gotItTooltip = new GotItTooltip(WEB_PREVIEW_RELOAD_TOOLTIP_ID, BuiltInServerBundle.message("reload.on.save.preview.got.it.content"), this); if (!gotItTooltip.canShow()) return; if (WebBrowserManager.PREVIEW_RELOAD_MODE_DEFAULT != ReloadMode.RELOAD_ON_SAVE) { Logger.getInstance(WebPreviewFileEditor.class).error( "Default value for " + BuiltInServerBundle.message("reload.on.save.preview.got.it.title") + " has changed, tooltip is outdated."); return; } if (WebBrowserManager.getInstance().getWebPreviewReloadMode() != ReloadMode.RELOAD_ON_SAVE) { // changed before gotIt was shown return; } gotItTooltip .withHeader(BuiltInServerBundle.message("reload.on.save.preview.got.it.title")) .withPosition(Balloon.Position.above) .withLink(CommonBundle.message("action.text.configure.ellipsis"), () -> { ShowSettingsUtil.getInstance().showSettingsDialog( null, (it) -> it instanceof SearchableConfigurable && ((SearchableConfigurable)it).getId().equals("reference.settings.ide.settings.web.browsers"), null); }); gotItTooltip.show(myPanel.getComponent(), (c, b) -> new Point(0, 0) ); }); }