equal
deleted
inserted
replaced
25 |
25 |
26 import java.util.*; |
26 import java.util.*; |
27 import java.io.*; |
27 import java.io.*; |
28 import java.nio.charset.*; |
28 import java.nio.charset.*; |
29 import java.text.MessageFormat; |
29 import java.text.MessageFormat; |
30 import java.util.logging.*; |
30 import java.util.logging.Level; |
|
31 import java.util.logging.Logger; |
31 |
32 |
32 public class WrapperGenerator { |
33 public class WrapperGenerator { |
33 /* XLibParser converts Xlib.h to a Java Object that encapsulates the |
34 /* XLibParser converts Xlib.h to a Java Object that encapsulates the |
34 * X11 API and data structures */ |
35 * X11 API and data structures */ |
35 // Charset and decoder for ISO-8859-15 |
36 // Charset and decoder for ISO-8859-15 |
833 PrintWriter pw = new PrintWriter(fs); |
834 PrintWriter pw = new PrintWriter(fs); |
834 pw.println("// This file is an automatically generated file, please do not edit this file, modify the WrapperGenerator.java file instead !\n" ); |
835 pw.println("// This file is an automatically generated file, please do not edit this file, modify the WrapperGenerator.java file instead !\n" ); |
835 |
836 |
836 pw.println("package "+package_name+";\n"); |
837 pw.println("package "+package_name+";\n"); |
837 pw.println("import sun.misc.*;\n"); |
838 pw.println("import sun.misc.*;\n"); |
838 pw.println("import java.util.logging.*;"); |
839 pw.println("import sun.util.logging.PlatformLogger;"); |
839 String baseClass = stp.getBaseClass(); |
840 String baseClass = stp.getBaseClass(); |
840 if (baseClass == null) { |
841 if (baseClass == null) { |
841 baseClass = defaultBaseClass; |
842 baseClass = defaultBaseClass; |
842 } |
843 } |
843 if (stp.getIsInterface()) { |
844 if (stp.getIsInterface()) { |