Verified Owner
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, java.util.stream.Collectors, javafx.beans.property.ListProperty, .ReadOnlyListWrapper, javafx.collections.ObservableList, javafx.scene.input.KeyCombination, org.jabref.gui.AbstractViewModel, .DialogService, org.jabref.gui.clipboard.ClipBoardManager, org.jabref.gui.desktop.os.NativeDesktop, org.jabref.gui.keyboard.KeyBinding, org.jabref.gui.logging.LogMessages, org.jabref.gui.preferences.GuiPreferences, org.jabref.gui.util.BindingsHelper, org.jabref.logic.l10n.Localization, org.jabref.logic.os.OS, org.jabref.logic.util.BuildInfo, com.tobiasdiez.easybind.EasyBind, org.apache.hc.core5.net.URIBuilder, org.jspecify.annotations.NonNull, 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 GuiPreferences

Constructor Summary

AccessConstructor and Description
public

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
preferencesback to summary
private final GuiPreferences preferences

Constructor Detail

ErrorConsoleViewModelback to summary
public ErrorConsoleViewModel(@NonNull DialogService dialogService, @NonNull GuiPreferences preferences, @NonNull ClipBoardManager clipBoardManager, @NonNull 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.