Bug #2330
closed
Saving a workflow doesn't add .xml or .moml extenders
Added by Dan Higgins almost 19 years ago.
Updated almost 19 years ago.
Description
When saving a workflow, if you just enter a file name without the '.xml' or
'.moml' extender, the file is saved as typed. But when opening such a workflow,
the text is displayed; i.e the moml is not parsed and displayed as a graph
unless the extender is in the file name!
This confused new users are recent training session.
I modified PTII ptolemy/actor/gui/TableauFrame code to put a .xml extension on
the files when it save them. it only puts the extension on them if the user
hasn't specified an extension and the "all files" filter is not chosen.
Hi Chad,
My concern is that adding the filter to TableauFrame is the wrong place,
since TableauFrame is the base class that is used by other classes that are
not .xml or .moml files.
For example, in Ptolemy, Do File -> New -> Text Editor
Type some text
Do File -> Save
Change the name to README
Save the file.
The file is saved as README.xml
This does not seem quite right, perhaps we can put the "Add the .xml"
code somewhere lower in the class hierarchy? I'm reopening this bug
pending a fix for this problem.
This bug seems like the bug in wordpad or notepad where you can't save a
file without .txt being added automagically.
Christopher fixed this in the ptii code (right christopher?)
Yep, I think I fixed this, but I neglected to close the bug pending
testing by someone else.
I think it can stay closed.
Original Bugzilla ID was 2330
Also available in: Atom
PDF