[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gzz-commits] fenfire/org/fenfire/modules/pp PPActionsImpl.java
From: |
Tuomas J. Lukka |
Subject: |
[Gzz-commits] fenfire/org/fenfire/modules/pp PPActionsImpl.java |
Date: |
Wed, 16 Apr 2003 00:04:18 -0400 |
CVSROOT: /cvsroot/fenfire
Module name: fenfire
Changes by: Tuomas J. Lukka <address@hidden> 03/04/16 00:04:18
Modified files:
org/fenfire/modules/pp: PPActionsImpl.java
Log message:
Bizarre - now for some reason the add works...
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/fenfire/fenfire/org/fenfire/modules/pp/PPActionsImpl.java.diff?tr1=1.19&tr2=1.20&r1=text&r2=text
Patches:
Index: fenfire/org/fenfire/modules/pp/PPActionsImpl.java
diff -u fenfire/org/fenfire/modules/pp/PPActionsImpl.java:1.19
fenfire/org/fenfire/modules/pp/PPActionsImpl.java:1.20
--- fenfire/org/fenfire/modules/pp/PPActionsImpl.java:1.19 Tue Apr 15
23:53:53 2003
+++ fenfire/org/fenfire/modules/pp/PPActionsImpl.java Wed Apr 16 00:04:18 2003
@@ -8,11 +8,12 @@
import java.io.IOException;
import java.rmi.*;
import java.rmi.server.*;
+import java.util.Iterator;
/** The implementation of PPActions.
*/
public class PPActionsImpl extends UnicastRemoteObject implements PPActions {
-public static final String rcsid = "$Id: PPActionsImpl.java,v 1.19 2003/04/16
03:53:53 tjl Exp $";
+public static final String rcsid = "$Id: PPActionsImpl.java,v 1.20 2003/04/16
04:04:18 tjl Exp $";
public static final boolean dbg = true;
protected static void p(String s) { if(dbg) pa(s); }
protected static void pa(String s) { System.out.println("PPActionsImpl:
"+s); }
@@ -86,8 +87,24 @@
// note doesn't exist so we need to make one
Object note = RDFUtil.N(fen, PP.Note);
+ if(dbg) {
+ pa("Before:");
+ Iterator iter = fen.constgraph.findN_11X_Iter(paper, PP.contains);
+ while (iter.hasNext()) {
+ pa(" "+iter.next());
+ }
+ }
+
// and join note to paper
fen.graph.add(paper, PP.contains, note);
+
+ if(dbg) {
+ pa("After:");
+ Iterator iter = fen.constgraph.findN_11X_Iter(paper, PP.contains);
+ while (iter.hasNext()) {
+ pa(" "+iter.next());
+ }
+ }
// set coords
fen.graph.set1_11X(note, SPATIAL.coordX, Nodes.getStringLiteral(""+x) );