The save operation is loaded off of the GUI thread using BackgroundTask. Callers can query whether the
operation was canceled, or whether it was successful.
| Modifier and Type | Class and Description |
|---|---|
| public static enum |
| Modifier and Type | Field and Description |
|---|---|
| private final DialogService | |
| private final BibEntryTypesManager | |
| private final LibraryTab | |
| private static final Logger | |
| private final PreferencesService |
| Access | Constructor and Description |
|---|---|
| public | SaveDatabaseAction(LibraryTab libraryTab, DialogService dialogService, PreferencesService preferences, BibEntryTypesManager entryTypesManager)
|
| Modifier and Type | Method and Description |
|---|---|
| private Optional | |
| private SelfContainedSaveOrder | |
| public boolean | |
| public boolean | |
| private boolean | |
| private boolean | |
| public void | |
| public boolean | |
| pack-priv boolean | Returns: true on successful savethe new file name to save the database to. This is stored in the database context of the panel upon
successful save. file, SaveDatabaseAction.
|
| private boolean | saveDatabase(Path file, boolean selectedOnly, Charset encoding, BibDatabaseWriter.
|
| public void | |
| private void | saveWithDifferentEncoding(Path file, boolean selectedOnly, Charset encoding, Set<Character> encodingProblems, BibDatabaseWriter.
|
| dialogService | back to summary |
|---|---|
| private final DialogService dialogService | |
| entryTypesManager | back to summary |
|---|---|
| private final BibEntryTypesManager entryTypesManager | |
| libraryTab | back to summary |
|---|---|
| private final LibraryTab libraryTab | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| preferences | back to summary |
|---|---|
| private final PreferencesService preferences | |
| SaveDatabaseAction | back to summary |
|---|---|
| public SaveDatabaseAction(LibraryTab libraryTab, DialogService dialogService, PreferencesService preferences, BibEntryTypesManager entryTypesManager) | |
| askForSavePath | back to summary |
|---|---|
| private Optional Asks the user for the path to save to. Stores the directory to the preferences, which is used next time when opening the dialog. | |
| getSaveOrder | back to summary |
|---|---|
| private SelfContainedSaveOrder getSaveOrder() | |
| save | back to summary |
|---|---|
| public boolean save() | |
| save | back to summary |
|---|---|
| public boolean save(SaveDatabaseAction. | |
| save | back to summary |
|---|---|
| private boolean save(BibDatabaseContext bibDatabaseContext, SaveDatabaseAction. | |
| save | back to summary |
|---|---|
| private boolean save(Path targetPath, SaveDatabaseAction. | |
| saveAs | back to summary |
|---|---|
| public void saveAs() Asks the user for the path and saves afterward | |
| saveAs | back to summary |
|---|---|
| public boolean saveAs(Path file) | |
| saveAs | back to summary |
|---|---|
pack-priv boolean saveAs(Path file, SaveDatabaseAction.
| |
| saveDatabase | back to summary |
|---|---|
| private boolean saveDatabase(Path file, boolean selectedOnly, Charset encoding, BibDatabaseWriter. | |
| saveSelectedAsPlain | back to summary |
|---|---|
| public void saveSelectedAsPlain() | |
| saveWithDifferentEncoding | back to summary |
|---|---|
| private void saveWithDifferentEncoding(Path file, boolean selectedOnly, Charset encoding, Set<Character> encodingProblems, BibDatabaseWriter. | |
| Modifier and Type | Field and Description |
|---|---|
| public static final SaveDatabaseAction. | |
| public static final SaveDatabaseAction. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static SaveDatabaseAction. | |
| public static SaveDatabaseAction. |
| NORMAL | back to summary |
|---|---|
| public static final SaveDatabaseAction. | |
| SILENT | back to summary |
|---|---|
| public static final SaveDatabaseAction. | |
| SaveDatabaseMode | back to summary |
|---|---|
| private SaveDatabaseMode() | |
| valueOf | back to summary |
|---|---|
| public static SaveDatabaseAction. | |
| values | back to summary |
|---|---|
| public static SaveDatabaseAction. | |