Morpho XML Editor updates

Dan Higgins higgins at nceas.ucsb.edu
Sun Feb 22 19:57:07 PST 2004


Hi All,

    A number of changes have been made to the Morpho XML Editor based on 
discussions in our last set of review meetings. These are summarized 
below and can be seen 'in action' by checking out the head of the morpho 
CVS module. Comments appreciated.

Dan Higgins

-----


Changes to the Morpho XML Editor

1. When a datapackage is first opened in the editor, only the elements 
that actually exist in the document are displayed. This make the display 
simpler and allows a user to more easily edit existing information. 
(Previously, the existing instance was merged with the complete eml 
scheme, showing ALL possible elements in the document).

2. Control buttons that were at the bottom of the tree/outline display 
have been moved to the top. The top left button is labeled 'Show All'. 
Clicking this button merges the existing tree with the schema template 
and results in a 'complete' tree showing all possible elements.

3. A 'Find' control now appears at the top of the tree. A number of 
subsection elements of common interest (e.g. keywordSet or 
attributeList) appear in a comboBox and selecting a word in the list 
'finds' that word in the tree. The use can also just type any set of 
characters and search for a node in the tree containing that sequence of 
characters.

4. XML attributes now shown up in the tree as the first children of the 
node where they appear in the XML document (A '=' icon is used for these 
attribute nodes.)

5. EML2 has numerous 'references' elements in its schema which can be 
used in place of various subtrees. Any unused 'references' are now 
removed from the tree display (along with the associated CHOICE 
elements). This makes the tree display much simpler and less confusing. 
It does limit some editing possibilities that someone very familiar with 
eml might be able to carry out.

6. Several of the panes used in the DataPackage Wizard now appear 
directly as 'editors' on the right hand side of the XML editor when the 
appropriate tree node is selected. These include the 'PartyPage', the 
'GeographicPage', the 'AttributePage' and the 'TemporalPage'.
   Basically, wrapper classes, like 'AttributePanel', have been created 
in the editor package which just use the displays created for the 
Wizard. The XML editor uses a JTree. The subtree being edited is 
converted to a DOM tree. This is then used to create an OrderedMap, 
which is used to populate the various widgets in the wizard page being 
displayed. 'Save' and 'Cancel' buttons have been added to the editor 
panels for saving/resetting the displayed values. The Save button takes 
the values from an output OrderedMap and merges this with the same DOM 
tree used to populate the widgets. Note that this merge is needed to 
preserve parts of the DOM that are not displayed in the page. The DOM 
tree is then converted to a JTree and placed in the complete tree shown 
on the left side of the overall editor.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mercury.nceas.ucsb.edu/ecoinformatics/pipermail/morpho-dev/attachments/20040222/7e693e0e/attachment.htm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: MorphoEdit.gif
Type: image/gif
Size: 36683 bytes
Desc: not available
Url : http://mercury.nceas.ucsb.edu/ecoinformatics/pipermail/morpho-dev/attachments/20040222/7e693e0e/MorphoEdit.gif


More information about the Morpho-dev mailing list