本文整理汇总了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));
}
示例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);
}
示例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;
}
};
}
示例5: show
import com.intellij.ide.actions.ShowSettingsUtilImpl; //导入方法依赖的package包/类
public static void show(@NotNull Project project) {
ShowSettingsUtilImpl.showSettingsDialog(project, "Laravel.SettingsForm", null);
}
示例6: show
import com.intellij.ide.actions.ShowSettingsUtilImpl; //导入方法依赖的package包/类
public static void show(@NotNull Project project) {
ShowSettingsUtilImpl.showSettingsDialog(project, "Symfony2.SettingsForm", null);
}
示例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;
}
};
}
示例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);
}