02.03.2014 Views

Tornado

Tornado

Tornado

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Tornado</strong> 2.0<br />

User’s Guide<br />

Table 8-3<br />

Menu-Customization Macros for Project Context (Continued)<br />

Menu Entry Macro Description Example<br />

Derived<br />

object<br />

$derivedobj<br />

The name of the<br />

derived object of the<br />

currently selected<br />

source file in the<br />

current project.<br />

/usr/xeno/proj/widget/default/zap.o<br />

Table 8-4 lists macros for the global <strong>Tornado</strong> context.<br />

Table 8-4<br />

Menu-Customization Macros for Global Context<br />

Menu Entry Macro Description Example<br />

Target<br />

name<br />

$targetName<br />

The full name of the target server<br />

selected in the <strong>Tornado</strong> Launch<br />

toolbar.<br />

vxsim@ontario<br />

Target $target The name of the target selected in the<br />

<strong>Tornado</strong> Launch toolbar.<br />

vxsim<br />

<strong>Tornado</strong><br />

inst. dir<br />

$wind_base<br />

Installation directory recorded in the<br />

environment variable WIND_BASE.<br />

/usr/wind<br />

<strong>Tornado</strong><br />

host type<br />

$wind_host_type<br />

Host type recorded in the<br />

environment variable<br />

WIND_HOST_TYPE.<br />

sun4-solaris2<br />

<strong>Tornado</strong><br />

registry<br />

$wind_registry<br />

Registry recorded in the<br />

environment variable<br />

WIND_REGISTRY<br />

mars<br />

8.4.2 Examples of Tools Menu Customization<br />

When creating a menu command be sure to check Redirect to Child Window for all<br />

applications that do not automatically open their own shell or window. Otherwise<br />

the command will attempt to run in the window that launched <strong>Tornado</strong>, if that<br />

window is still open. Thus an editor or version control command should be<br />

redirected, but a call to a browser need not be.<br />

286

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!