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 #13614] Fri, 07 March 2003 00:23 Go to next message
Eclipse UserFriend
Originally posted by: oro7d3.netscape.net

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.
Re: Design question about XSD editor [message #13637 is a reply to message #13614] Fri, 07 March 2003 13:00 Go to previous message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

--------------8D0C4C39B3B89422DA4A4AE3
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Oro,

The tree view is constructed on the fly using EMF.Edit's item providers. Have
a look at the EMF documentation:

http://dev.eclipse.org/viewcvs/indextools.cgi/%7Echeckout%7E /emf-home/docs/doc.html

This one specifically deals with how views are populated:

http://dev.eclipse.org/viewcvs/indextools.cgi/%7Echeckout%7E /emf-home/docs/EMF.Edit_Framework.html

If you use JFace's TreeViewers and its ContentProviders its quite easy to
construct the tree on the fly.


oro wrote:

> 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.

--------------8D0C4C39B3B89422DA4A4AE3
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Oro,
<p>The tree view is constructed on the fly using EMF.Edit's item providers.&nbsp;
Have a look at the EMF documentation:
<blockquote>&nbsp;<a href=" http://dev.eclipse.org/viewcvs/indextools.cgi/%7Echeckout%7E /emf-home/docs/doc.html"> http://dev.eclipse.org/viewcvs/indextools.cgi/%7Echeckout%7E /emf-home/docs/doc.html</a></blockquote>

<p><br>This one specifically deals with how views are populated:
<blockquote>&nbsp;<a href=" http://dev.eclipse.org/viewcvs/indextools.cgi/%7Echeckout%7E /emf-home/docs/EMF.Edit_Framework.html"> http://dev.eclipse.org/viewcvs/indextools.cgi/%7Echeckout%7E /emf-home/docs/EMF.Edit_Framework.html</a></blockquote>
If you use JFace's TreeViewers and its ContentProviders its quite easy
to construct the tree on the fly.
<br>&nbsp;
<p>oro wrote:
<blockquote TYPE=CITE>In XSD editor, it has 1 is text view, 1 is tree view
for the XSD model.
<p>My assumption is there is just 1 model but there are 2 ways to edit
it, 1
<br>uses text editor, 1 uses tree editor.
<p>I am wondering how the tree view in the XSD editor is construct?
<br>Does it loop thru the whole model about build a SWT tree to represent
the
<br>whole model?
<p>Or it just builds the tree dynamically (i.e. when the user clicks on
a node
<br>to expand, it just looks up its children dynamically and insert child
tree
<br>item to the parent SWT tree item dynamically?
<p>I am trying to do a plugin which has 2 views: 1 is text view and 2 is
tree
<br>view. It is used to edit a XML DOM. So I am wonder should I bulid a
full
<br>blown SWT TREE for each node in the DOM, or just insert nodes to the
SWT
<br>Tree dynamically.
<p>I look thru the code, but I don't really find the anwser to my question.
<br>Any help is appreciated.</blockquote>
</html>

--------------8D0C4C39B3B89422DA4A4AE3--
Re: Design question about XSD editor [message #566077 is a reply to message #13614] Fri, 07 March 2003 13:00 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 26215
Registered: July 2009
Senior Member
--------------8D0C4C39B3B89422DA4A4AE3
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Oro,

The tree view is constructed on the fly using EMF.Edit's item providers. Have
a look at the EMF documentation:

http://dev.eclipse.org/viewcvs/indextools.cgi/%7Echeckout%7E /emf-home/docs/doc.html

This one specifically deals with how views are populated:

http://dev.eclipse.org/viewcvs/indextools.cgi/%7Echeckout%7E /emf-home/docs/EMF.Edit_Framework.html

If you use JFace's TreeViewers and its ContentProviders its quite easy to
construct the tree on the fly.


oro wrote:

> 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.

--------------8D0C4C39B3B89422DA4A4AE3
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Oro,
<p>The tree view is constructed on the fly using EMF.Edit's item providers.&nbsp;
Have a look at the EMF documentation:
<blockquote>&nbsp;<a href=" http://dev.eclipse.org/viewcvs/indextools.cgi/%7Echeckout%7E /emf-home/docs/doc.html"> http://dev.eclipse.org/viewcvs/indextools.cgi/%7Echeckout%7E /emf-home/docs/doc.html</a></blockquote>

<p><br>This one specifically deals with how views are populated:
<blockquote>&nbsp;<a href=" http://dev.eclipse.org/viewcvs/indextools.cgi/%7Echeckout%7E /emf-home/docs/EMF.Edit_Framework.html"> http://dev.eclipse.org/viewcvs/indextools.cgi/%7Echeckout%7E /emf-home/docs/EMF.Edit_Framework.html</a></blockquote>
If you use JFace's TreeViewers and its ContentProviders its quite easy
to construct the tree on the fly.
<br>&nbsp;
<p>oro wrote:
<blockquote TYPE=CITE>In XSD editor, it has 1 is text view, 1 is tree view
for the XSD model.
<p>My assumption is there is just 1 model but there are 2 ways to edit
it, 1
<br>uses text editor, 1 uses tree editor.
<p>I am wondering how the tree view in the XSD editor is construct?
<br>Does it loop thru the whole model about build a SWT tree to represent
the
<br>whole model?
<p>Or it just builds the tree dynamically (i.e. when the user clicks on
a node
<br>to expand, it just looks up its children dynamically and insert child
tree
<br>item to the parent SWT tree item dynamically?
<p>I am trying to do a plugin which has 2 views: 1 is text view and 2 is
tree
<br>view. It is used to edit a XML DOM. So I am wonder should I bulid a
full
<br>blown SWT TREE for each node in the DOM, or just insert nodes to the
SWT
<br>Tree dynamically.
<p>I look thru the code, but I don't really find the anwser to my question.
<br>Any help is appreciated.</blockquote>
</html>

--------------8D0C4C39B3B89422DA4A4AE3--
Previous Topic:Design question about XSD editor
Next Topic:new xerces version
Goto Forum:
  


Current Time: Sun Nov 23 03:41:12 GMT 2014

Powered by FUDForum. Page generated in 0.02788 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software