Package org.jjazz.songeditormanager.api
Class StartupShutdownSongManager
java.lang.Object
org.netbeans.spi.sendopts.OptionProcessor
org.jjazz.songeditormanager.api.StartupShutdownSongManager
public class StartupShutdownSongManager
extends org.netbeans.spi.sendopts.OptionProcessor
implements Callable<Boolean>
Manage the opening/closing of song files at startup/shutdown.
Upon startup, if file names arguments are passed on the command line, open these files. Otherwise restore the last opened files depending on setting. Upon shutdown ask for user confirmation for unsaved songs.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
-
Constructor Summary
ConstructorDescriptionReserved do not use : use getInstance() instead. -
Method Summary
Modifier and TypeMethodDescriptioncall()
Called upon shutdown.static final StartupShutdownSongManager
final boolean
void
setOpenRecentFilesUponStartup
(boolean b)
-
Constructor Details
-
StartupShutdownSongManager
public StartupShutdownSongManager()Reserved do not use : use getInstance() instead.
-
-
Method Details
-
getInstance
-
setOpenRecentFilesUponStartup
public void setOpenRecentFilesUponStartup(boolean b) -
isOpenRecentFilesUponStartup
public final boolean isOpenRecentFilesUponStartup() -
call
Called upon shutdown.Ask user confirmation if unsaved changes (whatever nb of unsaved files), close properly the opened songs (so that listeners with persistence like RecentFiles are notified).
Also save the opened songs for possible reopen at startup (see isOpenRecentFilesUponStartup()).
-