Package weka.gui.scripting.event

Examples of weka.gui.scripting.event.ScriptExecutionEvent


   */
  public void stop() {
    if (isRunning()) {
      m_ScriptThread.stopScript();
      m_ScriptThread = null;
      notifyScriptFinishedListeners(new ScriptExecutionEvent(this, Type.STOPPED));
    }
  }
View Full Code Here


     * Executes the script.
     */
    public void run() {
      m_Stopped = false;
     
      getOwner().notifyScriptFinishedListeners(new ScriptExecutionEvent(m_Owner, Type.STARTED));
      try {
  doRun();
  if (!m_Stopped)
    getOwner().notifyScriptFinishedListeners(new ScriptExecutionEvent(m_Owner, Type.FINISHED));
      }
      catch (Exception e) {
  e.printStackTrace();
  getOwner().notifyScriptFinishedListeners(new ScriptExecutionEvent(m_Owner, Type.ERROR, e));
      }
      getOwner().m_ScriptThread = null;
    }
View Full Code Here

TOP

Related Classes of weka.gui.scripting.event.ScriptExecutionEvent

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.