Author: dmaliarevich
Date: 2008-01-30 04:17:32 -0500 (Wed, 30 Jan 2008)
New Revision: 6026
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeVisualDomBuilder.java
Log:
Revert from revision 5972
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeVisualDomBuilder.java
===================================================================
---
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeVisualDomBuilder.java 2008-01-30
03:02:07 UTC (rev 6025)
+++
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeVisualDomBuilder.java 2008-01-30
09:17:32 UTC (rev 6026)
@@ -16,7 +16,6 @@
import java.io.IOException;
import java.net.URL;
import java.util.ArrayList;
-import java.util.Collection;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
@@ -111,9 +110,6 @@
private nsIDOMNode headNode;
private List includeStack;
boolean rebuildFlag = false;
-
- // Fix for JBIDE-1119
- private Collection<nsIDOMHTMLInputElement> inputElements = new
ArrayList<nsIDOMHTMLInputElement>();
/** faceletFile */
private boolean faceletFile = false;
@@ -198,7 +194,6 @@
public void rebuildDom(Document sourceDocument) {
cleanHead();
- inputElements.clear();
domMapping.clear(visualContentArea);
pageContext.clearAll();
refreshExternalLinks();
@@ -228,9 +223,7 @@
if (visualNewNode != null) {
nsIDOMHTMLInputElement iDOMInputElement = (nsIDOMHTMLInputElement) visualNewNode
.queryInterface(nsIDOMHTMLInputElement.NS_IDOMHTMLINPUTELEMENT_IID);
- // Fix for JBIDE-1119
- inputElements.add(iDOMInputElement);
- //iDOMInputElement.setReadOnly(true);
+ iDOMInputElement.setReadOnly(true);
}
} catch (XPCOMException ex) {
// just ignore this exception
@@ -803,11 +796,6 @@
}
nsIDOMNode visualOldNode = domMapping.remove(sourceNode);
if (visualOldNode != null) {
-
- if (inputElements.contains(visualOldNode)) {
- inputElements.remove(visualOldNode);
- }
-
if (elementMapping != null) {
nsIDOMElement border = elementMapping.getBorder();
if (border != null) {
@@ -828,12 +816,7 @@
}
public void removeNode(Node sourceNode) {
- nsIDOMNode visualOldNode = domMapping.remove(sourceNode);
- if (visualOldNode != null) {
- if (inputElements.contains(visualOldNode)) {
- inputElements.remove(visualOldNode);
- }
- }
+ domMapping.remove(sourceNode);
}
private Node getParentTable(Node sourceNode, int depth) {
@@ -1248,11 +1231,6 @@
public void resize(nsIDOMElement element, int resizerConstrains, int top,
int left, int width, int height) {
-
- for (nsIDOMHTMLInputElement inputElement : inputElements) {
- inputElement.setReadOnly(true);
- }
-
VpeElementMapping elementMapping = (VpeElementMapping) domMapping
.getNodeMapping(element);
if (elementMapping != null) {
@@ -1261,11 +1239,6 @@
element, elementMapping.getData(), resizerConstrains, top,
left, width, height);
}
-
- for (nsIDOMHTMLInputElement inputElement : inputElements) {
- inputElement.setReadOnly(false);
- }
-
}
static boolean isAnonElement(nsIDOMNode visualNode) {
Show replies by date