Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » XML Schema Definition (XSD) » Design question about XSD editor
Design question about XSD editor [message #566035] Thu, 06 March 2003 19:23
Eclipse User
Originally posted by:

In XSD editor, it has 1 is text view, 1 is tree view for the XSD model.

My assumption is there is just 1 model but there are 2 ways to edit it, 1
uses text editor, 1 uses tree editor.

I am wondering how the tree view in the XSD editor is construct?
Does it loop thru the whole model about build a SWT tree to represent the
whole model?

Or it just builds the tree dynamically (i.e. when the user clicks on a node
to expand, it just looks up its children dynamically and insert child tree
item to the parent SWT tree item dynamically?

I am trying to do a plugin which has 2 views: 1 is text view and 2 is tree
view. It is used to edit a XML DOM. So I am wonder should I bulid a full
blown SWT TREE for each node in the DOM, or just insert nodes to the SWT
Tree dynamically.

I look thru the code, but I don't really find the anwser to my question.
Any help is appreciated.
Previous Topic:Unmarshalling Problem in eclipse
Next Topic:Design question about XSD editor
Goto Forum:

Current Time: Fri Aug 29 01:41:51 EDT 2014

Powered by FUDForum. Page generated in 0.07680 seconds