Top Inners Fields Constructors Methods
org.jabref.gui.exporter

public Class ExportToClipboardAction

extends SimpleCommand
Class Inheritance
Imports
java.io.IOException, java.nio.file.Files, .Path, java.util.ArrayList, .Comparator, .List, .Optional, .Set, java.util.stream.Collectors, javafx.scene.input.ClipboardContent, org.jabref.gui.ClipBoardManager, .DialogService, .StateManager, org.jabref.gui.actions.ActionHelper, .SimpleCommand, org.jabref.gui.util.BackgroundTask, .TaskExecutor, org.jabref.logic.exporter.Exporter, .ExporterFactory, org.jabref.logic.journals.JournalAbbreviationRepository, org.jabref.logic.l10n.Localization, org.jabref.logic.util.FileType, .StandardFileType, org.jabref.model.entry.BibEntry, .BibEntryTypesManager, org.jabref.preferences.PreferencesService, com.airhacks.afterburner.injection.Injector, org.slf4j.Logger, .LoggerFactory

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static record

Field Summary

Modifier and TypeField and Description
private final ClipBoardManager
private final DialogService
private final List<BibEntry>
private static final Logger
private final PreferencesService
private final StateManager
private static final Set<FileType>
private final TaskExecutor
Inherited from org.jabref.gui.actions.SimpleCommand:
statusMessage

Constructor Summary

AccessConstructor and Description
public
ExportToClipboardAction(DialogService dialogService, StateManager stateManager, ClipBoardManager clipBoardManager, TaskExecutor taskExecutor, PreferencesService preferencesService)

Method Summary

Modifier and TypeMethod and Description
public void
private ExportToClipboardAction.ExportResult
private void
Inherited from org.jabref.gui.actions.SimpleCommand:
getProgressprogressPropertysetExecutablestatusMessageProperty

Field Detail

clipBoardManagerback to summary
private final ClipBoardManager clipBoardManager
dialogServiceback to summary
private final DialogService dialogService
entriesback to summary
private final List<BibEntry> entries
LOGGERback to summary
private static final Logger LOGGER
preferencesback to summary
private final PreferencesService preferences
stateManagerback to summary
private final StateManager stateManager
SUPPORTED_FILETYPESback to summary
private static final Set<FileType> SUPPORTED_FILETYPES
taskExecutorback to summary
private final TaskExecutor taskExecutor

Constructor Detail

ExportToClipboardActionback to summary
public ExportToClipboardAction(DialogService dialogService, StateManager stateManager, ClipBoardManager clipBoardManager, TaskExecutor taskExecutor, PreferencesService preferencesService)

Method Detail

executeback to summary
public void execute()
Annotations
@Override
exportToClipboardback to summary
private ExportToClipboardAction.ExportResult exportToClipboard(Exporter exporter) throws Exception
setContentToClipboardback to summary
private void setContentToClipboard(ExportToClipboardAction.ExportResult result)
org.jabref.gui.exporter back to summary

private final Record ExportToClipboardAction.ExportResult

extends Record
Class Inheritance
Record Components
content:String 
fileType:FileType 

Field Summary

Modifier and TypeField and Description
private final String
content

Record Component accessed by content().

private final FileType
fileType

Record Component accessed by fileType().

Constructor Summary

AccessConstructor and Description
private
ExportResult(String content, FileType fileType)

Method Summary

Modifier and TypeMethod and Description
public String
content()

Record Component getter of content.

public final boolean
equals(Object
the reference object with which to compare.
o
)

Implements abstract java.lang.Record.equals.

Indicates whether some other object is "equal to" this one.

public FileType
fileType()

Record Component getter of fileType.

public final int
hashCode()

Implements abstract java.lang.Record.hashCode.

Returns a hash code value for the record.

public final String
toString()

Implements abstract java.lang.Record.toString.

Returns a string representation of the record.

Field Detail

contentback to summary
private final String content

Record Component accessed by content().

fileTypeback to summary
private final FileType fileType

Record Component accessed by fileType().

Constructor Detail

ExportResultback to summary
private ExportResult(String content, FileType fileType)

Method Detail

contentback to summary
public String content()

Record Component getter of content.

equalsback to summary
public final boolean equals(Object o)

Implements abstract java.lang.Record.equals.

Doc from java.lang.Record.equals.

Indicates whether some other object is "equal to" this one. In addition to the general contract of Object.equals, record classes must further obey the invariant that when a record instance is "copied" by passing the result of the record component accessor methods to the canonical constructor, as follows:

    R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
Parameters
o:Object

the reference object with which to compare.

Returns:boolean

true if this record is equal to the argument; false otherwise.

fileTypeback to summary
public FileType fileType()

Record Component getter of fileType.

hashCodeback to summary
public final int hashCode()

Implements abstract java.lang.Record.hashCode.

Doc from java.lang.Record.hashCode.

Returns a hash code value for the record. Obeys the general contract of Object.hashCode. For records, hashing behavior is constrained by the refined contract of Record.equals, so that any two records created from the same components must have the same hash code.

Returns:int

a hash code value for this record.

toStringback to summary
public final String toString()

Implements abstract java.lang.Record.toString.

Doc from java.lang.Record.toString.

Returns a string representation of the record. In accordance with the general contract of Object#toString(), the toString method returns a string that "textually represents" this record. The result should be a concise but informative representation that is easy for a person to read.

In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves.

Returns:String

a string representation of the object.