org.jabref.gui.desktop.JabRefDesktop instead.
This class contains bundles OS specific implementations for file directories and file/application open handling methods. In case the default does not work, subclasses provide the correct behavior.
We cannot use a static logger instance here in this class as the Logger first needs to be configured in the Launcher#initLogging.
The configuration of tinylog will become immutable as soon as the first log entry is issued.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public abstract String | |
| public abstract Path | |
| public Path | |
| public Path | |
| public Path | |
| public String | |
| public Path | |
| public Path | |
| public Path | |
| public void | |
| public boolean | |
| public abstract void | |
| public abstract void | |
| public abstract void | openFileWithApplication(String
The filename. filePath, String Link to the app that opens the file. application)Opens a file on an Operating System, using the given application. |
| public abstract void |
| NativeDesktop | back to summary |
|---|---|
| public NativeDesktop() | |
| detectProgramPath | back to summary |
|---|---|
| public abstract String detectProgramPath(String programName, String directoryName) | |
| getApplicationDirectory | back to summary |
|---|---|
| public abstract Path getApplicationDirectory() Returns the path to the system's applications folder.
| |
| getBackupDirectory | back to summary |
|---|---|
| public Path getBackupDirectory() | |
| getDefaultFileChooserDirectory | back to summary |
|---|---|
| public Path getDefaultFileChooserDirectory() Get the user's default file chooser directory
| |
| getFulltextIndexBaseDirectory | back to summary |
|---|---|
| public Path getFulltextIndexBaseDirectory() | |
| getHostName | back to summary |
|---|---|
| public String getHostName() | |
| getLogDirectory | back to summary |
|---|---|
| public Path getLogDirectory() | |
| getSslDirectory | back to summary |
|---|---|
| public Path getSslDirectory() | |
| getUserDirectory | back to summary |
|---|---|
| public Path getUserDirectory() Returns the path to the system's user directory.
| |
| moveToTrash | back to summary |
|---|---|
| public void moveToTrash(Path path) Moves the given file to the trash.
| |
| moveToTrashSupported | back to summary |
|---|---|
| public boolean moveToTrashSupported() | |
| openConsole | back to summary |
|---|---|
| public abstract void openConsole(String absolutePath, DialogService dialogService) throws IOException | |
| openFile | back to summary |
|---|---|
| public abstract void openFile(String filePath, String fileType, FilePreferences filePreferences) throws IOException | |
| openFileWithApplication | back to summary |
|---|---|
| public abstract void openFileWithApplication(String filePath, String application) throws IOException Opens a file on an Operating System, using the given application. | |
| openFolderAndSelectFile | back to summary |
|---|---|
| public abstract void openFolderAndSelectFile(Path file) throws IOException | |