* Switch patch system from dpatch to quilt.
[debian/jabref.git] / debian / patches / 01_free_javac.patch
1 Author: <gregor+debian@comodo.priv.at>
2 Description: Changes to be able to compile JabRef with free java compilers.
3 --- a/src/java/net/sf/jabref/JabRef.java
4 +++ b/src/java/net/sf/jabref/JabRef.java
5 @@ -46,7 +46,6 @@
6  
7  import com.jgoodies.looks.plastic.Plastic3DLookAndFeel;
8  import com.jgoodies.looks.plastic.PlasticLookAndFeel;
9 -import com.jgoodies.looks.windows.WindowsLookAndFeel;
10  import com.jgoodies.looks.FontSet;
11  import com.jgoodies.looks.FontSets;
12  import com.jgoodies.looks.FontPolicy;
13 @@ -598,27 +597,6 @@
14  
15                      //Plastic3DLookAndFeel plLnf = (Plastic3DLookAndFeel) lnf;
16                  }
17 -                else if ((lnf != null) && (lnf instanceof WindowsLookAndFeel)) {
18 -
19 -                    // Set a "model" icon size, so menu items are evenly spaced even though
20 -                    // only some items have icons. We load an arbitrary icon and look at
21 -                    // its size to determine what size to use:
22 -                    int defaultIconSize = GUIGlobals.getImage("open").getIconWidth();
23 -                    com.jgoodies.looks.Options.setDefaultIconSize
24 -                        (new Dimension(defaultIconSize, defaultIconSize));
25 -
26 -                    if (overrideDefaultFonts) {
27 -                        FontSet fontSet = FontSets.createDefaultFontSet(
28 -                            new Font("Tahoma", Font.PLAIN, fontSizes),    // control font
29 -                            new Font("Tahoma", Font.PLAIN, fontSizes),    // menu font
30 -                            new Font("Tahoma", Font.BOLD, fontSizes)     // title font
31 -                            );
32 -                        FontPolicy fixedPolicy = FontPolicies.createFixedPolicy(fontSet);
33 -                        WindowsLookAndFeel.setFontPolicy(fixedPolicy);
34 -                    }
35 -
36 -                    //WindowsLookAndFeel plLnf = (WindowsLookAndFeel) lnf;
37 -                }
38  
39                  if (lnf != null) {
40                      try {
41 --- a/src/java/net/sf/jabref/export/VerifyingWriter.java
42 +++ b/src/java/net/sf/jabref/export/VerifyingWriter.java
43 @@ -1,7 +1,5 @@
44  package net.sf.jabref.export;
45  
46 -import sun.misc.CharacterEncoder;
47 -
48  import java.io.*;
49  import java.nio.charset.Charset;
50  import java.nio.charset.CharsetEncoder;