Provides a means for saving the application persistently, undo/redo support (TODO). canvas is the canvas to be serialized, extension identifies the application. Note that internal changes to das may break saved files.
Creates a new instance of PersistentStateSupport
Adds a PropertyChangeListener to the listener list.
reset the current file so it is null. We call this for example when we are finished with the file and would start a new file without a name.
Create an action which will trigger the save as dialog. This is used to create a "save as" button.
return the current file, which will be a reference to the local file system.
Property currentFileOpened indicates if the current file has ever been opened. This is to handle the initial state where the current file is set, but should not be displayed because it has not been opened.
Getter for property dirty.
Property loading is true when a load operation is being performed.
Property saving is true when a save operation is being performed.
Removes a PropertyChangeListener from the listener list.
Save the state to the file selected by a JFileChooser.
set the current file, which could be file:///home/... or /home/... if null, then no file is currently opened.
Setter for property currentFileOpened.
Setter for property dirty.