Top Fields Constructors Methods
org.jabref.gui.errorconsole

public Class ErrorConsoleViewModel

extends AbstractViewModel
Class Inheritance
Imports
java.io.IOException, java.net.URISyntaxException, java.util.List, .Objects, java.util.stream.Collectors, javafx.beans.property.ListProperty, .ReadOnlyListWrapper, javafx.collections.ObservableList, org.jabref.gui.AbstractViewModel, .ClipBoardManager, .DialogService, org.jabref.gui.desktop.JabRefDesktop, org.jabref.gui.util.BindingsHelper, org.jabref.logic.l10n.Localization, org.jabref.logic.logging.LogMessages, org.jabref.logic.util.BuildInfo, .OS, org.jabref.preferences.PreferencesService, com.tobiasdiez.easybind.EasyBind, org.apache.hc.core5.net.URIBuilder, org.slf4j.Logger, .LoggerFactory

Field Summary

Modifier and TypeField and Description
private final ListProperty<LogEventViewModel>
private final BuildInfo
private final ClipBoardManager
private final DialogService
private static final Logger
private final PreferencesService

Constructor Summary

AccessConstructor and Description
public
ErrorConsoleViewModel(DialogService dialogService, PreferencesService preferencesService, ClipBoardManager clipBoardManager, BuildInfo buildInfo)

Method Summary

Modifier and TypeMethod and Description
public ListProperty<LogEventViewModel>
public void
clearLog()

Clears the current log

public void
copyLog()

Copies the whole log to the clipboard

public void
copyLog(List<LogEventViewModel> messages)

Copies the given list of LogEventViewModels to the clipboard.

public void
copyLogEntry(LogEventViewModel logEvent)

Copies the detailed text of the given LogEventViewModel to the clipboard.

private String

Returns:

all messages as String
getLogMessagesAsString
(List<LogEventViewModel> messages)

Concatenates the formatted message of the given LogEventViewModels by using a new line separator.

public void
reportIssue()

Opens a new issue on GitHub and copies log to clipboard.

Field Detail

allMessagesDataback to summary
private final ListProperty<LogEventViewModel> allMessagesData
buildInfoback to summary
private final BuildInfo buildInfo
clipBoardManagerback to summary
private final ClipBoardManager clipBoardManager
dialogServiceback to summary
private final DialogService dialogService
LOGGERback to summary
private static final Logger LOGGER
preferencesServiceback to summary
private final PreferencesService preferencesService

Constructor Detail

ErrorConsoleViewModelback to summary
public ErrorConsoleViewModel(DialogService dialogService, PreferencesService preferencesService, ClipBoardManager clipBoardManager, BuildInfo buildInfo)

Method Detail

allMessagesDataPropertyback to summary
public ListProperty<LogEventViewModel> allMessagesDataProperty()
clearLogback to summary
public void clearLog()

Clears the current log

copyLogback to summary
public void copyLog()

Copies the whole log to the clipboard

copyLogback to summary
public void copyLog(List<LogEventViewModel> messages)

Copies the given list of LogEventViewModels to the clipboard.

copyLogEntryback to summary
public void copyLogEntry(LogEventViewModel logEvent)

Copies the detailed text of the given LogEventViewModel to the clipboard.

getLogMessagesAsStringback to summary
private String getLogMessagesAsString(List<LogEventViewModel> messages)

Concatenates the formatted message of the given LogEventViewModels by using a new line separator.

Returns:String

all messages as String

reportIssueback to summary
public void reportIssue()

Opens a new issue on GitHub and copies log to clipboard.