User brought "back" to open dialog upon error when the used the open last file button

Issue #561 closed
Robert Leach created an issue

USE CASE: WHAT DO YOU WANT TO DO?

If an error occurs, I want to be returned to where I actually was.

STEPS TO REPRODUCE AN ISSUE (OR TRIGGER A NEW FEATURE)

The code must be modified to make this happen (or else, you need to open an extremely large file on a system with very little memory. I originally encountered it in a VM, but any load exception can cause this - not just memory.

  1. Inside ModelLoader.java->doInBackground(), add the following line: throw new RuntimeException("Simulation of thread out of memory exception");
  2. Click the "Load Last File" button on the welcome screen (assuming one was opened before)

CURRENT BEHAVIOR

After an error, the user is presented with an open dialog (as of the changes in branch issue547...).

EXPECTED BEHAVIOR

User should be returned to the welcome screen (or their previously loaded data)

DEVELOPERS ONLY SECTION

SUGGESTED CHANGE (Pseudocode optional)

Record how the user initiated the open and check before calling openFile().

FILES AFFECTED (where the changes will be implemented) - developers only

ModelLoader TVController

LEVEL OF EFFORT - developers only

minor

COMMENTS

Comments (2)

  1. Log in to comment