com.intellij.openapi.options.ex.SingleConfigurableEditor Java Examples
The following examples show how to use
com.intellij.openapi.options.ex.SingleConfigurableEditor.
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: ProjectMacrosUtil.java From consulo with Apache License 2.0 | 5 votes |
public static boolean showMacrosConfigurationDialog(Project project, final Collection<String> undefinedMacros) { final String text = ProjectBundle.message("project.load.undefined.path.variables.message"); final Application application = ApplicationManager.getApplication(); if (application.isHeadlessEnvironment() || application.isUnitTestMode()) { throw new RuntimeException(text + ": " + StringUtil.join(undefinedMacros, ", ")); } final UndefinedMacrosConfigurable configurable = new UndefinedMacrosConfigurable(text, undefinedMacros); final SingleConfigurableEditor editor = new SingleConfigurableEditor(project, configurable); editor.show(); return editor.isOK(); }
Example #2
Source File: RunDialog.java From consulo with Apache License 2.0 | 5 votes |
public static boolean editConfiguration(final Project project, final RunnerAndConfigurationSettings configuration, final String title, @Nullable final Executor executor) { final SingleConfigurationConfigurable<RunConfiguration> configurable = SingleConfigurationConfigurable.editSettings(configuration, executor); final SingleConfigurableEditor dialog = new SingleConfigurableEditor(project, configurable, IdeModalityType.PROJECT) { { if (executor != null) setOKButtonText(executor.getActionName()); if (executor != null) setOKButtonIcon(TargetAWT.to(executor.getIcon())); } }; dialog.setTitle(title); dialog.show(); return dialog.isOK(); }
Example #3
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 #4
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 #5
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 #6
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(); }