[Bprocessor-commit] gl/src/net/sourceforge/bprocessor/gl/tool AbstractTool.java,1.3,1.4
Status: Pre-Alpha
Brought to you by:
henryml
From: Jesper P. <je...@us...> - 2005-07-28 10:18:11
|
Update of /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/tool In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13483 Modified Files: AbstractTool.java Log Message: Facades now genrates CREATED, MODIFIED and DELETED Index: AbstractTool.java =================================================================== RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/tool/AbstractTool.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** AbstractTool.java 28 Jul 2005 06:55:56 -0000 1.3 --- AbstractTool.java 28 Jul 2005 10:17:52 -0000 1.4 *************** *** 7,13 **** package net.sourceforge.bprocessor.gl.tool; - import net.sourceforge.bprocessor.kernel.notification.Notifier; - import net.sourceforge.bprocessor.kernel.notification.Notification; - import net.sourceforge.bprocessor.model.Edge; import net.sourceforge.bprocessor.model.EdgeFacade; --- 7,10 ---- *************** *** 264,270 **** VertexFacade.getInstance().update(v); - - Notification n = new Notification(Notification.VERTEX_CREATED, v.getId()); - Notifier.getInstance().sendNotification(n); return v; --- 261,264 ---- *************** *** 287,293 **** VertexFacade.getInstance().update(v); - - Notification n = new Notification(Notification.VERTEX_MODIFIED, v.getId()); - Notifier.getInstance().sendNotification(n); } else { log.error("[updateVertex] wrong argument length was: " + coord.length); --- 281,284 ---- *************** *** 300,306 **** */ protected void removeVertex(Vertex v) { - Notification n = new Notification(Notification.VERTEX_DELETED, v.getId()); - Notifier.getInstance().sendNotification(n); - VertexFacade.getInstance().remove(v); } --- 291,294 ---- *************** *** 322,328 **** EdgeFacade.getInstance().update(e); - Notification n = new Notification(Notification.EDGE_CREATED, e.getId()); - Notifier.getInstance().sendNotification(n); - return e; } --- 310,313 ---- *************** *** 334,340 **** protected void updateEdge(Edge e) { EdgeFacade.getInstance().update(e); - - Notification n = new Notification(Notification.EDGE_MODIFIED, e.getId()); - Notifier.getInstance().sendNotification(n); } --- 319,322 ---- *************** *** 353,358 **** SurfaceFacade.getInstance().update(s); - Notification n = new Notification(Notification.SURFACE_CREATED, s.getId()); - Notifier.getInstance().sendNotification(n); return s; } --- 335,338 ---- |