Author: dsakovich
Date: 2008-01-14 14:13:59 -0500 (Mon, 14 Jan 2008)
New Revision: 5675
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesContextMenuTemplate.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-1581
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesContextMenuTemplate.java
===================================================================
---
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesContextMenuTemplate.java 2008-01-14
19:11:29 UTC (rev 5674)
+++
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesContextMenuTemplate.java 2008-01-14
19:13:59 UTC (rev 5675)
@@ -45,11 +45,6 @@
"richFacesContextMenu");
Element sourceElement = (Element) sourceNode;
- nsIDOMElement parentDiv = visualDocument
- .createElement(HtmlComponentUtil.HTML_TAG_DIV);
-
- parentDiv.setAttribute(HtmlComponentUtil.HTML_CLASS_ATTR,
- "dr-menu-list-border");
nsIDOMElement table = visualDocument
.createElement(HtmlComponentUtil.HTML_TAG_TABLE);
@@ -62,7 +57,6 @@
table.setAttribute(HtmlComponentUtil.HTML_STYLE_ATTR,
"background-image: url(file://" + path + "); " + DIV_STYLE);
- parentDiv.appendChild(table);
List<Node> listItems = ComponentUtil.getChildren(sourceElement, false);
for (Node node : listItems) {
@@ -71,7 +65,7 @@
table.appendChild(element);
}
- VpeCreationData creationData = new VpeCreationData(parentDiv);
+ VpeCreationData creationData = new VpeCreationData(table);
return creationData;