From 84fa1d2a331a9b1ddff0a3f82a19d7869445daba Mon Sep 17 00:00:00 2001 From: jochen Date: Thu, 11 Mar 1999 22:55:48 +0000 Subject: [PATCH] new imports for jdk 12 git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@381 379699f6-c40d-0410-875b-85095c16579e --- jode/jode/swingui/Main.java | 6 ++++++ jode/jode/swingui/PackagesTreeModel.java | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/jode/jode/swingui/Main.java b/jode/jode/swingui/Main.java index 645b3a9..1a8e3f3 100644 --- a/jode/jode/swingui/Main.java +++ b/jode/jode/swingui/Main.java @@ -2,9 +2,15 @@ package jode.swingui; import jode.Decompiler; import jode.JodeEnvironment; 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.event.*; import com.sun.java.swing.tree.*; +///#endif import java.awt.*; import java.awt.event.*; import java.io.*; diff --git a/jode/jode/swingui/PackagesTreeModel.java b/jode/jode/swingui/PackagesTreeModel.java index fe1b5be..963b923 100644 --- a/jode/jode/swingui/PackagesTreeModel.java +++ b/jode/jode/swingui/PackagesTreeModel.java @@ -1,8 +1,14 @@ package jode.swingui; 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.TreePath; import com.sun.java.swing.event.TreeModelListener; +///#endif import java.util.*; public class PackagesTreeModel implements TreeModel {