jdk/src/solaris/classes/sun/awt/X11/generator/WrapperGenerator.java
changeset 3938 ef327bd847c0
parent 2473 3f4bbd3be2f1
child 5506 202f599c92aa
equal deleted inserted replaced
3934:487e1aa949c4 3938:ef327bd847c0
    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()) {