Author: ezheleznyakov
Date: 2007-08-14 10:23:00 -0400 (Tue, 14 Aug 2007)
New Revision: 3121
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/template/RichFacesTreeTemplate.java
Log:
http://jira.jboss.com/jira/browse/EXIN-435
change using Node to nsIDOMNode and Element to nsIDOMElement for classes:
RichFacesTreeTemplate
Change method revertTableRows(nsIDOMNode node)
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-14
13:32:04 UTC (rev 3120)
+++
branches/jbosstools_xulrunner/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/ComponentUtil.java 2007-08-14
14:23:00 UTC (rev 3121)
@@ -175,7 +175,6 @@
return children;
}
- //TODO: Evgeny Zheleznyakov remove if not references
/**
* Returns all child source elements of component but facets.
* @param sourceElement
@@ -251,8 +250,7 @@
String style = "background-image: url(file:///" +
imgPath.replace('\\', '/') + ");";
return style;
}
-
- //TODO: Evgeny zheleznyakov remove or not references
+
/**
* Returns value of attribute.
* @param sourceElement
@@ -349,31 +347,6 @@
}
return inputPath;
}
-
- //TODO: Evgeny zheleznyakov remove or not references
- /**
- * Move attributes from sourceNode to html
- *
- * @param sourceNode
- * @param visualNode
- * @param attrName
- * @param htmlAttrName
- * @param prefValue
- * @param defValue
- */
- public static void correctAttribute(Element sourceNode, Element visualNode,
- String attrName, String htmlAttrName, String prefValue, String defValue) {
- String attrValue = ((Element) sourceNode).getAttribute(attrName);
- if (prefValue != null && prefValue.trim().length() > 0 && attrValue
!= null) {
- attrValue = prefValue.trim() + " " + attrValue;
- }
- if (attrValue != null) {
- visualNode.setAttribute(htmlAttrName, attrValue);
- } else if (defValue != null) {
- visualNode.setAttribute(htmlAttrName, defValue);
- } else
- visualNode.removeAttribute(attrName);
- }
/**
* Move attributes from sourceNode to html
Modified:
branches/jbosstools_xulrunner/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesTreeTemplate.java
===================================================================
---
branches/jbosstools_xulrunner/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesTreeTemplate.java 2007-08-14
13:32:04 UTC (rev 3120)
+++
branches/jbosstools_xulrunner/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesTreeTemplate.java 2007-08-14
14:23:00 UTC (rev 3121)
@@ -241,9 +241,10 @@
* @param node
*/
private void revertTableRows(nsIDOMNode node) {
- if (!(node instanceof nsIDOMElement)) {
- return;
- }
+
+ //if (!(node instanceof nsIDOMElement)) {
+ // return;
+ //}
nsIDOMNodeList list = node.getChildNodes();
if (node.getNodeName().equalsIgnoreCase(