Commits

Anonymous committed 8fc0909

Removed generic add-listener

  • Participants
  • Parent commits 0241d38

Comments (0)

Files changed (1)

src/org/lispdev/repl/AbstractRepl.java

 
 import org.lispdev.log.Trace;
 import org.lispdev.swank.ISwank;
-import org.lispdev.swank.SwankEvent;
 import org.lispdev.swank.runnables.SwankDebugActivateRunnable;
 import org.lispdev.swank.runnables.SwankDebugReturnRunnable;
 import org.lispdev.swank.runnables.SwankDebugRunnable;
 import org.lispdev.swank.runnables.SwankDebugRunnable.DebugInfo;
+import org.lispdev.swank.runnables.SwankDisconnectRunnable;
 import org.lispdev.swank.runnables.SwankPresentationRunnable;
 import org.lispdev.swank.runnables.SwankReadStringRunnable;
-import org.lispdev.swank.runnables.SwankRunnable;
 import org.lispdev.swank.runnables.SwankWriteStringRunnable;
 
 /**
 
   public final ISwank swank;
 
-  private class DisconnectRunnable extends SwankRunnable
+  private class DisconnectRunnable extends SwankDisconnectRunnable
   {
     private final AbstractRepl repl;
 
     {
       repl.disconnected();
     }
-
-    @Override
-    public Object getInfo()
-    {
-      return null;
-    }
-
   }
 
   private class ReadRunnable extends SwankReadStringRunnable
     swank.addPresentationListener(presentationRunnable);
     swank.addWriteStringListener(writeStringRunnable);
     swank.addReadStringListener(readRunnable);
-    swank.addListener(SwankEvent.DISCONNECT, disconnectRunnable);
+    swank.addDisconnectListener(disconnectRunnable);
     swank.addDebugListener(debugInfoRunnable);
     swank.addDebugActivateListener(debugRunnable);
     swank.addDebugReturnListener(debugStopRunnable);