[Bprocessor-commit] gui/src/net/sourceforge/bprocessor/gui/treeview GenericTreeView.java, 1.101, 1.
Status: Pre-Alpha
Brought to you by:
henryml
From: rimestad <rim...@us...> - 2007-08-28 07:01:04
|
Update of /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui/treeview In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv18534/src/net/sourceforge/bprocessor/gui/treeview Modified Files: GenericTreeView.java Log Message: made the popupmenu work with multiselcetion instead of just single entities... Some of the menuActions still lack multiple object handling Index: GenericTreeView.java =================================================================== RCS file: /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui/treeview/GenericTreeView.java,v retrieving revision 1.101 retrieving revision 1.102 diff -C2 -d -r1.101 -r1.102 *** GenericTreeView.java 24 May 2007 10:57:23 -0000 1.101 --- GenericTreeView.java 28 Aug 2007 07:00:52 -0000 1.102 *************** *** 557,566 **** */ public JPopupMenu menu() { ! JPopupMenu pm = null; ! Object object = this.getUserObject(); ! if (object instanceof Entity) { ! pm = PopupMenu.getEntityMenu((Entity)object); ! } else if (object instanceof Attribute) { ! pm = PopupMenu.getAttributeMenu((Attribute)object); } return pm; --- 557,568 ---- */ public JPopupMenu menu() { ! JPopupMenu pm = PopupMenu.makeSelectionMenu(); ! if (pm == null) { ! Object object = this.getUserObject(); ! if (object instanceof Entity) { ! pm = PopupMenu.getEntityMenu((Entity)object); ! } else if (object instanceof Attribute) { ! pm = PopupMenu.getAttributeMenu((Attribute)object); ! } } return pm; *************** *** 734,744 **** } ! /** ! * Context menu for this SpaceNode ! * @return the menu ! */ ! public JPopupMenu menu() { ! return PopupMenu.getSpaceMenu((Space)this.getUserObject()); ! } } --- 736,750 ---- } ! // /** ! // * Context menu for this SpaceNode ! // * @return the menu ! // */ ! // public JPopupMenu menu() { ! // JPopupMenu pop = PopupMenu.makeSelectionMenu(); ! // if (pop == null) { ! // pop = PopupMenu.getSpaceMenu((Space)this.getUserObject()); ! // } ! // return pop; ! // } } |