public class ExportFormats
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
entryNumber |
Constructor and Description |
---|
ExportFormats() |
Modifier and Type | Method and Description |
---|---|
static javax.swing.JFileChooser |
createExportFileChooser(java.lang.String currentDir) |
static java.lang.String |
getConsoleExportList(int maxLineLength,
int firstLineSubtr,
java.lang.String linePrefix)
Build a string listing of all available export formats.
|
static javax.swing.AbstractAction |
getExportAction(JabRefFrame frame,
boolean selectedOnly)
Create an AbstractAction for performing an export operation.
|
static IExportFormat |
getExportFormat(java.lang.String consoleName)
Look up the named export format.
|
static java.util.Map<java.lang.String,IExportFormat> |
getExportFormats()
Get a Map of all export formats.
|
static void |
initAllExports() |
public static void initAllExports()
public static java.lang.String getConsoleExportList(int maxLineLength, int firstLineSubtr, java.lang.String linePrefix)
maxLineLength
- The max line length before a line break must be added.linePrefix
- If a line break is added, this prefix will be inserted at the
beginning of the next line.public static java.util.Map<java.lang.String,IExportFormat> getExportFormats()
public static IExportFormat getExportFormat(java.lang.String consoleName)
consoleName
- The export name given in the JabRef console help information.public static javax.swing.AbstractAction getExportAction(JabRefFrame frame, boolean selectedOnly)
frame
- The JabRefFrame of this JabRef instance.selectedOnly
- true indicates that only selected entries should be exported,
false indicates that all entries should be exported.public static javax.swing.JFileChooser createExportFileChooser(java.lang.String currentDir)