commit | 23c5ec165c80e9a846ccce6991a9f23fdb569c62 | [log] [tgz] |
---|---|---|
author | csalter <csalter> | Fri Aug 11 21:58:29 2006 +0000 |
committer | csalter <csalter> | Fri Aug 11 21:58:29 2006 +0000 |
tree | 80b326ccbdcb2b67494473f74e6647b857436032 | |
parent | 5c1a13a591fb320e4408664e11750aaa43ab6537 [diff] |
[152185] fix WSDL/XSD editor's extension views to allow text elements to be edited corretly -- need to reuse logic from TreeContentHelper
diff --git a/bundles/org.eclipse.wst.xsd.ui/src-common/org/eclipse/wst/xsd/ui/internal/common/commands/UpdateTextValueCommand.java b/bundles/org.eclipse.wst.xsd.ui/src-common/org/eclipse/wst/xsd/ui/internal/common/commands/UpdateTextValueCommand.java index e548e48..9ebcdc3 100644 --- a/bundles/org.eclipse.wst.xsd.ui/src-common/org/eclipse/wst/xsd/ui/internal/common/commands/UpdateTextValueCommand.java +++ b/bundles/org.eclipse.wst.xsd.ui/src-common/org/eclipse/wst/xsd/ui/internal/common/commands/UpdateTextValueCommand.java
@@ -32,7 +32,6 @@ public void execute() { - TreeContentHelper helper = new TreeContentHelper(); - helper.setNodeValue(element, value); + new TreeContentHelper().setElementTextValue(element, value); } }
diff --git a/bundles/org.eclipse.wst.xsd.ui/src-common/org/eclipse/wst/xsd/ui/internal/common/properties/sections/appinfo/DOMExtensionItem.java b/bundles/org.eclipse.wst.xsd.ui/src-common/org/eclipse/wst/xsd/ui/internal/common/properties/sections/appinfo/DOMExtensionItem.java index c5cb3ff..d3d564a 100644 --- a/bundles/org.eclipse.wst.xsd.ui/src-common/org/eclipse/wst/xsd/ui/internal/common/properties/sections/appinfo/DOMExtensionItem.java +++ b/bundles/org.eclipse.wst.xsd.ui/src-common/org/eclipse/wst/xsd/ui/internal/common/properties/sections/appinfo/DOMExtensionItem.java
@@ -104,11 +104,12 @@ return (value != null) ? value : ""; } case KIND_ELEMENT_TEXT : { - return new TreeContentHelper().getNodeValue(parent); + return new TreeContentHelper().getElementTextValue(parent); } } return ""; } + public String[] getPossibleValues() {