Author: dmaliarevich
Date: 2008-10-22 05:32:41 -0400 (Wed, 22 Oct 2008)
New Revision: 11069
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesListShuttleTemplate.java
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesOrderingList.java
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesTabTemplate.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-2936, image source paths were updated.
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesListShuttleTemplate.java
===================================================================
---
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesListShuttleTemplate.java 2008-10-22
09:25:33 UTC (rev 11068)
+++
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesListShuttleTemplate.java 2008-10-22
09:32:41 UTC (rev 11069)
@@ -913,7 +913,7 @@
headerCell.setAttribute("background", "file:///" //$NON-NLS-1$
//$NON-NLS-2$
+ ComponentUtil
- .getAbsoluteResourcePath(HEADER_IMG_PATH));
+ .getAbsoluteResourcePath(HEADER_IMG_PATH).replace('\\', '/'));
// get header classes
String headerClass = styleClasses.get("headerCell"); //$NON-NLS-1$
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesOrderingList.java
===================================================================
---
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesOrderingList.java 2008-10-22
09:25:33 UTC (rev 11068)
+++
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesOrderingList.java 2008-10-22
09:32:41 UTC (rev 11069)
@@ -410,7 +410,7 @@
div2.appendChild(a);
a.appendChild(div3);
// Creating button with image and label
- img.setAttribute("src", "file:///" +
ComponentUtil.getAbsoluteResourcePath(imgName));
+ ComponentUtil.setImg(img, imgName);
img.setAttribute(HTML.ATTR_WIDTH, "15");
img.setAttribute(HTML.ATTR_HEIGHT, "15");
div3.appendChild(img);
@@ -746,7 +746,7 @@
parentTr.appendChild(td);
td.setAttribute(HtmlComponentUtil.HTML_ATTR_BACKGROUND, "file:///"
- + ComponentUtil.getAbsoluteResourcePath(HEADER_CELL_BG));
+ + ComponentUtil.getAbsoluteResourcePath(HEADER_CELL_BG).replace('\\',
'/'));
String styleClass = encodeStyleClass(null, skinCellClass,
headerClass, columnHeaderClass);
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesTabTemplate.java
===================================================================
---
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesTabTemplate.java 2008-10-22
09:25:33 UTC (rev 11068)
+++
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesTabTemplate.java 2008-10-22
09:32:41 UTC (rev 11069)
@@ -291,8 +291,7 @@
RichFacesTabPanelTemplate.CSS_SIDE_CELL
+ SPACE +
RichFacesTabPanelTemplate.CSS_SIDE_BORDER);
- String borderImgPath = ComponentUtil.getAbsoluteResourcePath(BORDER_FILE_PATH);
- String style = "background-image: url(file:///" +
borderImgPath.replace('\\', '/') + ");"; //$NON-NLS-1$
//$NON-NLS-2$
+ String style = ComponentUtil.getBackgoundImgStyle(BORDER_FILE_PATH);
td.setAttribute(HtmlComponentUtil.HTML_STYLE_ATTR, style);
nsIDOMElement img = visualDocument.createElement(HtmlComponentUtil.HTML_TAG_IMG);
td.appendChild(img);