Package com.google.gwt.dev.shell.log

Examples of com.google.gwt.dev.shell.log.SwingLoggerPanel$TreeRenderer


        }
      });
      topPanel.add(compileButton);
      add(topPanel, BorderLayout.NORTH);
    }
    loggerPanel = new SwingLoggerPanel(maxLevel, logFile);
    add(loggerPanel);
    session.addModule(moduleName, this);
  }
View Full Code Here


  }

  public WebServerPanel(int serverPort, TreeLogger.Type maxLevel,
      File logFile, final RestartAction restartServerAction) {
    super(new BorderLayout());
    logWindow = new SwingLoggerPanel(maxLevel, logFile);
    if (restartServerAction != null) {
      JPanel panel = new JPanel();
      JButton restartButton = new JButton("Restart Server");
      restartButton.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent e) {
View Full Code Here

    BootStrapPlatform.applyPlatformHacks();

    // TODO(jat): add support for GUI logger back
    if (false && options.isUseGuiLogger()) {
      // Initialize a tree logger window.
      SwingLoggerPanel loggerWindow = new SwingLoggerPanel(
          options.getLogLevel(), null);

      // Eager AWT initialization for OS X to ensure safe coexistence with SWT.
      BootStrapPlatform.initGui();

      final TreeLogger logger = loggerWindow.getLogger();
      final boolean[] success = new boolean[1];

      // Compiler will be spawned onto a second thread, UI thread for tree
      // logger will remain on the main.
      Thread compilerThread = new Thread(new Runnable() {
View Full Code Here

        launch(new CopyToClipboardLauncher());
      }
    });
    launchPanel.add(copyToClipboardButton);
    add(launchPanel, BorderLayout.NORTH);
    logWindow = new SwingLoggerPanel(maxLevel, logFile);
    add(logWindow);
  }
View Full Code Here

      launchPanel.add(new JLabel(
          "Selections for launching a new module on a selected browser"));
      panel.add(launchPanel);
      add(panel, BorderLayout.NORTH);
    }
    logWindow = new SwingLoggerPanel(maxLevel, logFile);
    add(logWindow);
  }
View Full Code Here

  /**
   * @param args ignored
   */
  public static void main(String[] args) {
    JFrame frame = new JFrame("SwingTreeLogger test");
    SwingLoggerPanel loggerPanel = new SwingLoggerPanel(TreeLogger.INFO, null);
    frame.getContentPane().add(loggerPanel);
    frame.setSize(950, 700);
    frame.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
    frame.setVisible(true);
    TreeLogger logger = loggerPanel.getLogger();
    logger.log(TreeLogger.INFO, "info 1");
    TreeLogger branch = logger.branch(TreeLogger.INFO, "info branch");
    branch.log(TreeLogger.DEBUG, "debug 1");
    branch.log(TreeLogger.ERROR, "error 1");
    TreeLogger dbgBranch = logger.branch(TreeLogger.DEBUG, "debug branch");
View Full Code Here

        launch(new CopyToClipboardLauncher());
      }
    });
    launchPanel.add(copyToClipboardButton);
    add(launchPanel, BorderLayout.NORTH);
    logWindow = new SwingLoggerPanel(maxLevel, logFile);
    add(logWindow);
  }
View Full Code Here

        }
      });
      topPanel.add(compileButton);
      add(topPanel, BorderLayout.NORTH);
    }
    loggerPanel = new SwingLoggerPanel(maxLevel, logFile);
    add(loggerPanel);
    session.addModule(moduleName, this);
  }
View Full Code Here

   * @param serverPort the server port number
   */
  public WebServerPanel(int serverPort, TreeLogger.Type maxLevel,
      File logFile, final RestartAction restartServerAction) {
    super(new BorderLayout());
    logWindow = new SwingLoggerPanel(maxLevel, logFile);
    if (restartServerAction != null) {
      JPanel panel = new JPanel(new WrapLayout());
      JButton restartButton = new JButton("Restart Server");
      restartButton.setMnemonic(KeyEvent.VK_R);
      restartButton.addActionListener(new ActionListener() {
View Full Code Here

        launch(new CopyToClipboardLauncher());
      }
    });
    launchPanel.add(copyToClipboardButton);
    add(launchPanel, BorderLayout.NORTH);
    logWindow = new SwingLoggerPanel(maxLevel, logFile);
    add(logWindow);
  }
View Full Code Here

TOP

Related Classes of com.google.gwt.dev.shell.log.SwingLoggerPanel$TreeRenderer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.