Class OutputWindowThread

java.lang.Object
java.lang.Thread
cz.fidentis.analyst.gui.app.OutputWindowThread
All Implemented Interfaces:
Runnable

public class OutputWindowThread extends Thread
Wrapper of the default Java Netbeans Platform output window. This singleton runs in the background, reads messages logged through the Logger and displays them in the output window. This singleton is currently executed from the ProjectWindow, which is always presented in the FIDENTIS application.
  • Constructor Details

    • OutputWindowThread

      protected OutputWindowThread()
  • Method Details

    • execute

      public static boolean execute()
      Starts the redirection of messages logged via the Logger into the output window.
      Returns:
      false if the singleton/thread is already executed, true otherwise.
    • stopExecution

      public static boolean stopExecution(boolean err)
      Stops the redirection of messages logged via the Logger into the output window.
      Parameters:
      err - If true then the logged messages are redirected to the system error output. Otherwise, the system standard output is used.
      Returns:
      false if the singleton/thread is already stopped, true otherwise.
    • stopExecution

      public static boolean stopExecution()
      Stops the redirection of messages logged via the Logger into the output window. The messages are redirected into the system standard output.
      Returns:
      false if the singleton/thread is already stopped, true otherwise.
    • run

      public void run()
      Specified by:
      run in interface Runnable
      Overrides:
      run in class Thread
    • fallAsleep

      protected void fallAsleep(int mil)