Example #1
0
    def write(self,text):
        cmds = TextWsCommands()
#        initCmds()
        cmds.setObserver(observer)
        cmds.writeText(text)
Example #2
0
 def write(self,text):
     cmds = TextWsCommands()
     cmds.setObserver(observer)
     cmds.writeError(text)
Example #3
0
# ------------- --------- -------------- --------------------------
#                                        Initial creation
# 2018-04-18    DCS 19952  dfriedman     Added AWIPS ID query support

#
#     SOFTWARE HISTORY
#
#    Date            Ticket#       Engineer       Description
#    ------------    ----------    -----------    --------------------------
#    01/16/2018      6804          tgurney        Remove setEditor calls
#


from com.raytheon.viz.texteditor.scripting.runner import TextWsCommands

cmds = TextWsCommands()
#
# symbolic names/aliases to better match AWIPS I script syntax
on = True
off = False
until = "until"
#
# provides a single method to initialize the 'cmds' object
# should be called at the start to each command implementation
def initCmds():
    cmds.setObserver(observer)
#
# implements a standard exit strategy for cancel script
def cancel():
    raise ScriptCancelled()