@ttNSTFileViewer(FILE, [WIDTH], [TITLE], [KEYTITLE])

Inserts a domTT tooltip for displaying a file using the "NST File Viewer".

The following parameters are recognized:

FILE

Full path file name of the file to examine.

[WIDTH]

Optional width in "pixels" for the tooltip (defaults to "400" if omitted).

[TITLE]

Optional title override: "'View' the 'Contents' of this file:".

[KEYTITLE]

Optional key title override: "File".

Example of using the macro:

      
        This is the NST system log file: <span@ttNSTFileViewer("/var/log/messages","300")>/var/log/messages</span>
      
    

Assuming the com.ccg.macros.at.All class is within your CLASSPATH and the config/bash.at macros file has been generated (Hint: run make atmacros in the wui directory), a developer should be able to run the above example by copy/pasting from below:

[root@probe root]# java com.ccg.macros.at.All <<EOF
@include("config/bash.at",,"d")

      
        This is the NST system log file: <span@ttNSTFileViewer("/var/log/messages","300")>/var/log/messages</span>
      
    
EOF

This macro is defined as:

@domTTAttr("@ifEqual("@param(2)","","@ttLine1px("@ttEmphasis("View","false") the @ttNote("Contents") of this file:")","@param(2)")@tableTTBegin()@tableTTRow("@ifEqual("@param(3)","","File","@param(3)")","@param(0)","true")@tableTTEnd()","@param(1)")