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


Java ShowSettingsUtilImpl.createDimensionKey方法代码示例

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


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

示例1: actionPerformed

import com.intellij.ide.actions.ShowSettingsUtilImpl; //导入方法依赖的package包/类
@Override
public void actionPerformed(ActionEvent e) {
  final PluginManagerConfigurable configurable = createAvailableConfigurable(myVendor);
  final SingleConfigurableEditor configurableEditor =
    new SingleConfigurableEditor(myActionsPanel, configurable, ShowSettingsUtilImpl.createDimensionKey(configurable), false) {
      {
        setOKButtonText(CommonBundle.message("close.action.name"));
        setOKButtonMnemonic('C');
        final String filter = myFilter.getFilter();
        if (!StringUtil.isEmptyOrSpaces(filter)) {
          final Runnable searchRunnable = configurable.enableSearch(filter);
          LOG.assertTrue(searchRunnable != null);
          searchRunnable.run();
        }
      }

      @NotNull
      @Override
      protected Action[] createActions() {
        return new Action[]{getOKAction()};
      }
    };
  configurableEditor.show();
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:25,代码来源:InstalledPluginsManagerMain.java

示例2: AvailablePluginsDialog

import com.intellij.ide.actions.ShowSettingsUtilImpl; //导入方法依赖的package包/类
public AvailablePluginsDialog(Component parent, SearchableConfigurable configurable, FilterComponent myFilter) {
  super(parent, configurable, ShowSettingsUtilImpl.createDimensionKey(configurable), false);

  setOKButtonText(CommonBundle.message("close.action.name"));
  setOKButtonMnemonic('C');
  final String filter = myFilter.getFilter();

  if (!StringUtil.isEmptyOrSpaces(filter)) {
    final Runnable searchRunnable = configurable.enableSearch(filter);
    LOGGER.assertTrue(searchRunnable != null);
    searchRunnable.run();
  }
}
 
开发者ID:consulo,项目名称:consulo,代码行数:14,代码来源:AvailablePluginsDialog.java

示例3: showSettings

import com.intellij.ide.actions.ShowSettingsUtilImpl; //导入方法依赖的package包/类
public void showSettings() {
    String dimensionKey = ShowSettingsUtilImpl.createDimensionKey(this);
    SingleConfigurableEditor singleConfigurableEditor = new SingleConfigurableEditor(project, this, dimensionKey, false);
    singleConfigurableEditor.show();
}
 
开发者ID:sertae,项目名称:stylint-plugin,代码行数:6,代码来源:StylintSettingsPage.java

示例4: showSettings

import com.intellij.ide.actions.ShowSettingsUtilImpl; //导入方法依赖的package包/类
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();
}
 
开发者ID:idok,项目名称:sass-lint-plugin,代码行数:7,代码来源:SassLintInspection.java

示例5: SingleConfigurableEditor

import com.intellij.ide.actions.ShowSettingsUtilImpl; //导入方法依赖的package包/类
public SingleConfigurableEditor(@Nullable Project project, Configurable configurable, @NotNull IdeModalityType ideModalityType) {
  this(project, configurable, ShowSettingsUtilImpl.createDimensionKey(configurable), ideModalityType);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:4,代码来源:SingleConfigurableEditor.java

示例6: showSettings

import com.intellij.ide.actions.ShowSettingsUtilImpl; //导入方法依赖的package包/类
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();
}
 
开发者ID:idok,项目名称:react-templates-plugin,代码行数:7,代码来源:RTInspection.java

示例7: showSettings

import com.intellij.ide.actions.ShowSettingsUtilImpl; //导入方法依赖的package包/类
public static void showSettings(Project project) {
    CoffeeLintSettingsPage configurable = new CoffeeLintSettingsPage(project);
    String dimensionKey = ShowSettingsUtilImpl.createDimensionKey(configurable);
    SingleConfigurableEditor singleConfigurableEditor = new SingleConfigurableEditor(project, configurable, dimensionKey, false);
    singleConfigurableEditor.show();
}
 
开发者ID:idok,项目名称:coffee-lint-plugin,代码行数:7,代码来源:CoffeeLintInspection.java

示例8: showSettings

import com.intellij.ide.actions.ShowSettingsUtilImpl; //导入方法依赖的package包/类
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();
}
 
开发者ID:idok,项目名称:eslint-plugin,代码行数:7,代码来源:ESLintInspection.java

示例9: actionPerformed

import com.intellij.ide.actions.ShowSettingsUtilImpl; //导入方法依赖的package包/类
public void actionPerformed(AnActionEvent e) {
  DebuggerContextImpl debuggerContext = DebuggerAction.getDebuggerContext(e.getDataContext());
  if(debuggerContext == null) {
    return;
  }

  DebugProcessImpl debugProcess = debuggerContext.getDebugProcess();
  if(debugProcess == null) {
    return;
  }

  final Project project = debuggerContext.getProject();

  final DebuggerTreeNodeImpl selectedNode = getSelectedNode(e.getDataContext());
  if (selectedNode == null) {
    return;
  }
  NodeDescriptorImpl descriptor = selectedNode.getDescriptor();
  if(!(descriptor instanceof ValueDescriptorImpl /*&& ((ValueDescriptorImpl)descriptor).isArray()*/)) {
    return;
  }

  final ArrayRenderer renderer = getArrayRenderer((ValueDescriptorImpl)descriptor)/*(ArrayRenderer)((ValueDescriptorImpl)selectedNode.getDescriptor()).getLastRenderer()*/;
  if (renderer == null) {
    return;
  }

  String title = createNodeTitle("", selectedNode);
  String label = selectedNode.toString();
  int index = label.indexOf('=');
  if (index > 0) {
    title = title + " " + label.substring(index);
  }
  final ArrayRenderer clonedRenderer = renderer.clone();
  final NamedArrayConfigurable configurable = new NamedArrayConfigurable(title, clonedRenderer);
  SingleConfigurableEditor editor = new SingleConfigurableEditor(project, configurable,
                                                                 ShowSettingsUtilImpl.createDimensionKey(configurable), false);
  editor.show();

  if(editor.getExitCode() == DialogWrapper.OK_EXIT_CODE) {
    debugProcess.getManagerThread().schedule(new SuspendContextCommandImpl(debuggerContext.getSuspendContext()) {
        public void contextAction() throws Exception {
          final ValueDescriptorImpl nodeDescriptor = (ValueDescriptorImpl)selectedNode.getDescriptor();
          final Renderer lastRenderer = nodeDescriptor.getLastRenderer();
          if (lastRenderer instanceof ArrayRenderer) {
            selectedNode.setRenderer(clonedRenderer);
          }
          else if (lastRenderer instanceof CompoundNodeRenderer) {
            final CompoundNodeRenderer compoundRenderer = (CompoundNodeRenderer)lastRenderer;
            final ChildrenRenderer childrenRenderer = compoundRenderer.getChildrenRenderer();
            if (childrenRenderer instanceof ExpressionChildrenRenderer) {
              ExpressionChildrenRenderer.setPreferableChildrenRenderer(nodeDescriptor, clonedRenderer);
              selectedNode.calcRepresentation();
            }
          }
        }
      });
  }
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:60,代码来源:AdjustArrayRangeAction.java

示例10: SingleConfigurableEditor

import com.intellij.ide.actions.ShowSettingsUtilImpl; //导入方法依赖的package包/类
public SingleConfigurableEditor(@Nullable Project project, Configurable configurable) {
  this(project, configurable, ShowSettingsUtilImpl.createDimensionKey(configurable));
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:4,代码来源:SingleConfigurableEditor.java

示例11: SingleConfigurableEditor

import com.intellij.ide.actions.ShowSettingsUtilImpl; //导入方法依赖的package包/类
public SingleConfigurableEditor(@Nullable Project project, Configurable configurable, IdeModalityType ideModalityType) {
  this(project, configurable, ShowSettingsUtilImpl.createDimensionKey(configurable), ideModalityType);
}
 
开发者ID:consulo,项目名称:consulo,代码行数:4,代码来源:SingleConfigurableEditor.java

示例12: WholeWestSingleConfigurableEditor

import com.intellij.ide.actions.ShowSettingsUtilImpl; //导入方法依赖的package包/类
public WholeWestSingleConfigurableEditor(@Nullable Project project, Configurable configurable, IdeModalityType ideModalityType) {
  this(project, configurable, ShowSettingsUtilImpl.createDimensionKey(configurable), ideModalityType);
}
 
开发者ID:consulo,项目名称:consulo,代码行数:4,代码来源:WholeWestSingleConfigurableEditor.java


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