public final void exportRegionsOfInterest() {
//dhmay adding 20110505: There was an intermittent bug in which the regions list was not getting
//synched when the user made changes to the regions table in the region navigator dialog. I'm addressing
//this with a change to RegionNavigatorDialog, but, due to the intermittent nature of the bug, I'm adding
//a catchall here, too. This synchs everything from the nav dialog.
RegionNavigatorDialog navDialog = RegionNavigatorDialog.getInstance();
if (navDialog != null) navDialog.updateROIsFromRegionTable();
File exportRegionDirectory = PreferenceManager.getInstance().getLastExportedRegionDirectory();
if (exportRegionDirectory == null) {
exportRegionDirectory = DirectoryManager.getUserDirectory();
}