[kepler-dev] [Bug 4869] changes made to workflows during dialogs before committing

bugzilla-daemon at ecoinformatics.org bugzilla-daemon at ecoinformatics.org
Thu Mar 11 10:22:07 PST 2010


http://bugzilla.ecoinformatics.org/show_bug.cgi?id=4869

--- Comment #6 from ben leinfelder <leinfelder at nceas.ucsb.edu> 2010-03-11 10:22:06 PST ---
Christopher,
The _handleClosing() method in ptolemy.actor.gui.EditParametersDialog   
does not restore the values of the actor parameters dialog when certain buttons
are pushed. It seems like this was intentional, but maybe it should be
revisited.
If you do call call contents.restore() the changes are not committed when, say,
the Help window is presented (and subsequently dismissed).

method below:

 /** If the contents of this dialog implements the CloseListener
     *  interface, then notify it that the window has closed.
     */
    protected void _handleClosing() {
        super._handleClosing();

        if (!buttonPressed().equals("Commit") && !buttonPressed().equals("Add")
                && !buttonPressed().equals("Preferences")
                && !buttonPressed().equals("Help")
                && !buttonPressed().equals("Remove")) {
            // Restore original parameter values.
            ((Configurer) contents).restore();
        }
    }

-- 
Configure bugmail: http://bugzilla.ecoinformatics.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the Kepler-dev mailing list