[Bprocessor-commit] gui/src/net/sourceforge/bprocessor/gui/treeview GenericTreeView.java, 1.53, 1.5
Status: Pre-Alpha
Brought to you by:
henryml
From: Michael L. <he...@us...> - 2006-10-05 11:27:05
|
Update of /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui/treeview In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv17151/src/net/sourceforge/bprocessor/gui/treeview Modified Files: GenericTreeView.java Removed Files: SurfaceTreeView.java Log Message: Removed methods from Project to add, remove and delete geometry --- SurfaceTreeView.java DELETED --- Index: GenericTreeView.java =================================================================== RCS file: /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui/treeview/GenericTreeView.java,v retrieving revision 1.53 retrieving revision 1.54 diff -C2 -d -r1.53 -r1.54 *** GenericTreeView.java 3 Oct 2006 10:04:08 -0000 1.53 --- GenericTreeView.java 5 Oct 2006 11:26:56 -0000 1.54 *************** *** 9,14 **** import java.awt.Component; import java.awt.event.ActionListener; - import java.awt.event.KeyEvent; - import java.awt.event.KeyListener; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; --- 9,12 ---- *************** *** 1287,1331 **** /** - * GenericKeyListener - */ - private class GenericKeyListener implements KeyListener { - /** - * Invoked when a key is pressed - * @param e Key info - */ - public void keyPressed(KeyEvent e) { - if (e.getKeyCode() == KeyEvent.VK_DELETE || e.getKeyCode() == KeyEvent.VK_BACK_SPACE) { - TreePath tp = selectionModel.getSelectionPath(); - Object o = tp.getLastPathComponent(); - if (o instanceof GenericNode) { - GenericNode node = (GenericNode) o; - o = node.getUserObject(); - if (o instanceof Entity) { - HashSet set = new HashSet(); - set.add(o); - //Selection.primary().clear(); - Project.getInstance().delete(set); - Project.getInstance().checkpoint(); - } - } - } - } - - /** - * Invoked when a key is released - * @param e Key info - */ - public void keyReleased(KeyEvent e) { - } - - /** - * Invoked when a key is typed - * @param e Key info - */ - public void keyTyped(KeyEvent e) { - } - } - - /** * Update * @param object The changed object --- 1285,1288 ---- |