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.gui.util.TaskExecutor, org.jabref.logic.crawler.StudyRepository, .StudyYamlParser, org.jabref.logic.git.GitHandler, org.jabref.logic.l10n.Localization, org.jabref.model.study.Study, org.jabref.model.util.FileUpdateMonitor, org.jabref.preferences.PreferencesService, org.eclipse.jgit.api.errors.GitAPIException, org.slf4j.Logger, .LoggerFactory

Used to start a new study:
  1. Let the user input meta data for the study.
  2. Let JabRef do the crawling afterwards.
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:
dialogServicepreferencesServicestateManagerstudyDirectory

Constructor Summary

AccessConstructor and Description
public
StartNewStudyAction(LibraryTabContainer tabContainer, Supplier<OpenDatabaseAction> openDatabaseActionSupplier, FileUpdateMonitor fileUpdateMonitor, TaskExecutor taskExecutor, PreferencesService preferencesService, 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, PreferencesService preferencesService, StateManager stateManager, DialogService dialogService)

Method Detail

crawlPreparationback to summary
protected void crawlPreparation(Path studyRepositoryRoot) throws IOException, org.eclipse.jgit.api.errors.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