Recovered from cvs revision 2007-11-11 15:23:00

This commit is contained in:
hyung-hwan 2007-11-12 00:23:00 +00:00
parent 8109e37e29
commit 9a6cd2bd08

View File

@ -1,5 +1,5 @@
/* /*
* $Id: AseAwkPanel.java,v 1.27 2007/11/10 12:56:49 bacon Exp $ * $Id: AseAwkPanel.java,v 1.28 2007/11/11 06:10:42 bacon Exp $
*/ */
import java.awt.*; import java.awt.*;
@ -104,18 +104,15 @@ public class AseAwkPanel extends Panel implements DropTargetListener
this.awkPanel = awkPanel; this.awkPanel = awkPanel;
addFunction ("sleep", 1, 1); addFunction ("sleep", 1, 1);
/*
setWord ("sin", "cain"); setWord ("sin", "cain");
setWord ("length", "len"); setWord ("length", "len");
setWord ("OFMT", "ofmt"); setWord ("OFMT", "ofmt");
setWord ("END", "end"); setWord ("END", "end");
setWord ("sleep", "cleep"); setWord ("sleep", "cleep");
try{
setWord ("end", "END"); setWord ("end", "END");
} catch (Exception e) */
{
e.printStackTrace();
}
} }
public void sleep (Context ctx, String name, Return ret, Argument[] args) throws ase.awk.Exception public void sleep (Context ctx, String name, Return ret, Argument[] args) throws ase.awk.Exception
@ -123,7 +120,6 @@ public class AseAwkPanel extends Panel implements DropTargetListener
Argument t = args[0]; Argument t = args[0];
//if (args[0].isIndexed()) t = args[0].getIndexed(0); //if (args[0].isIndexed()) t = args[0].getIndexed(0);
System.out.println ("Original: " + getWord(name));
try { Thread.sleep (t.getIntValue() * 1000); } try { Thread.sleep (t.getIntValue() * 1000); }
catch (InterruptedException e) {} catch (InterruptedException e) {}