Project

General

Profile

Bug #3220

"Save" from TextEditor interferes with workflow save-before-closing prompt

Added by ben leinfelder over 10 years ago. Updated over 9 years ago.

Status:
New
Priority:
Normal
Category:
general
Target version:
Start date:
04/14/2008
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:
3220

Description

While editing an RExpression script using the built-in TextEditor ("Open Actor"), Kevin Drury found that if he used "Save" from within the text editor window to save the contents of the script, closed that editor window, then closed the workflow window (that contained other unsaved changes), Kepler would not prompt him for a confirmation to save before closing the workflow. All changes would then be lost.
I've reproduced this behavior (we are both on a Mac).

TextEditorForStringAttributes.java (7.02 KB) TextEditorForStringAttributes.java Aaron Aaron, 06/23/2008 06:36 PM

History

#1 Updated by ben leinfelder over 10 years ago

aaron will take a look at this - really dives into the ptolemy code. Some starting places:
ptolemy.actor.gui.Effigy
ptolemy.actor.gui.TextEditor
ptolemy.vergil.toolbox.TextEditorForStringAttributes

#2 Updated by Aaron Aaron over 10 years ago

ptolemy.vergil.toolbox.TextEditorForStringAttributes

This patch improves the way TextEditorForStringAttributes handles modified text and fixes bug 3220.

#3 Updated by Aaron Aaron over 10 years ago

This patch fixes the bug but it still needs to be integrated into the ptolemy tree before we close this out.

#4 Updated by Aaron Aaron over 9 years ago

Ben can you check in this patch? I can't figure out how to check files into the Ptolemy svn repo. Thanks

#5 Updated by Redmine Admin over 5 years ago

Original Bugzilla ID was 3220

Also available in: Atom PDF