Update of /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4745/src/net/sourceforge/bprocessor/gl
Modified Files:
GLView.java
Log Message:
All access to database now through the Project instance
Index: GLView.java
===================================================================
RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/GLView.java,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -d -r1.16 -r1.17
*** GLView.java 30 Sep 2005 17:52:06 -0000 1.16
--- GLView.java 2 Oct 2005 14:48:23 -0000 1.17
***************
*** 11,16 ****
import net.sourceforge.bprocessor.gl.view.View;
import net.sourceforge.bprocessor.gl.view.ViewFactory;
- import net.sourceforge.bprocessor.model.EdgeFacade;
import net.sourceforge.bprocessor.model.Edge;
import net.sourceforge.bprocessor.kernel.notification.NotificationListener;
import net.sourceforge.bprocessor.kernel.notification.Notification;
--- 11,16 ----
import net.sourceforge.bprocessor.gl.view.View;
import net.sourceforge.bprocessor.gl.view.ViewFactory;
import net.sourceforge.bprocessor.model.Edge;
+ import net.sourceforge.bprocessor.model.Project;
import net.sourceforge.bprocessor.kernel.notification.NotificationListener;
import net.sourceforge.bprocessor.kernel.notification.Notification;
***************
*** 227,231 ****
public void handleNotification(Notification n) {
if (n.getType().equals(Notification.EDGE_SELECTED)) {
! Edge e = (Edge)(EdgeFacade.getInstance().findById(n.getObject()));
setText(e.getLength());
} else if (n.getType().equals(Notification.EDGE_DESELECTED)) {
--- 227,231 ----
public void handleNotification(Notification n) {
if (n.getType().equals(Notification.EDGE_SELECTED)) {
! Edge e = (Project.getInstance().findEdgeById(n.getObject()));
setText(e.getLength());
} else if (n.getType().equals(Notification.EDGE_DESELECTED)) {
|