Author: dmaliarevich
Date: 2011-12-21 02:47:11 -0500 (Wed, 21 Dec 2011)
New Revision: 37483
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe.xulrunner/src/org/jboss/tools/vpe/xulrunner/util/DOMTreeDumper.java
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/VpeStyleUtil.java
Log:
https://issues.jboss.org/browse/JBIDE-5861 - comments were added.
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/VpeStyleUtil.java
===================================================================
---
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/VpeStyleUtil.java 2011-12-21
06:29:43 UTC (rev 37482)
+++
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/VpeStyleUtil.java 2011-12-21
07:47:11 UTC (rev 37483)
@@ -940,10 +940,22 @@
return uri;
}
+ /**
+ * Removes all the CSS @import constructions from the text
+ *
+ * @param cssText the css text
+ * @return updated string
+ */
public static String removeAllCssImportConstructions(String cssText) {
return CSS_IMPORT_PATTERN.matcher(cssText).replaceAll(Constants.EMPTY);
}
+ /**
+ * Removes all the CSS comments from the text
+ *
+ * @param cssText the css text
+ * @return updated string
+ */
public static String removeAllCssComments(String cssText) {
return CSS_COMMENT_PATTERN.matcher(cssText).replaceAll(Constants.EMPTY);
}
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe.xulrunner/src/org/jboss/tools/vpe/xulrunner/util/DOMTreeDumper.java
===================================================================
---
trunk/vpe/plugins/org.jboss.tools.vpe.xulrunner/src/org/jboss/tools/vpe/xulrunner/util/DOMTreeDumper.java 2011-12-21
06:29:43 UTC (rev 37482)
+++
trunk/vpe/plugins/org.jboss.tools.vpe.xulrunner/src/org/jboss/tools/vpe/xulrunner/util/DOMTreeDumper.java 2011-12-21
07:47:11 UTC (rev 37483)
@@ -147,7 +147,11 @@
dumpNode(node, false);
}
-
+ /**
+ * Dumps the CSS style for the visual node
+ *
+ * @param vpeNode visual node
+ */
public void dumpStyle(nsIDOMNode vpeNode) {
if (vpeNode != null) {
final nsIDOMDocumentView view = queryInterface(vpeNode.getOwnerDocument(),
nsIDOMDocumentView.class);