Skip to content

Commit 65eaa06

Browse files
simonharrerstefan-kolb
authored andcommitted
Removes option to disable renaming in FileChooser dialogs.
1 parent 30cdee1 commit 65eaa06

File tree

4 files changed

+1
-12
lines changed

4 files changed

+1
-12
lines changed

CHANGELOG

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[master]
22
- Removes options to set PDF and PS directories per .bib database as the general options have also been deleted.
3+
- Removes option to disable renaming in FileChooser dialogs.
34
- Removes option to hide the BibTeX Code tab in the entry editor.
45
- Changes the old integrity check by improving the code base (+tests) and converting it to a simple issues table
56
- Removes option to set a custom icon for the external file types. This is not possible anymore with the new icon font.

src/main/java/net/sf/jabref/JabRefPreferences.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,6 @@ public class JabRefPreferences {
282282
public static final String IMPORT_INSPECTION_DIALOG_WIDTH = "importInspectionDialogWidth";
283283
public static final String SIDE_PANE_WIDTH = "sidePaneWidth";
284284
public static final String LAST_USED_EXPORT = "lastUsedExport";
285-
public static final String FILECHOOSER_DISABLE_RENAME = "filechooserDisableRename";
286285
public static final String USE_NATIVE_FILE_DIALOG_ON_MAC = "useNativeFileDialogOnMac";
287286
public static final String FLOAT_MARKED_ENTRIES = "floatMarkedEntries";
288287
public static final String CITE_COMMAND = "citeCommand";
@@ -738,7 +737,6 @@ private JabRefPreferences() {
738737
defaults.put(FLOAT_MARKED_ENTRIES, Boolean.TRUE);
739738

740739
defaults.put(USE_NATIVE_FILE_DIALOG_ON_MAC, Boolean.FALSE);
741-
defaults.put(FILECHOOSER_DISABLE_RENAME, Boolean.TRUE);
742740

743741
defaults.put(LAST_USED_EXPORT, null);
744742
defaults.put(SIDE_PANE_WIDTH, -1);

src/main/java/net/sf/jabref/gui/JabRefFrame.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -544,8 +544,6 @@ public JabRefFrame(JabRef jabRef) {
544544
private void init() {
545545
tabbedPane = new DragDropPopupPane(manageSelectors, databaseProperties, bibtexKeyPattern);
546546

547-
UIManager.put("FileChooser.readOnly", Globals.prefs.getBoolean(JabRefPreferences.FILECHOOSER_DISABLE_RENAME));
548-
549547
MyGlassPane glassPane = new MyGlassPane();
550548
setGlassPane(glassPane);
551549
// glassPane.setVisible(true);

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

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ class AdvancedTab extends JPanel implements PrefsTab {
5050
private final JCheckBox useDefault;
5151
private final JCheckBox useRemoteServer;
5252
private final JCheckBox useNativeFileDialogOnMac;
53-
private final JCheckBox filechooserDisableRename;
5453
private final JCheckBox useIEEEAbrv;
5554
private final JCheckBox biblatexMode;
5655
private final JComboBox<String> className;
@@ -75,7 +74,6 @@ public AdvancedTab(JabRefPreferences prefs, HelpDialog diag, JabRef jabRef) {
7574
useDefault = new JCheckBox(Localization.lang("Use other look and feel"));
7675
useRemoteServer = new JCheckBox(Localization.lang("Listen for remote operation on port") + ':');
7776
useNativeFileDialogOnMac = new JCheckBox(Localization.lang("Use native file dialog"));
78-
filechooserDisableRename = new JCheckBox(Localization.lang("Disable file renaming in non-native file dialog"));
7977
useIEEEAbrv = new JCheckBox(Localization.lang("Use IEEE LaTeX abbreviations"));
8078
biblatexMode = new JCheckBox(Localization.lang("BibLaTeX mode"));
8179
remoteServerPort = new JTextField();
@@ -164,9 +162,6 @@ public void stateChanged(ChangeEvent e) {
164162
builder.nextLine();
165163
builder.append(new JPanel());
166164
builder.append(useNativeFileDialogOnMac);
167-
builder.nextLine();
168-
builder.append(new JPanel());
169-
builder.append(filechooserDisableRename);
170165
//}
171166
// IEEE
172167
builder.nextLine();
@@ -210,7 +205,6 @@ public void setValues() {
210205
oldPort = remotePreferences.getPort();
211206
remoteServerPort.setText(String.valueOf(oldPort));
212207
useNativeFileDialogOnMac.setSelected(Globals.prefs.getBoolean(JabRefPreferences.USE_NATIVE_FILE_DIALOG_ON_MAC));
213-
filechooserDisableRename.setSelected(Globals.prefs.getBoolean(JabRefPreferences.FILECHOOSER_DISABLE_RENAME));
214208
useIEEEAbrv.setSelected(Globals.prefs.getBoolean(JabRefPreferences.USE_IEEE_ABRV));
215209
oldBiblMode = Globals.prefs.getBoolean(JabRefPreferences.BIBLATEX_MODE);
216210
biblatexMode.setSelected(oldBiblMode);
@@ -224,8 +218,6 @@ public void storeSettings() {
224218
preferences.putBoolean(JabRefPreferences.USE_DEFAULT_LOOK_AND_FEEL, !useDefault.isSelected());
225219
preferences.put(JabRefPreferences.WIN_LOOK_AND_FEEL, className.getSelectedItem().toString());
226220
preferences.putBoolean(JabRefPreferences.USE_NATIVE_FILE_DIALOG_ON_MAC, useNativeFileDialogOnMac.isSelected());
227-
preferences.putBoolean(JabRefPreferences.FILECHOOSER_DISABLE_RENAME, filechooserDisableRename.isSelected());
228-
UIManager.put("FileChooser.readOnly", filechooserDisableRename.isSelected());
229221

230222
if(preferences.getBoolean(JabRefPreferences.USE_IEEE_ABRV) != useIEEEAbrv.isSelected()) {
231223
preferences.putBoolean(JabRefPreferences.USE_IEEE_ABRV, useIEEEAbrv.isSelected());

0 commit comments

Comments
 (0)