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)); } }