Top Description Fields Constructors Methods
org.jabref.gui.openoffice

public Class DetectOpenOfficeInstallation

extends Object
Class Inheritance
Imports
java.nio.file.Files, .Path, java.util.List, .Optional, org.jabref.gui.DialogService, org.jabref.gui.desktop.JabRefDesktop, org.jabref.gui.util.DirectoryDialogConfiguration, org.jabref.logic.l10n.Localization, org.jabref.logic.openoffice.OpenOfficePreferences, org.jabref.logic.util.OS, org.jabref.logic.util.io.FileUtil, org.jabref.model.strings.StringUtil

Tools for automatically detecting OpenOffice or LibreOffice installations.

Field Summary

Modifier and TypeField and Description
private final DialogService
private final OpenOfficePreferences

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private boolean
checkAutoDetectedPaths(OpenOfficePreferences openOfficePreferences)

Checks whether the executablePath exists

public Optional<Path>
public boolean
public Optional<Path>
public boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

dialogServiceback to summary
private final DialogService dialogService
openOfficePreferencesback to summary
private final OpenOfficePreferences openOfficePreferences

Constructor Detail

DetectOpenOfficeInstallationback to summary
public DetectOpenOfficeInstallation(OpenOfficePreferences openOfficePreferences, DialogService dialogService)

Method Detail

checkAutoDetectedPathsback to summary
private boolean checkAutoDetectedPaths(OpenOfficePreferences openOfficePreferences)

Checks whether the executablePath exists

chooseAmongInstallationsback to summary
public Optional<Path> chooseAmongInstallations(List<Path> installDirs)
isExecutablePathDefinedback to summary
public boolean isExecutablePathDefined()
selectInstallationPathback to summary
public Optional<Path> selectInstallationPath()
setOpenOfficePreferencesback to summary
public boolean setOpenOfficePreferences(Path installDir)