T-Plan Robot Enterprise 4.0.1
Build No. 4.0.1-20141118.1

com.tplan.robot.scripting.interpret
Interface ScriptOwner


public interface ScriptOwner

Script owner (for example an editor) which can apply changes to the source code. Script owners should register with the script interprets so that the interpret may ask them to save the script when needed (for example, if the script compiler needs to save the changes to a file before compilation).

Script interprets should never save the file on their own because they don't know who currently edits the document.


T-Plan Robot Enterprise, (C) 2009-2014 T-Plan Limited. All rights reserved.


Method Summary
 void needToRecompile()
          Notify the script owner that the script changed in an unspecified way and needs to be recompiled.
 void save(TestScriptInterpret interpret)
          Notify the script owner that the interpret wishes to save the code to the file system.
 

Method Detail

save

void save(TestScriptInterpret interpret)
          throws java.io.IOException
Notify the script owner that the interpret wishes to save the code to the file system. This is typically called by a Java test script which uses an external compiler and thus it needs to save all the changes prior to the compilation.

Parameters:
interpret - the interpret.
Throws:
java.io.IOException - on an I/O error.

needToRecompile

void needToRecompile()
Notify the script owner that the script changed in an unspecified way and needs to be recompiled. This is typically reported by a master script which gets notified of a change in one of the scripts it links to using Run or Include. It is intended to kick off a lazy compilation, for example after a certain period of idle time.


T-Plan Robot Enterprise 4.0.1
Build No. 4.0.1-20141118.1