com.intellij.ide.actions.ShowSettingsUtilImpl Java Examples
The following examples show how to use
com.intellij.ide.actions.ShowSettingsUtilImpl.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: IdeaFrameFixture.java From flutter-intellij with BSD 3-Clause "New" or "Revised" License | 5 votes |
@NotNull public IdeSettingsDialogFixture openIdeSettings() { // Using invokeLater because we are going to show a *modal* dialog via API (instead of clicking a button, for example.) If we use // GuiActionRunner the test will hang until the modal dialog is closed. ApplicationManager.getApplication().invokeLater( () -> { Project project = getProject(); ShowSettingsUtil.getInstance().showSettingsDialog(project, ShowSettingsUtilImpl.getConfigurableGroups(project, true)); }); IdeSettingsDialogFixture settings = IdeSettingsDialogFixture.find(robot()); robot().waitForIdle(); return settings; }
Example #2
Source File: TYPO3CMSProjectSettings.java From idea-php-typo3-plugin with MIT License | 4 votes |
public static void showSettings(@NotNull Project project) { ShowSettingsUtilImpl.showSettingsDialog(project, "TYPO3CMS.SettingsForm", null); }
Example #3
Source File: SettingsForm.java From intellij-neos with GNU General Public License v3.0 | 4 votes |
public static void show(@NotNull Project project) { ShowSettingsUtilImpl.showSettingsDialog(project, "Neos.SettingsForm", null); }
Example #4
Source File: FlutterUtils.java From flutter-intellij with BSD 3-Clause "New" or "Revised" License | 4 votes |
public static void openFlutterSettings(@Nullable Project project) { ShowSettingsUtilImpl.showSettingsDialog(project, FlutterConstants.FLUTTER_SETTINGS_PAGE_ID, ""); }
Example #5
Source File: FlutterSettingsConfigurable.java From flutter-intellij with BSD 3-Clause "New" or "Revised" License | 4 votes |
public static void openFlutterSettings(@NotNull final Project project) { ShowSettingsUtilImpl.showSettingsDialog(project, FlutterConstants.FLUTTER_SETTINGS_PAGE_ID, ""); }
Example #6
Source File: FlutterUtils.java From flutter-intellij with BSD 3-Clause "New" or "Revised" License | 4 votes |
public static void openFlutterSettings(@Nullable Project project) { ShowSettingsUtilImpl.showSettingsDialog(project, FlutterConstants.FLUTTER_SETTINGS_PAGE_ID, ""); }
Example #7
Source File: FlutterSettingsConfigurable.java From flutter-intellij with BSD 3-Clause "New" or "Revised" License | 4 votes |
public static void openFlutterSettings(@NotNull final Project project) { ShowSettingsUtilImpl.showSettingsDialog(project, FlutterConstants.FLUTTER_SETTINGS_PAGE_ID, ""); }
Example #8
Source File: SassLintInspection.java From sass-lint-plugin with MIT License | 4 votes |
public static void showSettings(Project project) { SassLintSettingsPage configurable = new SassLintSettingsPage(project); String dimensionKey = ShowSettingsUtilImpl.createDimensionKey(configurable); SingleConfigurableEditor singleConfigurableEditor = new SingleConfigurableEditor(project, configurable, dimensionKey, false); singleConfigurableEditor.show(); }
Example #9
Source File: ExternalFileProjectManagementHelper.java From intellij with Apache License 2.0 | 4 votes |
@Nullable @Override public EditorNotificationPanel createNotificationPanel(VirtualFile vf, FileEditor fileEditor) { if (!enabled.getValue()) { return null; } if (!BlazeUserSettings.getInstance().getShowAddFileToProjectNotification() || suppressedFiles.contains(new File(vf.getPath()))) { return null; } File file = new File(vf.getPath()); if (!supportedFileType(file)) { return null; } LocationContext context = AddSourceToProjectHelper.getContext(project, vf); if (context == null) { return null; } boolean inProjectDirectories = AddSourceToProjectHelper.sourceInProjectDirectories(context); boolean alreadyBuilt = AddSourceToProjectHelper.sourceCoveredByProjectViewTargets(context); if (alreadyBuilt && inProjectDirectories) { return null; } boolean addTargets = !alreadyBuilt && !AddSourceToProjectHelper.autoDeriveTargets(project); ListenableFuture<List<TargetInfo>> targetsFuture = addTargets ? AddSourceToProjectHelper.getTargetsBuildingSource(context) : Futures.immediateFuture(ImmutableList.of()); if (targetsFuture == null) { return null; } EditorNotificationPanel panel = new EditorNotificationPanel(); panel.setVisible(false); // starts off not visible until we get the query results panel.setText("Do you want to add this file to your project sources?"); panel.createActionLabel( "Add file to project", () -> { AddSourceToProjectHelper.addSourceToProject( project, context.workspacePath, inProjectDirectories, targetsFuture); EditorNotifications.getInstance(project).updateNotifications(vf); }); panel.createActionLabel( "Hide notification", () -> { // suppressed for this file until the editor is restarted suppressedFiles.add(file); EditorNotifications.getInstance(project).updateNotifications(vf); }); panel.createActionLabel( "Don't show again", () -> { // disables the notification permanently, and focuses the relevant setting, so users know // how to turn it back on BlazeUserSettings.getInstance().setShowAddFileToProjectNotification(false); ShowSettingsUtilImpl.showSettingsDialog( project, BlazeUserSettingsCompositeConfigurable.ID, BlazeUserSettingsConfigurable.SHOW_ADD_FILE_TO_PROJECT.label()); }); targetsFuture.addListener( () -> { try { List<TargetInfo> targets = targetsFuture.get(); if (!targets.isEmpty() || !inProjectDirectories) { panel.setVisible(true); } } catch (InterruptedException | ExecutionException e) { // ignore } }, MoreExecutors.directExecutor()); return panel; }
Example #10
Source File: RTInspection.java From react-templates-plugin with MIT License | 4 votes |
public static void showSettings(Project project) { RTSettingsPage configurable = new RTSettingsPage(project); String dimensionKey = ShowSettingsUtilImpl.createDimensionKey(configurable); SingleConfigurableEditor singleConfigurableEditor = new SingleConfigurableEditor(project, configurable, dimensionKey, false); singleConfigurableEditor.show(); }
Example #11
Source File: RTInspection.java From react-templates-plugin with MIT License | 4 votes |
public static void showSettings(Project project) { RTSettingsPage configurable = new RTSettingsPage(project); String dimensionKey = ShowSettingsUtilImpl.createDimensionKey(configurable); SingleConfigurableEditor singleConfigurableEditor = new SingleConfigurableEditor(project, configurable, dimensionKey, false); singleConfigurableEditor.show(); }
Example #12
Source File: LaravelProjectSettingsForm.java From idea-php-laravel-plugin with MIT License | 4 votes |
public static void show(@NotNull Project project) { ShowSettingsUtilImpl.showSettingsDialog(project, "Laravel.SettingsForm", null); }
Example #13
Source File: ESLintInspection.java From eslint-plugin with MIT License | 4 votes |
public static void showSettings(Project project) { ESLintSettingsPage configurable = new ESLintSettingsPage(project); String dimensionKey = ShowSettingsUtilImpl.createDimensionKey(configurable); SingleConfigurableEditor singleConfigurableEditor = new SingleConfigurableEditor(project, configurable, dimensionKey, false); singleConfigurableEditor.show(); }
Example #14
Source File: SettingsForm.java From idea-php-symfony2-plugin with MIT License | 4 votes |
public static void show(@NotNull Project project) { ShowSettingsUtilImpl.showSettingsDialog(project, "Symfony2.SettingsForm", null); }