Bug #2330

Saving a workflow doesn't add .xml or .moml extenders

Added by Dan Higgins over 16 years ago. Updated over 16 years ago.

Target version:
Start date:
Due date:
% Done:


Estimated time:


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.


#1 Updated by Chad Berkley over 16 years ago

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.

#2 Updated by Christopher Brooks over 16 years ago

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.

#3 Updated by Chad Berkley over 16 years ago

Christopher fixed this in the ptii code (right christopher?)

#4 Updated by Christopher Brooks over 16 years ago

Yep, I think I fixed this, but I neglected to close the bug pending
testing by someone else.
I think it can stay closed.

#5 Updated by Redmine Admin about 9 years ago

Original Bugzilla ID was 2330

Also available in: Atom PDF