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.

8<br />

Customization<br />

Version Control<br />

This example illustrates how to use the Customize Tools dialog box to add an<br />

Uncheckout command to the Tools menu: the command cancels the checkout of<br />

whatever file is currently open in <strong>Tornado</strong> (that is, the file visible in the current<br />

editor window). Figure 8-6 illustrates the specification for a ClearCase command<br />

to uncheckout a module.<br />

Figure 8-6<br />

Uncheckout Command for Tools Menu<br />

8<br />

The Menu Text entry indicates that the command unchecks out a file, but is not<br />

specific to any particular file. The Tool Command field uses the $filepath macro<br />

(Macros for Customized Menu Commands, p.285) to expand the current file to its full<br />

path name.<br />

In this example, the Prompt for Arguments and Redirect to Child Window boxes are<br />

checked. When the new Uncheckout command in the Tools menu is executed, the<br />

predefined argument list appears as a default in a dialog box (shown in Figure 8-7),<br />

to permit specifying other arguments if necessary.<br />

Figure 8-7<br />

Prompt for Arguments Dialog Box<br />

287

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

Saved successfully!

Ooh no, something went wrong!