예제 #1
0
 @Override
 public void onStart() {
   commandManager.registerListener(
       new Command("blockid", "/blockid <id>", "Sets the ID for block searching"), this);
   commandManager.registerListener(
       new Command("blockradius", "/blockradius <radius>", "Sets the radius for block searching"),
       this);
   ui.setVisible(true);
 }
예제 #2
0
 @Override
 public void onStop() {
   commandManager.unregisterListener("blockid");
   commandManager.unregisterListener("blockradius");
   ui.setVisible(false);
   synchronized (lock) {
     JTable list = ui.getList();
     DefaultTableModel model = (DefaultTableModel) list.getModel();
     Vector<?> dataVector = model.getDataVector();
     dataVector.clear();
     model.fireTableDataChanged();
   }
 }