Update of /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui/treeview
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv23273/src/net/sourceforge/bprocessor/gui/treeview
Modified Files:
GenericTreeView.java
Log Message:
Fixed class-cast exception
Index: GenericTreeView.java
===================================================================
RCS file: /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui/treeview/GenericTreeView.java,v
retrieving revision 1.89
retrieving revision 1.90
diff -C2 -d -r1.89 -r1.90
*** GenericTreeView.java 19 Mar 2007 12:48:25 -0000 1.89
--- GenericTreeView.java 23 Mar 2007 12:53:45 -0000 1.90
***************
*** 502,506 ****
* @param sort boolean that is true if the entities should be sorted
*/
! public void insertChildren(Collection<Entity> entities, boolean sort) {
LinkedList sorted = new LinkedList(entities);
if (sort) {
--- 502,506 ----
* @param sort boolean that is true if the entities should be sorted
*/
! public void insertChildren(Collection entities, boolean sort) {
LinkedList sorted = new LinkedList(entities);
if (sort) {
***************
*** 975,981 ****
/** {@inheritDoc} */
public EntityNode nodeFor(Object entity) {
-
return new ClassificationNode((Classification) entity);
-
}
/**
--- 975,979 ----
|