Author: dmaliarevich
Date: 2008-04-09 05:18:15 -0400 (Wed, 09 Apr 2008)
New Revision: 7441
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/VpeTemplateManager.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-2001, Selection borders are fixed, height
attribute updated
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-04-09
09:18:08 UTC (rev 7440)
+++
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeDataTableCreator.java 2008-04-09
09:18:15 UTC (rev 7441)
@@ -132,9 +132,21 @@
SourceDataTableElements sourceElements = new SourceDataTableElements(sourceNode);
VisualDataTableElements visualElements = new VisualDataTableElements();
-
+
+ /*
+ * Fixes
http://jira.jboss.com/jira/browse/JBIDE-2001
+ * Selection borders are fixed.
+ */
nsIDOMElement div = visualDocument.createElement(HTML.TAG_DIV);
- VpeCreatorInfo creatorInfo = new VpeCreatorInfo(div);
+ nsIDOMElement selectionTable = visualDocument.createElement(HTML.TAG_TABLE);
+ nsIDOMElement tr = visualDocument.createElement(HTML.TAG_TR);
+ nsIDOMElement td = visualDocument.createElement(HTML.TAG_TD);
+
+ td.appendChild(div);
+ tr.appendChild(td);
+ selectionTable.appendChild(tr);
+
+ VpeCreatorInfo creatorInfo = new VpeCreatorInfo(selectionTable);
/*
* Table with caption, header, footer,
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeTemplateManager.java
===================================================================
---
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeTemplateManager.java 2008-04-09
09:18:08 UTC (rev 7440)
+++
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeTemplateManager.java 2008-04-09
09:18:15 UTC (rev 7441)
@@ -195,6 +195,7 @@
static final String ATTR_DATATABLE_COLUMN_CLASSES = "columnClasses";
//$NON-NLS-1$
static final String[] ATTR_DATATABLE_PROPERTIES = {
"width", //$NON-NLS-1$
+ "height", //$NON-NLS-1$
"bgcolor", //$NON-NLS-1$
"border", //$NON-NLS-1$
"cellpadding", //$NON-NLS-1$