本文整理汇总了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();
}
示例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();
}
}
示例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();
}
示例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();
}
示例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);
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
}
}
});
}
}
示例10: SingleConfigurableEditor
import com.intellij.ide.actions.ShowSettingsUtilImpl; //导入方法依赖的package包/类
public SingleConfigurableEditor(@Nullable Project project, Configurable configurable) {
this(project, configurable, ShowSettingsUtilImpl.createDimensionKey(configurable));
}
示例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);
}
示例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);
}