Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "Introduction to the XSD Editor"
(10 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
<td valign="top" align="right"> </td><td valign="top"> | <td valign="top" align="right"> </td><td valign="top"> | ||
− | <b>By | + | <b>By Trung Ha</b> |
<BR> | <BR> | ||
− | + | August 30, 2006<BR> | |
<BR> | <BR> | ||
Line 30: | Line 30: | ||
<P>In order to see these components in detail you can 'drill down' on a component of interest by double clicking on it. For example, | <P>In order to see these components in detail you can 'drill down' on a component of interest by double clicking on it. For example, | ||
if we double click on the 'BookType' component, the editor will display the structure of the 'BookType' type as shown below. | if we double click on the 'BookType' component, the editor will display the structure of the 'BookType' type as shown below. | ||
− | To return to the 'top level' view, press the back button | + | To return to the 'top-level' view, press the back button |
[[Image:Xsdeditor-toplevelbutton.JPG]] | [[Image:Xsdeditor-toplevelbutton.JPG]] | ||
at the top left of the editor, or right clicking within the editor and selecting 'Back to Schema' from the context menu.<BR> | at the top left of the editor, or right clicking within the editor and selecting 'Back to Schema' from the context menu.<BR> | ||
Line 37: | Line 37: | ||
[[Image:Xsdeditor-figure2.JPG]] | [[Image:Xsdeditor-figure2.JPG]] | ||
</P> | </P> | ||
+ | <BR> | ||
<P>Editing the schema is achieved by invoking context menu actions on selected objects in the Graph view and | <P>Editing the schema is achieved by invoking context menu actions on selected objects in the Graph view and | ||
− | using the properties view to modify the properties of the selected object. | + | using the properties view to modify the properties of the selected object. Go back to the top-level view and follow the steps below to create a new element |
declaration and define its content.</P> | declaration and define its content.</P> | ||
Line 48: | Line 49: | ||
<LI>use the properties view to change the name of the element to 'Paper' | <LI>use the properties view to change the name of the element to 'Paper' | ||
[[Image:Xsdeditor-figure3.JPG]] | [[Image:Xsdeditor-figure3.JPG]] | ||
− | + | <BR> | |
+ | <BR> | ||
<BR> | <BR> | ||
</LI> | </LI> | ||
<LI> | <LI> | ||
− | + | ||
right click on Paper and select 'Set Type'->'New..." to create a new type for the element.<BR> | right click on Paper and select 'Set Type'->'New..." to create a new type for the element.<BR> | ||
[[Image:Xsdeditor-figure4.JPG]] | [[Image:Xsdeditor-figure4.JPG]] | ||
+ | <BR> | ||
+ | <BR> | ||
<BR> | <BR> | ||
Line 63: | Line 67: | ||
[[Image:Xsdeditor-figure5.JPG]] | [[Image:Xsdeditor-figure5.JPG]] | ||
+ | <BR> | ||
<BR> | <BR> | ||
− | + | <BR> | |
− | <BR> | + | |
− | + | ||
</LI> | </LI> | ||
Line 83: | Line 86: | ||
[[Image:Xsdeditor-figure6.JPG]] | [[Image:Xsdeditor-figure6.JPG]] | ||
<BR> | <BR> | ||
− | + | <BR> | |
+ | <BR> | ||
</LI> | </LI> | ||
Line 91: | Line 95: | ||
[[Image:Xsdeditor-figure7.JPG]] | [[Image:Xsdeditor-figure7.JPG]] | ||
<BR> | <BR> | ||
− | + | <BR> | |
− | <BR> | + | <BR> |
− | + | ||
</LI> | </LI> | ||
Line 100: | Line 103: | ||
[[Image:xsdeditor-figure8.JPG]] | [[Image:xsdeditor-figure8.JPG]] | ||
− | + | <BR> | |
+ | <BR> | ||
+ | <BR> | ||
</LI> | </LI> | ||
<LI> | <LI> | ||
Name the newly added element 'URL' because, say, the paper is found on the web.<BR> | Name the newly added element 'URL' because, say, the paper is found on the web.<BR> | ||
− | |||
− | |||
[[Image:xsdeditor-figure9.JPG]] | [[Image:xsdeditor-figure9.JPG]] | ||
− | + | <BR> | |
− | + | <BR> | |
+ | <BR> | ||
</LI> | </LI> | ||
− | <LI>The type of URL can be changed in the main editor panel by clicking on its current type 'string'. A combo box will be shown as below | + | <LI>The type of URL can be changed in the main editor panel by clicking on its current type 'string'. A combo box will be shown as below (For now we don't change the the type of URL yet) |
<BR> | <BR> | ||
[[Image:xsdeditor-figure10.JPG]] | [[Image:xsdeditor-figure10.JPG]] | ||
<BR> | <BR> | ||
+ | <BR> | ||
+ | <BR> | ||
</LI> | </LI> | ||
Line 127: | Line 133: | ||
[[Image:xsdeditor-figure11.JPG]] | [[Image:xsdeditor-figure11.JPG]] | ||
<BR> | <BR> | ||
+ | <BR> | ||
+ | <BR> | ||
</LI> | </LI> | ||
− | <LI> | + | <LI>We can change the element to be referred to in the main editor panel by click on 'Book'. A Combo will be shown as below. |
<BR> | <BR> | ||
Line 135: | Line 143: | ||
[[Image:xsdeditor-figure12.JPG]] | [[Image:xsdeditor-figure12.JPG]] | ||
<BR> | <BR> | ||
+ | <BR> | ||
+ | <BR> | ||
</LI> | </LI> | ||