当前位置: 首页>>代码示例>>Java>>正文


Java OptionsEditorDialog类代码示例

本文整理汇总了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));
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:17,代码来源:ShowStructureSettingsAction.java

示例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));
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:16,代码来源:ShowStructureSettingsAction.java

示例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);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:15,代码来源:ShowSettingsUtilImpl.java

示例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();
    }
  }
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:13,代码来源:ShowSettingsUtilImpl.java

示例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();
  }
}
 
开发者ID:consulo,项目名称:consulo,代码行数:9,代码来源:ShowSettingsUtilImpl.java

示例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();
}
 
开发者ID:consulo,项目名称:consulo,代码行数:15,代码来源:ProjectStructureDialog.java

示例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);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:7,代码来源:AndroidTemplateProjectStructureAction.java

示例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));
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:5,代码来源:TemplateProjectStructureAction.java

示例9: getDimensionServiceKey

import com.intellij.openapi.options.newEditor.OptionsEditorDialog; //导入依赖的package包/类
@Override
protected String getDimensionServiceKey() {
  return OptionsEditorDialog.DIMENSION_KEY;
}
 
开发者ID:consulo,项目名称:consulo,代码行数:5,代码来源:ProjectStructureDialog.java


注:本文中的com.intellij.openapi.options.newEditor.OptionsEditorDialog类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。