[Bprocessor-commit] gui/src/net/sourceforge/bprocessor/gui/treeview SpacesTreeView.java,1.3,1.4
Status: Pre-Alpha
Brought to you by:
henryml
From: Jesper P. <je...@us...> - 2005-08-10 09:49:01
|
Update of /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui/treeview In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26600 Modified Files: SpacesTreeView.java Log Message: Implemented the full tree view and the MODIFIED notification Index: SpacesTreeView.java =================================================================== RCS file: /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui/treeview/SpacesTreeView.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** SpacesTreeView.java 28 Jul 2005 10:19:06 -0000 1.3 --- SpacesTreeView.java 10 Aug 2005 09:48:54 -0000 1.4 *************** *** 12,17 **** --- 12,21 ---- import net.sourceforge.bprocessor.model.ConstructionSpace; import net.sourceforge.bprocessor.model.ConstructionSpaceFacade; + import net.sourceforge.bprocessor.model.Element; import net.sourceforge.bprocessor.model.FunctionalSpace; import net.sourceforge.bprocessor.model.FunctionalSpaceFacade; + import net.sourceforge.bprocessor.model.Part; + import net.sourceforge.bprocessor.model.Space; + import net.sourceforge.bprocessor.model.Surface; [...1079 lines suppressed...] ! public int getIndex(TreeNode node) { ! return nodes.indexOf(node); } *************** *** 745,748 **** --- 1535,1547 ---- Notifier.getInstance().sendNotification(n); } + } else if (gn.getType() == GenericNode.TYPE_ELEMENT) { + Notification n = new Notification(Notification.ELEMENT_SELECTED, gn.getId()); + Notifier.getInstance().sendNotification(n); + } else if (gn.getType() == GenericNode.TYPE_PART) { + Notification n = new Notification(Notification.PART_SELECTED, gn.getId()); + Notifier.getInstance().sendNotification(n); + } else if (gn.getType() == GenericNode.TYPE_SURFACE) { + Notification n = new Notification(Notification.SURFACE_SELECTED, gn.getId()); + Notifier.getInstance().sendNotification(n); } } |