Top Fields Constructors Methods
org.jabref.gui.push

public Class PushToSublimeText

extends AbstractPushToApplication
Class Inheritance
Imports
java.io.IOException, java.nio.file.Path, java.util.List, .Map, org.jabref.gui.DialogService, org.jabref.gui.icon.IconTheme, .JabRefIcon, org.jabref.gui.util.StreamGobbler, org.jabref.logic.util.HeadlessExecutorService, .OS, org.jabref.model.database.BibDatabaseContext, org.jabref.model.entry.BibEntry, org.jabref.model.strings.StringUtil, org.jabref.preferences.PreferencesService, org.slf4j.Logger, .LoggerFactory

Field Summary

Modifier and TypeField and Description
private static final Logger
public static final String
Inherited from org.jabref.gui.push.AbstractPushToApplication:
commandPathcouldNotCallcouldNotPushdialogServicenotDefinedpreferencesService

Constructor Summary

AccessConstructor and Description
public
PushToSublimeText(DialogService dialogService, PreferencesService preferencesService)

Method Summary

Modifier and TypeMethod and Description
public JabRefIcon
protected String[]
getCommandLine(String
String containing the Bibtex keys to be pushed to the application
keyString
)

Overrides org.jabref.gui.push.AbstractPushToApplication.getCommandLine.

Constructs the command line arguments for pushing citations to the application.

public String
getDisplayName()

Implements org.jabref.gui.push.PushToApplication.getDisplayName.

Gets the display name for the push operation.

public void
Inherited from org.jabref.gui.push.AbstractPushToApplication:
getActiongetCitePrefixgetCiteSuffixgetCommandNamegetDelimitergetSettingsgetTooltiponOperationCompletedpushEntriesrequiresCitationKeys

Field Detail

LOGGERback to summary
private static final Logger LOGGER

Hides org.jabref.gui.push.AbstractPushToApplication.LOGGER.

NAMEback to summary
public static final String NAME

Constructor Detail

PushToSublimeTextback to summary
public PushToSublimeText(DialogService dialogService, PreferencesService preferencesService)

Method Detail

getApplicationIconback to summary
public JabRefIcon getApplicationIcon()

Overrides org.jabref.gui.push.AbstractPushToApplication.getApplicationIcon.

Implements org.jabref.gui.push.PushToApplication.getApplicationIcon.

Doc from org.jabref.gui.push.PushToApplication.getApplicationIcon.

Gets the icon associated with the application.

Returns:JabRefIcon

The icon for the application.

Annotations
@Override
getCommandLineback to summary
protected String[] getCommandLine(String keyString)

Overrides org.jabref.gui.push.AbstractPushToApplication.getCommandLine.

Doc from org.jabref.gui.push.AbstractPushToApplication.getCommandLine.

Constructs the command line arguments for pushing citations to the application. The method formats the citation key and prefixes/suffixes as per user preferences before invoking the application with the command to insert text.

Parameters
keyString:String

String containing the Bibtex keys to be pushed to the application

Returns:String[]

String array with the command to call and its arguments

Annotations
@Override
getDisplayNameback to summary
public String getDisplayName()

Implements org.jabref.gui.push.PushToApplication.getDisplayName.

Doc from org.jabref.gui.push.PushToApplication.getDisplayName.

Gets the display name for the push operation. This name is used in the GUI to represent the push action to the user.

Returns:String

The display name for the push operation.

Annotations
@Override
pushEntriesback to summary
public void pushEntries(BibDatabaseContext database, List<BibEntry> entries, String keyString)

Overrides org.jabref.gui.push.AbstractPushToApplication.pushEntries.

Implements org.jabref.gui.push.PushToApplication.pushEntries.

Doc from org.jabref.gui.push.PushToApplication.pushEntries.

The actual operation. This method will not be called on the event dispatch thread, so it should not do GUI operations without utilizing invokeLater().

Annotations
@Override