@Angelo can you open a bug report for this I do remember discussing this
with @Kosta in the context of
Sapphire but I can not find a bug report for this.
We need contributions to make this happen. The active contributors to
JSON editor (all Red Hatters)
have time allocated only enough to improve the quality and end-user
features of the editor. If there are
contributions though, we will make it a priority to work with the
contributor(s) and get this in as quickly as possible.
Thanks,
—
Gorkem
On 7 Oct 2016, at 12:12, [email protected] wrote:
Angelo,
I recently looked at implementing Sapphire model binding for JSON and
ran into the same issue. The JSON editor DOM has just enough to
support the source editor and the outline, but not enough to support
layered views. I think there are bugs open for this. If we can have a
true JSON DOM with bi-directional update API (write through and
events), implementing Sapphire model binding for JSON would be easy.
With that in place, you would be able to leverage all of Sapphire’s
advanced model and UI facilities to put sophisticated form and diagram
UI on top of JSON files, like we can today for XML files.
Thanks,
- Konstantin
From: Angelo zerr
Sent: Friday, October 7, 2016 1:23 AM
To: General discussion of project-wide or architectural issues.
Subject: [wtp-dev] Improve JSON API, Databinding to provide advanced
PDE likeeditor
Hi Guys,
I have developped an advanced editor inside typescript.java for
tsconfig.json. See
https://github.com/angelozerr/typescript.java/wiki/TSConfig-Editor-Features
Here a demo:
The UI checboxes, text field, tables are bounded to the JSON Document.
There are several bugs with synch of IJSONModel so sometimes you could
have some troubles with UI which is not synced. To bind UI to the JSON
Model, I have implemented JFace Databinding for JSON.
See https://github.com/angelozerr/typescript.java/tree/master/eclipse/json/ts.eclipse.ide.json.core/src/org/eclipse/wst/json/core/databindin
I think we should really improved JSON API to update the JSON
document, because with the existing API, we cannot update easily the
JSON (I had to update JSON with document.replace, so ugly code -()
IMHO, I thinlk package.json, bower.json should provide the same
advanced editors. To do that we could:
* improve synch of JSON model
* provide a very clean API for update JSON document
* provide JFace Databinding for JSON
* provide Eclipse Forms utilities that we could use for any JSON
editors which wish to provide advanced editors like I have done for
tsconfig.json
What do you think about that?
Regard's Angelo
_______________________________________________
wtp-dev mailing list
[email protected]
To change your delivery options, retrieve your password, or
unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/wtp-dev
_______________________________________________
wtp-dev mailing list
[email protected]
To change your delivery options, retrieve your password, or unsubscribe from
this list, visit
https://dev.eclipse.org/mailman/listinfo/wtp-dev