Bug 187055 - Need support for creating new SML-IF document
Summary: Need support for creating new SML-IF document
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Cosmos (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: David Whiteman CLA
QA Contact:
URL:
Whiteboard:
Keywords: Documentation
Depends on:
Blocks:
 
Reported: 2007-05-15 13:20 EDT by David Whiteman CLA
Modified: 2012-01-03 13:54 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Whiteman CLA 2007-05-15 13:20:46 EDT
Currently the only way to create an SML-IF document is to export SML documents.  A suggested alternative is File > New > SML-IF document
Comment 1 David Whiteman CLA 2007-05-25 15:23:44 EDT
Fixed - there is now a wizard for creating a new SML-IF file, available from New > Other...
Comment 2 David Whiteman CLA 2007-06-06 14:58:32 EDT
Question for Valentina... this does exist now, but is it what you envisioned to create an SML-IF file that just has identity information in it?  I mean, were you thinking in the short term that people would just fill in the SML definition and instance data by hand or copy/paste?  I guess I'm wondering what the near term usefuless of this feature is.
Comment 3 David Whiteman CLA 2007-07-26 17:23:23 EDT
We need to generate <definitions> and <instances> tags, so the user could use the editor add SML documents to the newly created SML-IF document.  The editor does not show the "Add Document" menu option without those elements created.
Comment 4 David Whiteman CLA 2007-07-30 12:39:49 EDT
Fixed in CVS-HEAD.  This is now a lot more useful since the new SML-IF file can be augmented by selecting Add Document.
Comment 5 David Whiteman CLA 2007-07-30 12:41:27 EDT
Fixed in CVS-HEAD.  This is now a lot more useful since the new SML-IF file can be augmented by selecting Add Document.
Comment 6 David Whiteman CLA 2007-08-09 13:21:05 EDT
Even though the definitions and instances tree items are there, for some reason the popup menu to add documents is not displaying.  Need to investigate.
Comment 7 David Whiteman CLA 2007-08-09 14:56:53 EDT
Marking this as fixed again, since the problem I discovered needs a separate bug report.
Comment 8 David Whiteman CLA 2007-08-09 17:25:39 EDT
It turns out that adding an empty <definitions> or <instances> element produces an invalid SML-IF document.  Need to solve this in a different way.
Comment 9 David Whiteman CLA 2007-08-09 17:28:17 EDT
Now, if the SML-IF file has no definitions or instances (which can happen even if the document wasn't created via this new SML-IF file support), and therefore there is no parent <definitions> or <instances> node, the "Add Document" menu item is now available.  I had to add code to handle that case, and now if neither of those nodes is selected, the user is prompted for the type of document to add.  The editor will automatically add the parent node in the process of adding the child node.
Comment 10 David Whiteman CLA 2008-02-27 10:57:59 EST
this was completed awhile ago