Author: ezheleznyakov
Date: 2007-08-10 08:15:07 -0400 (Fri, 10 Aug 2007)
New Revision: 3075
Modified:
branches/jbosstools_xulrunner/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/ComponentUtil.java
Log:
http://jira.jboss.com/jira/browse/EXIN-435
add method setImg(nsIDOMElement img, String fileImageName);
Modified:
branches/jbosstools_xulrunner/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/ComponentUtil.java
===================================================================
---
branches/jbosstools_xulrunner/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/ComponentUtil.java 2007-08-10
11:13:56 UTC (rev 3074)
+++
branches/jbosstools_xulrunner/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/ComponentUtil.java 2007-08-10
12:15:07 UTC (rev 3075)
@@ -21,6 +21,7 @@
import org.eclipse.ui.IFileEditorInput;
import org.eclipse.ui.editors.text.ILocationProvider;
import org.jboss.tools.vpe.editor.context.VpePageContext;
+import org.mozilla.interfaces.nsIDOMElement;
import org.w3c.dom.Element;
import org.w3c.dom.NamedNodeMap;
import org.w3c.dom.Node;
@@ -144,6 +145,7 @@
}
}
+ // TDOD: Evgeny Zheleznyakov delete after work all components
/**
* Adds image as attribute to IMG tag
*
@@ -153,6 +155,17 @@
public static void setImg(Element img, String fileImageName) {
img.setAttribute("src", "file://" +
getAbsoluteResourcePath(fileImageName));
}
+
+ // TDOD: Evgeny Zheleznyakov Do not delete
+ /**
+ * Adds image as attribute to IMG tag
+ *
+ * @param img
+ * @param fileImageName
+ */
+ public static void setImg(nsIDOMElement img, String fileImageName) {
+ img.setAttribute("src", "file://" +
getAbsoluteResourcePath(fileImageName));
+ }
/**
* Returns all child source elements of component but facets.