Top Fields Constructors Methods
org.jabref.gui.maintable

public Class OpenExternalFileAction

extends SimpleCommand
Class Inheritance
Imports
java.util.LinkedList, .List, org.jabref.gui.DialogService, .StateManager, org.jabref.gui.actions.ActionHelper, .SimpleCommand, org.jabref.gui.fieldeditors.LinkedFileViewModel, org.jabref.gui.util.TaskExecutor, org.jabref.logic.l10n.Localization, org.jabref.model.entry.BibEntry, .LinkedFile, org.jabref.preferences.PreferencesService

Field Summary

Modifier and TypeField and Description
private final DialogService
private final BibEntry
private final int
private final LinkedFile
private final PreferencesService
private final StateManager
private final TaskExecutor
Inherited from org.jabref.gui.actions.SimpleCommand:
statusMessage

Constructor Summary

AccessConstructor and Description
public
OpenExternalFileAction(DialogService dialogService, StateManager stateManager, PreferencesService preferencesService, TaskExecutor taskExecutor)

public
OpenExternalFileAction(DialogService dialogService, StateManager stateManager, PreferencesService preferencesService, BibEntry entry, LinkedFile linkedFile, TaskExecutor taskExecutor)

Method Summary

Modifier and TypeMethod and Description
public void
execute()

Open all linked files of the selected entries.

Inherited from org.jabref.gui.actions.SimpleCommand:
getProgressprogressPropertysetExecutablestatusMessageProperty

Field Detail

dialogServiceback to summary
private final DialogService dialogService
entryback to summary
private final BibEntry entry
FILES_LIMITback to summary
private final int FILES_LIMIT
linkedFileback to summary
private final LinkedFile linkedFile
preferencesServiceback to summary
private final PreferencesService preferencesService
stateManagerback to summary
private final StateManager stateManager
taskExecutorback to summary
private final TaskExecutor taskExecutor

Constructor Detail

OpenExternalFileActionback to summary
public OpenExternalFileAction(DialogService dialogService, StateManager stateManager, PreferencesService preferencesService, TaskExecutor taskExecutor)
OpenExternalFileActionback to summary
public OpenExternalFileAction(DialogService dialogService, StateManager stateManager, PreferencesService preferencesService, BibEntry entry, LinkedFile linkedFile, TaskExecutor taskExecutor)

Method Detail

executeback to summary
public void execute()

Open all linked files of the selected entries. If opening too many files, pop out a dialog to ask the user if to continue.
If some selected entries have linked file and others do not, ignore the latter.

Annotations
@Override