Author: dmaliarevich
Date: 2011-02-02 10:04:59 -0500 (Wed, 02 Feb 2011)
New Revision: 28926
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/toolbar/format/TextFormattingToolBar.java
Log:
https://issues.jboss.org/browse/JBIDE-8220 , changing button's style to PUSH (for
colors and dialog)
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/toolbar/format/TextFormattingToolBar.java
===================================================================
---
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/toolbar/format/TextFormattingToolBar.java 2011-02-02
14:41:27 UTC (rev 28925)
+++
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/toolbar/format/TextFormattingToolBar.java 2011-02-02
15:04:59 UTC (rev 28926)
@@ -160,13 +160,13 @@
// itemDescriptors.add(new ToolItemDescriptor(sep, false, null, true));
- item = createToolItem(toolBar, SWT.CHECK,
+ item = createToolItem(toolBar, SWT.PUSH,
createImage("icons/background.gif"), VpeUIMessages.BACKGROUND_COLOR);
//$NON-NLS-1$
listener = new BackgroundColorFormatController(formatControllerManager, item);
item.addListener(SWT.Selection, listener);
// itemDescriptors.add(new ToolItemDescriptor(item, true, listener, true));
- item = createToolItem(toolBar, SWT.CHECK,
+ item = createToolItem(toolBar, SWT.PUSH,
createImage("icons/foreground.gif"), VpeUIMessages.FOREGROUND_COLOR);
//$NON-NLS-1$
listener = new ForegroundColorFormatController(formatControllerManager, item);
item.addListener(SWT.Selection, listener);
@@ -176,7 +176,7 @@
* Fixes
https://issues.jboss.org/browse/JBIDE-8220
* CSSStyleDialog should be on the Formatting toolbar.
*/
- item = createToolItem(toolBar, SWT.CHECK,
+ item = createToolItem(toolBar, SWT.PUSH,
CSSPlugin.getImageDescriptor(Util.IMAGE_COLORLARGE_FILE_LOCATION).createImage(),
VpeUIMessages.EDIT_STYLE_ATTRIBUTE);
listener = new StyleFormatController(formatControllerManager, item);