[jbosstools-issues] [JBoss JIRA] (ERT-198) Content assist displays only top level properties as proposals [EBZ#490639]
Friendly Jira Robot (JIRA)
issues at jboss.org
Thu May 19 14:26:00 EDT 2016
Friendly Jira Robot created ERT-198:
---------------------------------------
Summary: Content assist displays only top level properties as proposals [EBZ#490639]
Key: ERT-198
URL: https://issues.jboss.org/browse/ERT-198
Project: Eclipse Release Train
Issue Type: Task
Components: WTP Source Editing
Reporter: Friendly Jira Robot
Fix For: Neon (4.6) RC2
When I invoke content assist on a JSON object, I expect to see the list of properties in the context of the selected object but I see a list of top level properties instead.
I think the problem is in the JSONSchemaNode.walk() method, where the 'json' object that gets passed in is always the schema root, so the properties always correspond to that object.
private static void walk(JsonObject json, JSONSchemaNode schemaNode) {
Member member = null;
JsonObject properties = (JsonObject) json.get("properties");
if (properties != null) {
Iterator<Member> members = properties.iterator();
while (members.hasNext()) {
member = members.next();
schemaNode.addProperty(new JSONSchemaProperty(member.getName(),
(JsonObject) member.getValue(), schemaNode));
}
}
}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the jbosstools-issues
mailing list