[Bprocessor-commit] /gui/src/net/sourceforge/bprocessor/gui/treeview GenericTreeView.java, 1.99, 1.
Status: Pre-Alpha
Brought to you by:
henryml
|
From: rimestad <rim...@us...> - 2007-05-09 09:31:06
|
Update of /cvsroot/bprocessor//gui/src/net/sourceforge/bprocessor/gui/treeview In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv32589/src/net/sourceforge/bprocessor/gui/treeview Modified Files: GenericTreeView.java Log Message: fixed wrong update when making a exisiting space into a union Index: GenericTreeView.java =================================================================== RCS file: /cvsroot/bprocessor//gui/src/net/sourceforge/bprocessor/gui/treeview/GenericTreeView.java,v retrieving revision 1.99 retrieving revision 1.100 diff -C2 -d -r1.99 -r1.100 *** GenericTreeView.java 8 May 2007 12:34:06 -0000 1.99 --- GenericTreeView.java 9 May 2007 09:31:05 -0000 1.100 *************** *** 646,650 **** } } else if (s.isContainer()) { ! if (((Space)userObject).isContainer()) { //the old object were a container as well ((GenericNode)getChildAt(0)).update(s.getEnvelope()); --- 646,651 ---- } } else if (s.isContainer()) { ! Space space = (Space)userObject; ! if (space.isContainer()) { //the old object were a container as well ((GenericNode)getChildAt(0)).update(s.getEnvelope()); *************** *** 654,662 **** int placement = 4; if (s.isUnion()) { placement++; - ((GenericNode)getChildAt(4)).update(s.getTransformations().stack()); } if (s.getModellor() != null) { ! if (getChildCount() == placement + 1) { ((GenericNode)getChildAt(placement)).update(s.getModellor()); } else { --- 655,670 ---- int placement = 4; if (s.isUnion()) { + if (getChildCount() >= placement + 1) { + ((GenericNode)getChildAt(placement)).update(s.getTransformations().stack()); + } else { + ContainerNode tc = new TransformationContainer("Transformations", + space.getTransformations().stack()); + this.add(tc); + model.nodesWereInserted(this, new int[]{placement}); + } placement++; } if (s.getModellor() != null) { ! if (getChildCount() >= placement + 1) { ((GenericNode)getChildAt(placement)).update(s.getModellor()); } else { |