[Bprocessor-commit] gui/src/net/sourceforge/bprocessor/gui/treeview GenericTreeView.java, 1.37, 1.3
Status: Pre-Alpha
Brought to you by:
henryml
From: Michael L. <he...@us...> - 2006-08-28 05:54:07
|
Update of /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui/treeview In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv31897/src/net/sourceforge/bprocessor/gui/treeview Modified Files: GenericTreeView.java Log Message: Changed selection to only contain "geometric" objects Index: GenericTreeView.java =================================================================== RCS file: /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui/treeview/GenericTreeView.java,v retrieving revision 1.37 retrieving revision 1.38 diff -C2 -d -r1.37 -r1.38 *** GenericTreeView.java 23 Aug 2006 13:43:11 -0000 1.37 --- GenericTreeView.java 28 Aug 2006 05:54:04 -0000 1.38 *************** *** 45,48 **** --- 45,49 ---- import net.sourceforge.bprocessor.model.Edge; import net.sourceforge.bprocessor.model.Entity; + import net.sourceforge.bprocessor.model.Geometric; import net.sourceforge.bprocessor.model.Observer; import net.sourceforge.bprocessor.model.ParameterBlock; *************** *** 55,58 **** --- 56,60 ---- import net.sourceforge.bprocessor.model.modellor.Modellor; import net.sourceforge.bprocessor.gui.GUI; + import net.sourceforge.bprocessor.gui.attrview.AttributeView; /** *************** *** 251,255 **** */ public void select(Object target) { ! Selection.primary().set(target); } --- 253,261 ---- */ public void select(Object target) { ! if (target instanceof Geometric) { ! Selection.primary().set(target); ! } else { ! AttributeView.instance().display(target); ! } } *************** *** 524,529 **** if (created != null) { current.setModellor(created); ! Selection.primary().clear(); ! Selection.primary().add(created); current.changed(); } else { --- 530,534 ---- if (created != null) { current.setModellor(created); ! AttributeView.instance().display(created); current.changed(); } else { |