本文整理汇总了Java中com.intellij.openapi.options.newEditor.OptionsEditorDialog类的典型用法代码示例。如果您正苦于以下问题:Java OptionsEditorDialog类的具体用法?Java OptionsEditorDialog怎么用?Java OptionsEditorDialog使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
OptionsEditorDialog类属于com.intellij.openapi.options.newEditor包,在下文中一共展示了OptionsEditorDialog类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: actionPerformed
import com.intellij.openapi.options.newEditor.OptionsEditorDialog; //导入依赖的package包/类
public void actionPerformed(AnActionEvent e) {
Project project = PlatformDataKeys.PROJECT.getData(e.getDataContext());
if (project == null) {
project = ProjectManager.getInstance().getDefaultProject();
}
// TEMPORARY HACK! DO NOT MERGE INTO INTELLIJ. This just works around a lot
// of confusion caused by the fact that the structure dialog lets you edit
// project state which is ignored by gradle, so temporarily disable this
// dialog for Android-Gradle-based projects.
if (isGradleProject(project)) {
showDisabledProjectStructureDialogMessage();
}
ShowSettingsUtil.getInstance().editConfigurable(project, OptionsEditorDialog.DIMENSION_KEY, ProjectStructureConfigurable.getInstance(project));
}
示例2: showDialog
import com.intellij.openapi.options.newEditor.OptionsEditorDialog; //导入依赖的package包/类
static void showDialog(Project project) {
if (Registry.is("ide.new.project.settings")) {
new SingleConfigurableEditor(project, ProjectStructureConfigurable.getInstance(project), OptionsEditorDialog.DIMENSION_KEY) {
@NotNull
@Override
protected DialogStyle getStyle() {
return DialogStyle.COMPACT;
}
}.show();
}
else {
ShowSettingsUtil
.getInstance().editConfigurable(project, OptionsEditorDialog.DIMENSION_KEY, ProjectStructureConfigurable.getInstance(project));
}
}
示例3: getDialog
import com.intellij.openapi.options.newEditor.OptionsEditorDialog; //导入依赖的package包/类
@NotNull
public static DialogWrapper getDialog(@Nullable Project project, @NotNull ConfigurableGroup[] groups, @Nullable Configurable toSelect) {
project = getProject(project);
final ConfigurableGroup[] filteredGroups = filterEmptyGroups(groups);
if (Registry.is("ide.new.settings.dialog")) {
return Registry.is("ide.new.settings.view")
? new SettingsDialog(project, filteredGroups, toSelect, null)
: new IdeSettingsDialog(project, filteredGroups, toSelect);
}
//noinspection deprecation
return Registry.is("ide.perProjectModality")
? new OptionsEditorDialog(project, filteredGroups, toSelect, true)
: new OptionsEditorDialog(project, filteredGroups, toSelect);
}
示例4: _showSettingsDialog
import com.intellij.openapi.options.newEditor.OptionsEditorDialog; //导入依赖的package包/类
private static void _showSettingsDialog(final Project project, ConfigurableGroup[] group, @Nullable Configurable toSelect) {
group = filterEmptyGroups(group);
if (Registry.is("ide.mac.modalDialogsOnFullscreen")) {
new OptionsEditorDialog(project, group, toSelect, true).show();
} else {
if (Registry.is("ide.new.preferences")) {
new PreferencesDialog(project, group).show();
} else {
new OptionsEditorDialog(project, group, toSelect).show();
}
}
}
示例5: _showSettingsDialog
import com.intellij.openapi.options.newEditor.OptionsEditorDialog; //导入依赖的package包/类
private static void _showSettingsDialog(@Nonnull final Project project, @Nonnull Configurable[] configurables, @Nullable Configurable toSelect) {
if (ModalityPerProjectEAPDescriptor.is()) {
new OptionsEditorDialog(project, configurables, toSelect, true).show();
}
else {
new OptionsEditorDialog(project, configurables, toSelect).show();
}
}
示例6: show
import com.intellij.openapi.options.newEditor.OptionsEditorDialog; //导入依赖的package包/类
public static boolean show(@Nonnull Project project, final Consumer<ProjectStructureConfigurable> configurableConsumer) {
final ProjectStructureConfigurable configurable = ProjectStructureConfigurable.getInstance(project);
ProjectStructureDialog dialog =
new ProjectStructureDialog(project, configurable, OptionsEditorDialog.DIMENSION_KEY, true, IdeModalityType.PROJECT, configurable);
if (configurableConsumer != null) {
new UiNotifyConnector.Once(dialog.getContentPane(), new Activatable() {
@Override
public void showNotify() {
configurableConsumer.consume(configurable);
}
});
}
return dialog.showAndGet();
}
示例7: actionPerformed
import com.intellij.openapi.options.newEditor.OptionsEditorDialog; //导入依赖的package包/类
@Override
public void actionPerformed(final AnActionEvent e) {
Project defaultProject = ProjectManagerEx.getInstanceEx().getDefaultProject();
AndroidProjectStructureConfigurable configurable = AndroidProjectStructureConfigurable.getInstance(defaultProject);
ShowSettingsUtil.getInstance().editConfigurable(defaultProject, OptionsEditorDialog.DIMENSION_KEY, configurable, true);
}
示例8: actionPerformed
import com.intellij.openapi.options.newEditor.OptionsEditorDialog; //导入依赖的package包/类
public void actionPerformed(final AnActionEvent e) {
Project defaultProject = ProjectManagerEx.getInstanceEx().getDefaultProject();
ShowSettingsUtil.getInstance().editConfigurable(defaultProject, OptionsEditorDialog.DIMENSION_KEY, ProjectStructureConfigurable.getInstance(defaultProject));
}
示例9: getDimensionServiceKey
import com.intellij.openapi.options.newEditor.OptionsEditorDialog; //导入依赖的package包/类
@Override
protected String getDimensionServiceKey() {
return OptionsEditorDialog.DIMENSION_KEY;
}