@@ -45,10 +45,8 @@ class ExternalTab extends JPanel implements PrefsTab {
45
45
46
46
private final JabRefFrame frame ;
47
47
48
- private final JTextField pdfDir ;
49
48
private final JTextField regExpTextField ;
50
49
private final JTextField fileDir ;
51
- private final JTextField psDir ;
52
50
private final JTextField emailSubject ;
53
51
private final JTextField citeCommand ;
54
52
@@ -69,8 +67,6 @@ public ExternalTab(JabRefFrame frame, PreferencesDialog prefsDiag, JabRefPrefere
69
67
this .frame = frame ;
70
68
setLayout (new BorderLayout ());
71
69
72
- psDir = new JTextField (25 );
73
- pdfDir = new JTextField (25 );
74
70
fileDir = new JTextField (25 );
75
71
bibLocationAsFileDir = new JCheckBox (Localization .lang ("Allow file links relative to each bib file's location" ));
76
72
bibLocAsPrimaryDir = new JCheckBox (Localization .lang ("Use the bib file location as primary file directory" ));
@@ -168,32 +164,7 @@ public void itemStateChanged(ItemEvent e) {
168
164
builder .append (openFoldersOfAttachedFiles );
169
165
builder .nextLine ();
170
166
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 ();
195
167
builder .appendSeparator (Localization .lang ("External programs" ));
196
-
197
168
builder .nextLine ();
198
169
199
170
JPanel butpan = new JPanel ();
@@ -239,8 +210,6 @@ public void actionPerformed(ActionEvent event) {
239
210
240
211
@ Override
241
212
public void setValues () {
242
- pdfDir .setText (prefs .get ("pdfDirectory" ));
243
- psDir .setText (prefs .get ("psDirectory" ));
244
213
fileDir .setText (prefs .get (Globals .FILE_FIELD + "Directory" ));
245
214
bibLocationAsFileDir .setSelected (prefs .getBoolean (JabRefPreferences .BIB_LOCATION_AS_FILE_DIR ));
246
215
bibLocAsPrimaryDir .setSelected (prefs .getBoolean (JabRefPreferences .BIB_LOC_AS_PRIMARY_DIR ));
@@ -272,8 +241,6 @@ public void storeSettings() {
272
241
}
273
242
274
243
// We should maybe do some checking on the validity of the contents?
275
- prefs .put ("pdfDirectory" , pdfDir .getText ());
276
- prefs .put ("psDirectory" , psDir .getText ());
277
244
prefs .put (Globals .FILE_FIELD + "Directory" , fileDir .getText ());
278
245
prefs .putBoolean (JabRefPreferences .BIB_LOCATION_AS_FILE_DIR , bibLocationAsFileDir .isSelected ());
279
246
prefs .putBoolean (JabRefPreferences .BIB_LOC_AS_PRIMARY_DIR , bibLocAsPrimaryDir .isSelected ());
0 commit comments