Author: amakhtadui
Date: 2007-10-16 07:10:30 -0400 (Tue, 16 Oct 2007)
New Revision: 4217
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesPanelMenuGroupTemplate.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-847
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesPanelMenuGroupTemplate.java
===================================================================
---
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesPanelMenuGroupTemplate.java 2007-10-16
10:48:25 UTC (rev 4216)
+++
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesPanelMenuGroupTemplate.java 2007-10-16
11:10:30 UTC (rev 4217)
@@ -306,7 +306,7 @@
pathIconDisabled =
sourceParentElement.getAttribute(PANEL_MENU_ATTR_ICON_TOP_DISABLE_GROUP);
}
- if
("right".equalsIgnoreCase(sourceParentElement.getAttribute(PANEL_MENU_ATTR_ICON_TOP_GROUP_POSITION)))
{
+ if
("right".equals(sourceParentElement.getAttribute(PANEL_MENU_ATTR_ICON_TOP_GROUP_POSITION)))
{
needChangePosition = true;
}
} else {
@@ -320,7 +320,7 @@
pathIconDisabled =
sourceParentElement.getAttribute(PANEL_MENU_ATTR_ICON_DISABLE_GROUP);
}
- if
("right".equalsIgnoreCase(sourceParentElement.getAttribute(PANEL_MENU_ATTR_ICON_GROUP_POSITION)))
{
+ if
("right".equals(sourceParentElement.getAttribute(PANEL_MENU_ATTR_ICON_GROUP_POSITION)))
{
needChangePosition = true;
}
}
@@ -332,23 +332,23 @@
}
if (disabled) {
- if (pathIconDisabled != null &&
DEFAULT_ICON_MAP.containsKey(pathIconDisabled.toLowerCase())) {
- pathIconDisabled = DEFAULT_ICON_MAP.get(pathIconDisabled.toLowerCase());
+ if (pathIconDisabled != null &&
DEFAULT_ICON_MAP.containsKey(pathIconDisabled)) {
+ pathIconDisabled = DEFAULT_ICON_MAP.get(pathIconDisabled);
ComponentUtil.setImg(img1, pathIconDisabled);
} else {
ComponentUtil.setImgFromResources(pageContext, img1, pathIconDisabled,
PANEL_MENU_GROUP_ICON_SPACER_PATH);
}
} else {
if (expanded) {
- if (pathIconExpanded != null &&
DEFAULT_ICON_MAP.containsKey(pathIconExpanded.toLowerCase())) {
- pathIconExpanded = DEFAULT_ICON_MAP.get(pathIconExpanded.toLowerCase());
+ if (pathIconExpanded != null && DEFAULT_ICON_MAP.containsKey(pathIconExpanded))
{
+ pathIconExpanded = DEFAULT_ICON_MAP.get(pathIconExpanded);
ComponentUtil.setImg(img1, pathIconExpanded);
} else {
ComponentUtil.setImgFromResources(pageContext, img1, pathIconExpanded,
PANEL_MENU_GROUP_ICON_SPACER_PATH);
}
} else {
- if (pathIconCollapsed != null &&
DEFAULT_ICON_MAP.containsKey(pathIconCollapsed.toLowerCase())) {
- pathIconCollapsed = DEFAULT_ICON_MAP.get(pathIconCollapsed.toLowerCase());
+ if (pathIconCollapsed != null &&
DEFAULT_ICON_MAP.containsKey(pathIconCollapsed)) {
+ pathIconCollapsed = DEFAULT_ICON_MAP.get(pathIconCollapsed);
ComponentUtil.setImg(img1, pathIconCollapsed);
} else {
ComponentUtil.setImgFromResources(pageContext, img1, pathIconCollapsed,
PANEL_MENU_GROUP_ICON_SPACER_PATH);