You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by le...@apache.org on 2002/01/15 02:30:56 UTC
cvs commit: xml-xerces/java/tests/dom/events EventReporter.java
lehors 02/01/14 17:30:56
Modified: java/tests/dom/events EventReporter.java
Log:
cleaned up output
Revision Changes Path
1.3 +14 -11 xml-xerces/java/tests/dom/events/EventReporter.java
Index: EventReporter.java
===================================================================
RCS file: /home/cvs/xml-xerces/java/tests/dom/events/EventReporter.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- EventReporter.java 23 Aug 2001 00:35:39 -0000 1.2
+++ EventReporter.java 15 Jan 2002 01:30:55 -0000 1.3
@@ -1,4 +1,4 @@
-/* $Id: EventReporter.java,v 1.2 2001/08/23 00:35:39 lehors Exp $ */
+/* $Id: EventReporter.java,v 1.3 2002/01/15 01:30:55 lehors Exp $ */
/*
* The Apache Software License, Version 1.1
*
@@ -65,15 +65,20 @@
boolean silent=false; // Toggle this to mask reports you don't care about
int count=0;
String[] phasename={"?","BUBBLING","CAPTURING","AT_TARGET","?"};
-
+
+
public void on()
{
- System.out.println("\nEventReporter awakened:\n");
+ System.out.println();
+ System.out.println("EventReporter awakened:");
+ System.out.println();
silent=false;
}
public void off()
{
- System.out.println("\nEventReporter muted\n");
+ System.out.println();
+ System.out.println("EventReporter muted");
+ System.out.println();
silent=true;
}
@@ -91,20 +96,18 @@
"... ");
if(evt.getBubbles()) System.out.print("will bubble");
if(evt.getCancelable()) System.out.print("can cancel");
- System.out.print("\n");
+ System.out.println();
if(evt instanceof MutationEvent)
{
MutationEvent me=(MutationEvent)evt;
- System.out.print("\t");
if(me.getRelatedNode()!=null)
- System.out.print(" relatedNode='"+me.getRelatedNode()+"'");
+ System.out.println("\trelatedNode='"+me.getRelatedNode()+"'");
if(me.getAttrName()!=null)
- System.out.print(" attrName='"+me.getAttrName()+"'");
- System.out.print("\n");
+ System.out.println("\tattrName='"+me.getAttrName()+"'");
if(me.getPrevValue()!=null)
- System.out.println("\t prevValue='"+me.getPrevValue()+"'");
+ System.out.println("\tprevValue='"+me.getPrevValue()+"'");
if(me.getNewValue()!=null)
- System.out.println("\t newValue='"+me.getNewValue()+"'");
+ System.out.println("\tnewValue='"+me.getNewValue()+"'");
}
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org