Author: dmaliarevich
Date: 2011-02-02 14:13:45 -0500 (Wed, 02 Feb 2011)
New Revision: 28936
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/toolbar/format/StyleFormatController.java
Log:
https://issues.jboss.org/browse/JBIDE-8220 , reset values from previous execution
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/toolbar/format/StyleFormatController.java
===================================================================
---
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/toolbar/format/StyleFormatController.java 2011-02-02
18:11:13 UTC (rev 28935)
+++
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/toolbar/format/StyleFormatController.java 2011-02-02
19:13:45 UTC (rev 28936)
@@ -31,12 +31,13 @@
public static final String TYPE = "StyleFormat"; //$NON-NLS-1$
protected ToolItem toolItem;
- private String styleString = null;
+ private String styleString;
public StyleFormatController(FormatControllerManager manager, ToolItem toolItem) {
super(manager);
this.toolItem = toolItem;
setToolbarItemEnabled(false);
+ styleString = null;
}
@Override
@@ -51,6 +52,10 @@
@Override
public void handleEvent(Event event) {
+ /*
+ * Reset values from previous execution
+ */
+ styleString = null;
String baseStyle = ""; //$NON-NLS-1$
Node node = manager.getCurrentSelectedNode();
/*