[Bprocessor-commit] gui/src/net/sourceforge/bprocessor/gui/treeview GenericTreeView.java, 1.147, 1.
Status: Pre-Alpha
Brought to you by:
henryml
From: Michael L. <he...@us...> - 2010-05-07 13:36:11
|
Update of /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui/treeview In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv4759/src/net/sourceforge/bprocessor/gui/treeview Modified Files: GenericTreeView.java Log Message: Index: GenericTreeView.java =================================================================== RCS file: /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui/treeview/GenericTreeView.java,v retrieving revision 1.147 retrieving revision 1.148 diff -C2 -d -r1.147 -r1.148 *** GenericTreeView.java 9 Mar 2010 13:01:56 -0000 1.147 --- GenericTreeView.java 7 May 2010 13:35:55 -0000 1.148 *************** *** 62,65 **** --- 62,67 ---- import net.sourceforge.bprocessor.model.bridge.Sensor; import net.sourceforge.bprocessor.model.modellor.Modellor; + import net.sourceforge.bprocessor.model.sense.SensorItem; + import net.sourceforge.bprocessor.model.sense.SensorStorage; import net.sourceforge.bprocessor.gui.GUI; import net.sourceforge.bprocessor.gui.attrview.AttributeView; *************** *** 680,683 **** --- 682,689 ---- add(new ConstructorNode(cs)); } + if (space.getStorage() != null) { + SensorStorage storage = (SensorStorage) space.getStorage(); + add(new SensorStorageContainer("Data", storage.getItems())); + } } *************** *** 689,700 **** if (o instanceof Instance) { Instance instance = (Instance) o; ! if (this.getChildCount() == 2) { ! ((GenericNode)getChildAt(0)).update(instance.getEnvelope()); ! ((GenericNode)getChildAt(1)).update(instance.getTransformation()); ! } else { ! removeAllChildren(); ! makeInstanceContent(instance); ! model.nodeStructureChanged(this); ! } userObject = instance; model.nodeChanged(this); --- 695,701 ---- if (o instanceof Instance) { Instance instance = (Instance) o; ! removeAllChildren(); ! makeInstanceContent(instance); ! model.nodeStructureChanged(this); userObject = instance; model.nodeChanged(this); *************** *** 1300,1303 **** --- 1301,1319 ---- } + + /** + * + */ + public class SensorStorageContainer extends CompositeNode { + /** + * + * @param name String + * @param content data items + */ + public SensorStorageContainer(String name, Collection<SensorItem> content) { + super(name, content, false); + } + } + /** * |