Esempio n. 1
0
  private void processMonitors() {
    final List<String> monitors = config.getList("monitor");
    if (monitors == null) return;

    for (final String monitor : monitors) {
      final ConfigFile cf = config.getSubConfig(monitor);
      final SeismicDataSource sds = SwarmConfig.getInstance().getSource(cf.getString("source"));
      if (sds != null && DataChooser.getInstance().isSourceOpened(sds.getName())) {
        final MultiMonitor mm = SwarmMultiMonitors.getMonitor(sds);
        mm.processLayout(cf);
        mm.setVisible(true);
      }
    }
  }
Esempio n. 2
0
 private void processChooser() {
   final ConfigFile cf = config.getSubConfig("chooser");
   final ChooserListener cl = new ChooserListener();
   final List<String> sources = cf.getList("source");
   if (sources != null) {
     for (final String src : sources) cl.addSource(src);
     DataChooser.getInstance().processLayout(cf, cl);
     while (!cl.finished()) {
       try {
         Thread.sleep(100);
       } catch (final Exception e) {
         e.printStackTrace();
       }
     }
   }
 }