Verified Owner
Top Description Fields Constructors Methods
org.jabref.gui.slr

public Class StartNewStudyAction

extends ExistingStudySearchAction
Class Inheritance
Imports
java.io.IOException, java.nio.file.Path, java.util.Optional, java.util.function.Supplier, org.jabref.gui.DialogService, .LibraryTabContainer, .StateManager, org.jabref.gui.importer.actions.OpenDatabaseAction, org.jabref.logic.crawler.StudyRepository, .StudyYamlParser, org.jabref.logic.git.GitHandler, org.jabref.logic.l10n.Localization, org.jabref.logic.preferences.CliPreferences, org.jabref.logic.util.TaskExecutor, org.jabref.model.study.Study, org.jabref.model.util.FileUpdateMonitor, org.eclipse.jgit.api.errors.GitAPIException, org.slf4j.Logger, .LoggerFactory

Used to start a new study:

Needs to inherit ExistingStudySearchAction, because that action implements the real crawling.

There is the hook StartNewStudyAction#crawlPreparation(Path), which is used by ExistingStudySearchAction#crawl().

Field Summary

Modifier and TypeField and Description
private static final Logger
pack-priv Study
Inherited from org.jabref.gui.slr.ExistingStudySearchAction:
dialogServicepreferencesstateManagerstudyDirectory

Constructor Summary

AccessConstructor and Description
public
StartNewStudyAction(LibraryTabContainer tabContainer, Supplier<OpenDatabaseAction> openDatabaseActionSupplier, FileUpdateMonitor fileUpdateMonitor, TaskExecutor taskExecutor, CliPreferences preferences, StateManager stateManager, DialogService dialogService)

Method Summary

Modifier and TypeMethod and Description
protected void
crawlPreparation(Path studyRepositoryRoot)

Overrides org.jabref.gui.slr.ExistingStudySearchAction.crawlPreparation.

Hook for setting up the crawl phase (e.g., initialization the repository)

public void
Inherited from org.jabref.gui.slr.ExistingStudySearchAction:
crawl

Field Detail

LOGGERback to summary
private static final Logger LOGGER

Hides org.jabref.gui.slr.ExistingStudySearchAction.LOGGER.

newStudyback to summary
pack-priv Study newStudy

Constructor Detail

StartNewStudyActionback to summary
public StartNewStudyAction(LibraryTabContainer tabContainer, Supplier<OpenDatabaseAction> openDatabaseActionSupplier, FileUpdateMonitor fileUpdateMonitor, TaskExecutor taskExecutor, CliPreferences preferences, StateManager stateManager, DialogService dialogService)

Method Detail

crawlPreparationback to summary
protected void crawlPreparation(Path studyRepositoryRoot) throws IOException, GitAPIException

Overrides org.jabref.gui.slr.ExistingStudySearchAction.crawlPreparation.

Doc from org.jabref.gui.slr.ExistingStudySearchAction.crawlPreparation.

Hook for setting up the crawl phase (e.g., initialization the repository)

Annotations
@Override
executeback to summary
public void execute()

Overrides org.jabref.gui.slr.ExistingStudySearchAction.execute.

Annotations
@Override