Skip to content

Commit

Permalink
Remove load session CLI option
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan-kolb committed Jan 26, 2016
1 parent 2439fa2 commit 2962f6a
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 30 deletions.
4 changes: 0 additions & 4 deletions src/main/java/net/sf/jabref/JabRef.java
Original file line number Diff line number Diff line change
Expand Up @@ -727,10 +727,6 @@ private void openWindow(Vector<ParserResult> loaded) {
first = false;
}

if (cli.isLoadSession()) {
JabRef.jrf.loadSessionAction.actionPerformed(new java.awt.event.ActionEvent(JabRef.jrf, 0, ""));
}

// Start auto save timer:
if (Globals.prefs.getBoolean(JabRefPreferences.AUTO_SAVE)) {
Globals.startAutoSaveManager(JabRef.jrf);
Expand Down
1 change: 0 additions & 1 deletion src/main/java/net/sf/jabref/JabRefCLI.java
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@ private Options getOptions() {
options.addOption("v", "version", false, Localization.lang("Display version"));
options.addOption("n", "nogui", false, Localization.lang("No GUI. Only process command line options."));
options.addOption("h", "help", false, Localization.lang("Display help on command line options"));
options.addOption("l", "loads", false, Localization.lang("Load session"));
options.addOption("b", "blank", false, Localization.lang("Do not open any files at startup"));
options.addOption(null, "debug", false, Localization.lang("Show debug level messages"));

Expand Down
8 changes: 4 additions & 4 deletions src/main/java/net/sf/jabref/exporter/SaveSession.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,22 +46,22 @@
* If committing fails, the temporary file will not be deleted.
*/
public class SaveSession {
private static final Log LOGGER = LogFactory.getLog(SaveSession.class);

public static final String LOCKFILE_SUFFIX = ".lock";

// The age in ms of a lockfile before JabRef will offer to "steal" the locked file:
public static final long LOCKFILE_CRITICAL_AGE = 60000;

private static final String TEMP_PREFIX = "jabref";
private static final String TEMP_SUFFIX = "save.bib";

private static final String TEMP_SUFFIX = "save.bib";
private final File file;
private final File tmp;
private final Charset encoding;
private boolean backup;
private final boolean useLockFile;
private final VerifyingWriter writer;

private static final Log LOGGER = LogFactory.getLog(SaveSession.class);
private final VerifyingWriter writer;


public SaveSession(File file, Charset encoding, boolean backup) throws IOException, UnsupportedCharsetException {
Expand Down
6 changes: 0 additions & 6 deletions src/main/resources/help/de/CommandLine.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,6 @@ <h2>Kein GUI-Modus: -n</h2>
der Kommandozeile oder mit Hilfe eines Scripts
durchzuf&uuml;hren.</p>

<h2>Sitzung laden: -l</h2>

<p>Diese Option veranlasst JabRef, eine
gespeicherte Sitzung zu laden, sofern eine vorhanden ist, bevor
sich das Hauptfenster &ouml;ffnet.</p>

<h2>Datei importieren: -i Dateiname[,Importformat]</h2>

<p>Bei dieser Option importiert oder l&auml;dt JabRef eine bestimmte
Expand Down
5 changes: 0 additions & 5 deletions src/main/resources/help/en/CommandLine.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,6 @@ <h2>No-GUI mode: -n</h2>
<p>This option is useful for performing file conversion
operations from the command line or a script.</p>

<h2>Load session: -l</h2>

<p>This option causes JabRef to load the
saved session, if any, before opening the main window.</p>

<h2>Import file: -i filename[,format]</h2>

<p>This option causes
Expand Down
6 changes: 0 additions & 6 deletions src/main/resources/help/fr/CommandLine.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,6 @@ <h2>No-GUI mode&nbsp;: -n</h2>
op&eacute;rations de conversion &agrave; partir de la ligne de
commande ou dans un script.</p>

<h2>Chargement d'une session&nbsp;: -l</h2>

<p>Cette option demande
&agrave; JabRef de charger la session sauvegard&eacute;e, si
elle existe, avant d'ouvrir la fen&ecirc;tre principale.</p>

<h2>Importation de fichier&nbsp;: -i
nomdefichier[,format]</h2>

Expand Down
4 changes: 0 additions & 4 deletions src/main/resources/help/ja/CommandLine.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@ <h2>GUI無しモード: -n</h2>

<p>このオプションは、コマンドラインやスクリプトからファイル変換操作を行う際に便利です。</p>

<h2>セッションの読込: -l</h2>

<p>このオプションを与えると、JabRefは、保存されたセッションがある場合には其れを読み込み、それから基本ウィンドウを開きます。</p>

<h2>ファイルの読込: -i ファイル名[,形式]</h2>

<p>このオプションを与えると、JabRefは指定したファイルを読み込むか開くかします。ファイル名だけが指定された場合やファイル名の後にコンマか*文字を付けた場合には、JabRefはファイル形式の自動検出を試みます。これは、BibTeXファイルとJabRefがサポートしているすべての読込形式に対して機能します。ファイル名の後にコンマと読込形式名を続けると、その読込フィルタが使用されます。使用できる読込形式については、<code>-h</code>オプションを使うと一覧を得ることができます。</p>
Expand Down

0 comments on commit 2962f6a

Please sign in to comment.