// Path: app/src/processing/app/I18n.java
// public static String _(String s) {
//   String res;
//   try {
//     res = i18n.getString(s);
//   } catch (MissingResourceException e) {
//     res = s;
//   }
// 
//   // The single % is the arguments selector in .PO files.
//   // We must put double %% inside the translations to avoid
//   // getting .PO processing in the way.
//   res = res.replace("%%", "%");
// 
//   return res;
// }


import cc.arduino.packages.BoardPort;
import processing.core.PApplet;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import static processing.app.I18n._;
/* -*- mode: java; c-basic-offset: 2; indent-tabs-mode: nil -*- */

/*
  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation; either version 2 of the License, or
  (at your option) any later version.

  This program is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more details.

  You should have received a copy of the GNU General Public License
  along with this program; if not, write to the Free Software Foundation,
  Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*/

package processing.app;




public class SerialMonitor extends AbstractMonitor {

  private final String port;
  private Serial serial;
  private int serialRate;

  public SerialMonitor(BoardPort port) {
    super(port.getLabel());

    this.port = port.getAddress();

    serialRate = Preferences.getInteger("serial.debug_rate");
// Path: app/src/processing/app/I18n.java
// public static String _(String s) {
//   String res;
//   try {
//     res = i18n.getString(s);
//   } catch (MissingResourceException e) {
//     res = s;
//   }
// 
//   // The single % is the arguments selector in .PO files.
//   // We must put double %% inside the translations to avoid
//   // getting .PO processing in the way.
//   res = res.replace("%%", "%");
// 
//   return res;
// }


// Path: app/src/processing/app/SerialMonitor.java
import cc.arduino.packages.BoardPort;
import processing.core.PApplet;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import static processing.app.I18n._;

/* -*- mode: java; c-basic-offset: 2; indent-tabs-mode: nil -*- */

/*
  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation; either version 2 of the License, or
  (at your option) any later version.

  This program is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more details.

  You should have received a copy of the GNU General Public License
  along with this program; if not, write to the Free Software Foundation,
  Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*/

package processing.app;




public class SerialMonitor extends AbstractMonitor {

  private final String port;
  private Serial serial;
  private int serialRate;

  public SerialMonitor(BoardPort port) {
    super(port.getLabel());

    this.port = port.getAddress();

    serialRate = Preferences.getInteger("serial.debug_rate");
    serialRates.setSelectedItem(serialRate + " " + _("baud"));