Skip to content

Commit 2facc25

Browse files
committed
Remove preferences associated with the legacy pdf and ps sync option
1 parent a108c48 commit 2facc25

File tree

1 file changed

+0
-33
lines changed

1 file changed

+0
-33
lines changed

src/main/java/net/sf/jabref/gui/preftabs/ExternalTab.java

-33
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,8 @@ class ExternalTab extends JPanel implements PrefsTab {
4545

4646
private final JabRefFrame frame;
4747

48-
private final JTextField pdfDir;
4948
private final JTextField regExpTextField;
5049
private final JTextField fileDir;
51-
private final JTextField psDir;
5250
private final JTextField emailSubject;
5351
private final JTextField citeCommand;
5452

@@ -69,8 +67,6 @@ public ExternalTab(JabRefFrame frame, PreferencesDialog prefsDiag, JabRefPrefere
6967
this.frame = frame;
7068
setLayout(new BorderLayout());
7169

72-
psDir = new JTextField(25);
73-
pdfDir = new JTextField(25);
7470
fileDir = new JTextField(25);
7571
bibLocationAsFileDir = new JCheckBox(Localization.lang("Allow file links relative to each bib file's location"));
7672
bibLocAsPrimaryDir = new JCheckBox(Localization.lang("Use the bib file location as primary file directory"));
@@ -168,32 +164,7 @@ public void itemStateChanged(ItemEvent e) {
168164
builder.append(openFoldersOfAttachedFiles);
169165
builder.nextLine();
170166

171-
builder.appendSeparator(Localization.lang("Legacy file fields"));
172-
pan = new JPanel();
173-
builder.append(pan);
174-
builder.append(new JLabel("<html>" + Localization.lang("Note that these settings are used for the legacy "
175-
+ "<b>pdf</b> and <b>ps</b> fields only.<br>For most users, setting the <b>Main file directory</b> "
176-
+ "above should be sufficient.") + "</html>"), 5);
177-
builder.nextLine();
178-
pan = new JPanel();
179-
builder.append(pan);
180-
lab = new JLabel(Localization.lang("Main PDF directory") + ':');
181-
builder.append(lab);
182-
builder.append(pdfDir);
183-
browse = BrowseAction.buildForDir(this.frame, pdfDir);
184-
builder.append(new JButton(browse));
185-
builder.nextLine();
186-
187-
pan = new JPanel();
188-
builder.append(pan);
189-
lab = new JLabel(Localization.lang("Main PS directory") + ':');
190-
builder.append(lab);
191-
builder.append(psDir);
192-
browse = BrowseAction.buildForDir(this.frame, psDir);
193-
builder.append(new JButton(browse));
194-
builder.nextLine();
195167
builder.appendSeparator(Localization.lang("External programs"));
196-
197168
builder.nextLine();
198169

199170
JPanel butpan = new JPanel();
@@ -239,8 +210,6 @@ public void actionPerformed(ActionEvent event) {
239210

240211
@Override
241212
public void setValues() {
242-
pdfDir.setText(prefs.get("pdfDirectory"));
243-
psDir.setText(prefs.get("psDirectory"));
244213
fileDir.setText(prefs.get(Globals.FILE_FIELD + "Directory"));
245214
bibLocationAsFileDir.setSelected(prefs.getBoolean(JabRefPreferences.BIB_LOCATION_AS_FILE_DIR));
246215
bibLocAsPrimaryDir.setSelected(prefs.getBoolean(JabRefPreferences.BIB_LOC_AS_PRIMARY_DIR));
@@ -272,8 +241,6 @@ public void storeSettings() {
272241
}
273242

274243
// We should maybe do some checking on the validity of the contents?
275-
prefs.put("pdfDirectory", pdfDir.getText());
276-
prefs.put("psDirectory", psDir.getText());
277244
prefs.put(Globals.FILE_FIELD + "Directory", fileDir.getText());
278245
prefs.putBoolean(JabRefPreferences.BIB_LOCATION_AS_FILE_DIR, bibLocationAsFileDir.isSelected());
279246
prefs.putBoolean(JabRefPreferences.BIB_LOC_AS_PRIMARY_DIR, bibLocAsPrimaryDir.isSelected());

0 commit comments

Comments
 (0)