|
From: Gerry D. <gd...@us...> - 2002-06-11 15:50:08
|
Update of /cvsroot/swapdv/swapdv/ui
In directory usw-pr-cvs1:/tmp/cvs-serv29659/ui
Modified Files:
ChannelChooser.java DragTable.java DropTable.java
ShowViewManager.java SwapDVStatusBar.java
Log Message:
Changed all println()'s over the Logger.logs, added --debug switch and initial deleteShowActions
Index: ChannelChooser.java
===================================================================
RCS file: /cvsroot/swapdv/swapdv/ui/ChannelChooser.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- ChannelChooser.java 3 Jun 2002 23:03:04 -0000 1.1
+++ ChannelChooser.java 11 Jun 2002 15:50:04 -0000 1.2
@@ -35,6 +35,7 @@
import java.util.*;
import swapdv.ui.Models.*;
import swapdv.ReplayGuide.*;
+import swapdv.Logger.*;
public class ChannelChooser {
public int channelID = -1;
@@ -60,7 +61,7 @@
Channel chan = (Channel)en.nextElement();
if (catid == -1 || chan.category == catid) size++;
}
- System.out.println("size = "+size);
+ Logger.log(0, LoggerI.LEVEL_DEBUG, "size = "+size);
String names[] = new String[size+1];
int ids[] = new int[size+1];
Index: DragTable.java
===================================================================
RCS file: /cvsroot/swapdv/swapdv/ui/DragTable.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- DragTable.java 4 Jun 2002 20:54:54 -0000 1.2
+++ DragTable.java 11 Jun 2002 15:50:04 -0000 1.3
@@ -35,6 +35,7 @@
import java.awt.dnd.*;
import java.awt.datatransfer.*;
import java.awt.*;
+import swapdv.Logger.*;
public class DragTable implements DragSourceListener,DragGestureListener {
private DragSource dragSource;
@@ -77,7 +78,7 @@
}
public void dragGestureRecognized(java.awt.dnd.DragGestureEvent event) {
- System.out.println("dragGestureRecognized");
+ Logger.log(0, LoggerI.LEVEL_DEBUG, "dragGestureRecognized");
java.awt.Point p = event.getDragOrigin();
dragSource.startDrag(event, DragSource.DefaultCopyNoDrop, new StringSelection(""), this);
}
Index: DropTable.java
===================================================================
RCS file: /cvsroot/swapdv/swapdv/ui/DropTable.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- DropTable.java 4 Jun 2002 20:54:54 -0000 1.2
+++ DropTable.java 11 Jun 2002 15:50:04 -0000 1.3
@@ -36,6 +36,7 @@
import java.awt.datatransfer.*;
import java.util.*;
import java.awt.*;
+import swapdv.Logger.*;
public class DropTable implements DropTargetListener {
public static Point point = null;
@@ -56,7 +57,7 @@
public void drop(DropTargetDropEvent event) {
- System.out.println("Drop!");
+ Logger.log(0, LoggerI.LEVEL_DEBUG, "Drop!");
DropTargetContext context = event.getDropTargetContext();
try {
event.acceptDrop(DnDConstants.ACTION_COPY_OR_MOVE);
Index: ShowViewManager.java
===================================================================
RCS file: /cvsroot/swapdv/swapdv/ui/ShowViewManager.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- ShowViewManager.java 3 Jun 2002 23:03:04 -0000 1.1
+++ ShowViewManager.java 11 Jun 2002 15:50:04 -0000 1.2
@@ -38,6 +38,7 @@
import java.util.*;
import swapdv.ReplayGuide.*;
import swapdv.ui.Models.*;
+import swapdv.Logger.*;
public class ShowViewManager implements TreeSelectionListener, ListSelectionListener {
private TreeSelectionModel treeSelect;
@@ -95,7 +96,7 @@
if (node instanceof ShowTreeNode) {
Show show = ((ShowTreeNode)node).getShow();
int row = stm.getRow(show);
- System.out.println("need to select row "+row);
+ Logger.log(0, LoggerI.LEVEL_DEBUG, "need to select row "+row);
selectedRows.add(new Integer(row));
}
}
Index: SwapDVStatusBar.java
===================================================================
RCS file: /cvsroot/swapdv/swapdv/ui/SwapDVStatusBar.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- SwapDVStatusBar.java 10 Jun 2002 21:34:59 -0000 1.3
+++ SwapDVStatusBar.java 11 Jun 2002 15:50:04 -0000 1.4
@@ -3,6 +3,7 @@
import swapdv.*;
import swapdv.ReplayServer.*;
import swapdv.JtellaServer.*;
+import swapdv.Logger.*;
public class SwapDVStatusBar extends StatusBar implements Runnable {
@@ -71,7 +72,7 @@
String out = "";
while (li.hasNext()) {
com.kenmccrary.jtella.NodeConnection nc = (com.kenmccrary.jtella.NodeConnection)li.next();
- //System.out.println("host "+nc.getConnectedServant()+" type "+nc.getType()+" status "+nc.getStatus());
+ //Logger.log(0, LoggerI.LEVEL_DEBUG, "host "+nc.getConnectedServant()+" type "+nc.getType()+" status "+nc.getStatus());
if (nc.getType()==nc.CONNECTION_INCOMING) in = in + nc.getConnectedServant() + "->"+getStatusString(nc)+"<br>";
else out = out + nc.getConnectedServant() +"->"+getStatusString(nc)+"<br>";
}
@@ -116,7 +117,7 @@
**/
try { t.sleep(1500); } catch (Exception ex) {};
}
- System.out.println("Ending status bar thread");
+ Logger.log(0, LoggerI.LEVEL_DEBUG, "Ending status bar thread");
t=null;
}
|