Subversion Repositories general

Compare Revisions

Ignore whitespace Rev 843 → Rev 844

/sun/xmleditor/trunk/src/gui/PopUpJTree.java
4,10 → 4,10
* Coded by: Group 5, software practice summer 2003
* University of Bielefeld, Germany
*
* @version $Revision: 1.22 $
* @version $Revision: 1.23 $
*
* Last modification: $Date: 2003/07/24 15:16:58 $
* $Id: PopUpJTree.java,v 1.22 2003/07/24 15:16:58 mdonner Exp $
* Last modification: $Date: 2003/07/25 11:42:06 $
* $Id: PopUpJTree.java,v 1.23 2003/07/25 11:42:06 smcsporr Exp $
*/
 
package src.gui;
34,7 → 34,7
*
* @author Group 5
*
* @version $Revision: 1.22 $ Last modification: $Date: 2003/07/24 15:16:58 $
* @version $Revision: 1.23 $ Last modification: $Date: 2003/07/25 11:42:06 $
*/
class PopUpJTree extends JTree implements ActionListener {
69,15 → 69,16
* author Matthias Donner
*/
public PopUpJTree (src.parser.AdapterDomToTreeModel model) {
super(model);
m=model;
// define the popup
popup = new JPopupMenu();
mi = new JMenuItem("Insert child");
mi.addActionListener(this);
mi.setActionCommand("insert");
popup.add(mi);
popup.addSeparator();
super(model);
m=model;
// define the popup
popup = new JPopupMenu();
mi = new JMenuItem("Insert child");
mi.addActionListener(this);
mi.setActionCommand("insert");
popup.add(mi);
popup.addSeparator();
mi = new JMenuItem("Cut");
mi.addActionListener(this);
mi.setActionCommand("cut");
125,7 → 126,6
}
 
 
/**
* <code>actionPerfomed</code> receives <code>ActionEvent</code>s fired by
* the associated <code>PopupJTree</code>.
195,7 → 195,6
 
}
 
 
/**
* Set a given <code>TreeSelectionListener</code> as the <code>TreeSelectionListener</code>
* of this <code>PopUpJTree</code>.