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


Java ShowSettingsUtilImpl.showSettingsDialog方法代码示例

本文整理汇总了Java中com.intellij.ide.actions.ShowSettingsUtilImpl.showSettingsDialog方法的典型用法代码示例。如果您正苦于以下问题:Java ShowSettingsUtilImpl.showSettingsDialog方法的具体用法?Java ShowSettingsUtilImpl.showSettingsDialog怎么用?Java ShowSettingsUtilImpl.showSettingsDialog使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.intellij.ide.actions.ShowSettingsUtilImpl的用法示例。


在下文中一共展示了ShowSettingsUtilImpl.showSettingsDialog方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: createForcePushInfoLabel

import com.intellij.ide.actions.ShowSettingsUtilImpl; //导入方法依赖的package包/类
@NotNull
private JComponent createForcePushInfoLabel() {
  JPanel text = new JPanel();
  text.setLayout(new BoxLayout(text, BoxLayout.X_AXIS));
  JLabel label = new JLabel("You can enable and configure Force Push in " + ShowSettingsUtil.getSettingsMenuName() + ".");
  label.setEnabled(false);
  label.setFont(JBUI.Fonts.smallFont());
  text.add(label);
  ActionLink here = new ActionLink("Configure", new AnAction() {
    @Override
    public void actionPerformed(AnActionEvent e) {
      Project project = myController.getProject();
      VcsPushDialog.this.doCancelAction(e.getInputEvent());
      ShowSettingsUtilImpl.showSettingsDialog(project, "vcs.Git", "force push");
    }
  });
  here.setFont(JBUI.Fonts.smallFont());
  text.add(here);
  return JBUI.Panels.simplePanel().addToRight(text).withBorder(JBUI.Borders.emptyBottom(4));
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:21,代码来源:VcsPushDialog.java

示例2: getConfigureAction

import com.intellij.ide.actions.ShowSettingsUtilImpl; //导入方法依赖的package包/类
@NotNull
protected Runnable getConfigureAction() {
    return () -> {
        ShowSettingsUtilImpl.showSettingsDialog(myProject, NodeSettingsConfigurable.ID, "Node interpreter");
        myNotifications.updateAllNotifications();
    };
}
 
开发者ID:jimkyndemeyer,项目名称:js-graphql-intellij-plugin,代码行数:8,代码来源:JSGraphQLNodeInterpreterEditorNotificationProvider.java

示例3: show

import com.intellij.ide.actions.ShowSettingsUtilImpl; //导入方法依赖的package包/类
public static void show(@NotNull Project project) {
    ShowSettingsUtilImpl.showSettingsDialog(project, "Neos.SettingsForm", null);
}
 
开发者ID:cvette,项目名称:intellij-neos,代码行数:4,代码来源:SettingsForm.java

示例4: getNotificationInfo

import com.intellij.ide.actions.ShowSettingsUtilImpl; //导入方法依赖的package包/类
@Nullable
@Override
public EditorNotificationInfo getNotificationInfo(@NotNull final Project project,
                                                  @NotNull final VirtualFile file,
                                                  @NotNull final FileEditor fileEditor,
                                                  @NotNull CommonCodeStyleSettings.IndentOptions userOptions,
                                                  @NotNull CommonCodeStyleSettings.IndentOptions detectedOptions)
{
  final NotificationLabels labels = getNotificationLabels(userOptions, detectedOptions);
  final Editor editor = fileEditor instanceof TextEditor ? ((TextEditor)fileEditor).getEditor() : null;
  if (labels == null || editor == null) return null;

  ActionLabelData okAction = new ActionLabelData(
    ApplicationBundle.message("code.style.indents.detector.accept"),
    new Runnable() {
      @Override
      public void run() {
        setAccepted(file);
      }
    }
  );

  ActionLabelData disableForSingleFile = new ActionLabelData(
    labels.revertToOldSettingsLabel,
    new Runnable() {
      @Override
      public void run() {
        disableForFile(file);
        if (editor instanceof EditorEx) {
          ((EditorEx)editor).reinitSettings();
        }
      }
    }
  );

  ActionLabelData showSettings = new ActionLabelData(
    ApplicationBundle.message("code.style.indents.detector.show.settings"),
    new Runnable() {
      @Override
      public void run() {
        ShowSettingsUtilImpl.showSettingsDialog(project, "preferences.sourceCode", "detect indent");
      }
    }
  );

  final List<ActionLabelData> actions = ContainerUtil.newArrayList(okAction, disableForSingleFile, showSettings);
  return new EditorNotificationInfo() {
    @NotNull
    @Override
    public List<ActionLabelData> getLabelAndActions() {
      return actions;
    }

    @NotNull
    @Override
    public String getTitle() {
      return labels.title;
    }
  };
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:61,代码来源:DetectableIndentOptionsProvider.java

示例5: show

import com.intellij.ide.actions.ShowSettingsUtilImpl; //导入方法依赖的package包/类
public static void show(@NotNull Project project) {
    ShowSettingsUtilImpl.showSettingsDialog(project, "Laravel.SettingsForm", null);
}
 
开发者ID:Haehnchen,项目名称:idea-php-laravel-plugin,代码行数:4,代码来源:LaravelProjectSettingsForm.java

示例6: show

import com.intellij.ide.actions.ShowSettingsUtilImpl; //导入方法依赖的package包/类
public static void show(@NotNull Project project) {
    ShowSettingsUtilImpl.showSettingsDialog(project, "Symfony2.SettingsForm", null);
}
 
开发者ID:Haehnchen,项目名称:idea-php-symfony2-plugin,代码行数:4,代码来源:SettingsForm.java

示例7: getNotificationInfo

import com.intellij.ide.actions.ShowSettingsUtilImpl; //导入方法依赖的package包/类
@Nullable
@Override
public EditorNotificationInfo getNotificationInfo(@Nonnull final Project project,
                                                  @Nonnull final VirtualFile file,
                                                  @Nonnull final FileEditor fileEditor,
                                                  @Nonnull CommonCodeStyleSettings.IndentOptions userOptions,
                                                  @Nonnull CommonCodeStyleSettings.IndentOptions detectedOptions)
{
  final NotificationLabels labels = getNotificationLabels(userOptions, detectedOptions);
  final Editor editor = fileEditor instanceof TextEditor ? ((TextEditor)fileEditor).getEditor() : null;
  if (labels == null || editor == null) return null;

  ActionLabelData okAction = new ActionLabelData(
          ApplicationBundle.message("code.style.indents.detector.accept"),
          new Runnable() {
            @Override
            public void run() {
              setAccepted(file);
            }
          }
  );

  ActionLabelData disableForSingleFile = new ActionLabelData(
          labels.revertToOldSettingsLabel,
          new Runnable() {
            @Override
            public void run() {
              disableForFile(file);
              if (editor instanceof EditorEx) {
                ((EditorEx)editor).reinitSettings();
              }
            }
          }
  );

  ActionLabelData showSettings = new ActionLabelData(
          ApplicationBundle.message("code.style.indents.detector.show.settings"),
          new Runnable() {
            @Override
            public void run() {
              ShowSettingsUtilImpl.showSettingsDialog(project, "preferences.sourceCode", "detect indent");
            }
          }
  );

  final List<ActionLabelData> actions = ContainerUtil.newArrayList(okAction, disableForSingleFile, showSettings);
  return new EditorNotificationInfo() {
    @Nonnull
    @Override
    public List<ActionLabelData> getLabelAndActions() {
      return actions;
    }

    @Nonnull
    @Override
    public String getTitle() {
      return labels.title;
    }
  };
}
 
开发者ID:consulo,项目名称:consulo,代码行数:61,代码来源:DetectableIndentOptionsProvider.java

示例8: show

import com.intellij.ide.actions.ShowSettingsUtilImpl; //导入方法依赖的package包/类
/**
 * Helper method to invoke this project settings page in the settings from everywhere
 *
 * @param project current project
 */
public static void show(@NotNull Project project) {
    ShowSettingsUtilImpl.showSettingsDialog(project, "preferences.Grav.ProjectSettings", null);
}
 
开发者ID:PioBeat,项目名称:GravSupport,代码行数:9,代码来源:GravProjectConfigurable.java


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