Author: dgolovin
Date: 2009-10-01 21:12:30 -0400 (Thu, 01 Oct 2009)
New Revision: 17858
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/mozilla/MozillaEditor.java
Log:
fix for 740 failures in last builds
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/mozilla/MozillaEditor.java
===================================================================
---
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/mozilla/MozillaEditor.java 2009-10-01
20:39:01 UTC (rev 17857)
+++
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/mozilla/MozillaEditor.java 2009-10-02
01:12:30 UTC (rev 17858)
@@ -105,8 +105,8 @@
public static final String ICON_ORIENTATION_VISUAL_LEFT =
"icons/visual_left.gif"; //$NON-NLS-1$
public static final String ICON_ORIENTATION_VISUAI_TOP =
"icons/visual_top.gif"; //$NON-NLS-1$
public static final String ICON_ORIENTATION_SOURCE_LEFT_DISABLED =
"icons/source_left_disabled.gif"; //$NON-NLS-1$
- public static final String ICON_NON_VISUAL_TAGS_SHOW =
"icons/non-visusal-tags-show.gif"; //$NON-NLS-1$
- public static final String ICON_NON_VISUAL_TAGS_HIDE =
"icons/non-visusal-tags-hide.gif"; //$NON-NLS-1$
+ public static final String ICON_NON_VISUAL_TAGS_SHOW =
"icons/non-visusal-tags-show.png"; //$NON-NLS-1$
+ public static final String ICON_NON_VISUAL_TAGS_HIDE =
"icons/non-visusal-tags-hide.png"; //$NON-NLS-1$
public static final String ICON_SELECTION_BAR_SHOW = "icons/selbar-show.gif";
//$NON-NLS-1$
public static final String ICON_SELECTION_BAR_HIDE = "icons/selbar-hide.gif";
//$NON-NLS-1$
public static final String ICON_TEXT_FORMATTING_SHOW =
"icons/text-formatting-show.gif"; //$NON-NLS-1$
@@ -557,8 +557,10 @@
item.setImage(ImageDescriptor
.createFromFile(MozillaEditor.class, image).createImage());
item.setToolTipText(toolTipText);
- item.setDisabledImage(ImageDescriptor
- .createFromFile(MozillaEditor.class, disabledImage).createImage());
+ if(disabledImage.length()!=0) {
+ item.setDisabledImage(ImageDescriptor
+ .createFromFile(MozillaEditor.class, disabledImage).createImage());
+ }
item.setEnabled(isEnabled);
// add dispose listener
item.addDisposeListener(new DisposeListener() {
Show replies by date