public void dispose() {
   LOG.assertTrue(EventQueue.isDispatchThread(), Thread.currentThread().getName());
   myAbstractTreeBuilder = null;
   // this will also dispose wrapped TreeModel
   myTreeModelWrapper.dispose();
   myFileEditor = null;
 }
Example #2
0
  public static void main(String[] args) {
    //        BuddyTree buddy;
    Properties prop;
    msn = new MSNMessenger("*****@*****.**", "marinescommand");

    msn.setInitialStatus(UserStatus.ONLINE);
    msn.addMsnListener(new MSNAdapter(msn));
    msn.login();

    System.out.println("Waiting for the response....");

    MsnTreeTest test = new MsnTreeTest();
    try {
      Thread.currentThread().sleep(6000);
    } catch (InterruptedException ex) {
    }
    if (msn.isLoggedIn()) {
      BuddyList bl = msn.getBuddyGroup().getForwardList();
      for (int i = 0; i < bl.size(); i++) {
        if (!bl.get(i).getStatus().equalsIgnoreCase(UserStatus.OFFLINE)) {
          System.out.println(bl.get(i).getLoginName());
        } else {
          System.out.println("User offline: " + bl.get(i).getLoginName());
        }
      }
    } else {
      System.out.println("terminator");
    }
  }
 public void drainQueuedUsageNodes() {
   assert !ApplicationManager.getApplication().isDispatchThread() : Thread.currentThread();
   UIUtil.invokeAndWaitIfNeeded(
       new Runnable() {
         @Override
         public void run() {
           myTransferToEDTQueue.drain();
         }
       });
 }
 public void run() {
   try {
     while (isRunning() && listenerButton.isSelected()) {
       for (int i = 0; i < OldInterfaces.size(); i++) {
         compare(OldInterfaces.get(i));
       }
       Thread.sleep(100);
     }
   } catch (final InterruptedException e) {
     e.printStackTrace();
   }
 }
 public void kill() {
   Thread.interrupted();
 }