new imports for jdk 12

git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@381 379699f6-c40d-0410-875b-85095c16579e
stable
jochen 26 years ago
parent a6247e5b3e
commit 84fa1d2a33
  1. 6
      jode/jode/swingui/Main.java
  2. 6
      jode/jode/swingui/PackagesTreeModel.java

@ -2,9 +2,15 @@ package jode.swingui;
import jode.Decompiler; import jode.Decompiler;
import jode.JodeEnvironment; import jode.JodeEnvironment;
import jode.decompiler.TabbedPrintWriter; import jode.decompiler.TabbedPrintWriter;
///#ifdef JDK12
///import javax.swing.*;
///import javax.swing.event.*;
///import javax.swing.tree.*;
///#else
import com.sun.java.swing.*; import com.sun.java.swing.*;
import com.sun.java.swing.event.*; import com.sun.java.swing.event.*;
import com.sun.java.swing.tree.*; import com.sun.java.swing.tree.*;
///#endif
import java.awt.*; import java.awt.*;
import java.awt.event.*; import java.awt.event.*;
import java.io.*; import java.io.*;

@ -1,8 +1,14 @@
package jode.swingui; package jode.swingui;
import jode.bytecode.ClassInfo; import jode.bytecode.ClassInfo;
///#ifdef JDK12
///import javax.swing.tree.TreeModel;
///import javax.swing.tree.TreePath;
///import javax.swing.event.TreeModelListener;
///#else
import com.sun.java.swing.tree.TreeModel; import com.sun.java.swing.tree.TreeModel;
import com.sun.java.swing.tree.TreePath; import com.sun.java.swing.tree.TreePath;
import com.sun.java.swing.event.TreeModelListener; import com.sun.java.swing.event.TreeModelListener;
///#endif
import java.util.*; import java.util.*;
public class PackagesTreeModel implements TreeModel { public class PackagesTreeModel implements TreeModel {

Loading…
Cancel
Save