From 704b24684fcada0e76ccab1fef0e5fa6e4212342 Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Wed, 25 Jan 2012 13:21:27 +0100 Subject: [PATCH] don't create UI components while preloading actions (IDEA-80306) --- .../intellij/uiDesigner/actions/IncreaseIndentAction.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/plugins/ui-designer/src/com/intellij/uiDesigner/actions/IncreaseIndentAction.java b/plugins/ui-designer/src/com/intellij/uiDesigner/actions/IncreaseIndentAction.java index 0953098904f8..e4de3b8e9a7d 100644 --- a/plugins/ui-designer/src/com/intellij/uiDesigner/actions/IncreaseIndentAction.java +++ b/plugins/ui-designer/src/com/intellij/uiDesigner/actions/IncreaseIndentAction.java @@ -31,16 +31,15 @@ import java.util.List; * @author yole */ public class IncreaseIndentAction extends AbstractGuiEditorAction { - private final IndentProperty myIndentProperty = new IndentProperty(); - public IncreaseIndentAction() { super(true); } protected void actionPerformed(final GuiEditor editor, final List selection, final AnActionEvent e) { + IndentProperty indentProperty = IndentProperty.getInstance(editor.getProject()); for(RadComponent c: selection) { - int indent = myIndentProperty.getValue(c).intValue(); - myIndentProperty.setValueEx(c, adjustIndent(indent)); + int indent = indentProperty.getValue(c).intValue(); + indentProperty.setValueEx(c, adjustIndent(indent)); } }