import javax.swing, except with preproc option OLDSWING

use jdk1.1 vector manipulation methods


git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@650 379699f6-c40d-0410-875b-85095c16579e
stable
jochen 26 years ago
parent 700fda73f0
commit d05f6127a5
  1. 22
      jode/jode/swingui/PackagesTreeModel.java

@ -19,16 +19,16 @@
package jode.swingui;
import jode.bytecode.ClassInfo;
///#ifdef JDK12
///import javax.swing.tree.TreeModel;
///import javax.swing.tree.TreePath;
///import javax.swing.event.TreeModelListener;
///import javax.swing.event.TreeModelEvent;
///#ifndef OLDSWING
import javax.swing.tree.TreeModel;
import javax.swing.tree.TreePath;
import javax.swing.event.TreeModelListener;
import javax.swing.event.TreeModelEvent;
///#else
import com.sun.java.swing.tree.TreeModel;
import com.sun.java.swing.tree.TreePath;
import com.sun.java.swing.event.TreeModelListener;
import com.sun.java.swing.event.TreeModelEvent;
///import com.sun.java.swing.tree.TreeModel;
///import com.sun.java.swing.tree.TreePath;
///import com.sun.java.swing.event.TreeModelListener;
///import com.sun.java.swing.event.TreeModelEvent;
///#endif
import java.util.*;
@ -128,10 +128,10 @@ public class PackagesTreeModel implements TreeModel {
}
public void addTreeModelListener(TreeModelListener l) {
listeners.add(l);
listeners.addElement(l);
}
public void removeTreeModelListener(TreeModelListener l) {
listeners.remove(l);
listeners.removeElement(l);
}
public void valueForPathChanged(TreePath path, Object newValue) {
// we don't allow values

Loading…
Cancel
Save