Project

General

Profile

Actions

Bug #2330

closed

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

Added by Dan Higgins over 18 years ago. Updated about 18 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
general
Target version:
Start date:
01/12/2006
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:
2330

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.

Actions #1

Updated by Chad Berkley over 18 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.

Actions #2

Updated by Christopher Brooks about 18 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.

Actions #3

Updated by Chad Berkley about 18 years ago

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

Actions #4

Updated by Christopher Brooks about 18 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.

Actions #5

Updated by Redmine Admin about 11 years ago

Original Bugzilla ID was 2330

Actions

Also available in: Atom PDF