[jbosstools-commits] JBoss Tools SVN: r6949 - trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template.
jbosstools-commits at lists.jboss.org
jbosstools-commits at lists.jboss.org
Mon Mar 17 05:35:16 EDT 2008
Author: dmaliarevich
Date: 2008-03-17 05:35:16 -0400 (Mon, 17 Mar 2008)
New Revision: 6949
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeDataTableCreator.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-1744, table cells border added
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeDataTableCreator.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeDataTableCreator.java 2008-03-17 06:14:36 UTC (rev 6948)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeDataTableCreator.java 2008-03-17 09:35:16 UTC (rev 6949)
@@ -281,6 +281,24 @@
}
// Skip setting content table border
if (ATTR_BORDER.equalsIgnoreCase(attr.getNodeName())) {
+ // if attribute border is set then table cells have borders.
+ // Because two table are used border should appear
+ // around content table cells but not the table itself.
+ // By default content table has no border.
+ String value = attr.getNodeValue();
+ int val = -1;
+ if ((null != value) && (!"".equalsIgnoreCase(value))) {
+ try {
+ val = Integer.parseInt(value);
+ } catch (NumberFormatException e) {
+ // ignore
+ }
+ }
+ if (val > 0) {
+ visualTable.setAttribute(ATTR_BORDER, "1");
+ visualTable.setAttribute(ATTR_STYLE, "border: 0px hidden;");
+ }
+
continue;
}
// Fixes creation of a border around content table
More information about the jbosstools-commits
mailing list