Add patch to fix JComboBox errors.
[debian/jabref.git] / debian / patches / jcombobox-parameter.patch
1 Description: workaround error:
2     [javac] /tmp/buildd/jabref-2.10~beta1+ds/src/java/net/sf/jabref/FileTab.java:40: type javax.swing.JComboBox does not take parameters
3     [javac]     private JComboBox<String> valueDelimiter;
4     [javac]                      ^
5
6     [javac] /tmp/buildd/jabref-2.10~beta1+ds/src/java/net/sf/jabref/FileTab.java:70: type javax.swing.JComboBox does not take parameters
7     [javac]         valueDelimiter = new JComboBox<String>(new String[]{
8     [javac]                                       ^
9
10
11 --- a/src/java/net/sf/jabref/FileTab.java
12 +++ b/src/java/net/sf/jabref/FileTab.java
13 @@ -37,7 +37,7 @@
14  
15      private JCheckBox backup, openLast, autoDoubleBraces, autoSave,
16              promptBeforeUsingAutoSave, includeEmptyFields, camelCase, sameColumn;
17 -    private JComboBox<String> valueDelimiter;
18 +    private JComboBox valueDelimiter;
19      private JRadioButton
20          saveOriginalOrder, saveAuthorOrder, saveTableOrder, saveTitleOrder,
21          exportOriginalOrder, exportAuthorOrder, exportTableOrder, exportTitleOrder,
22 @@ -67,7 +67,7 @@
23          autoSave = new JCheckBox(Globals.lang("Autosave"));
24          promptBeforeUsingAutoSave = new JCheckBox(Globals.lang("Prompt before recovering a database from an autosave file"));
25          autoSaveInterval = new JSpinner(new SpinnerNumberModel(1, 1, 60, 1));
26 -        valueDelimiter = new JComboBox<String>(new String[]{
27 +        valueDelimiter = new JComboBox(new String[]{
28                  Globals.lang("Quotes") + ": \", \"",
29                  Globals.lang("Curly Brackets") + ": {, }" });
30          includeEmptyFields = new JCheckBox(Globals.lang("Include empty fields"));