General Modularity Example Module Projects & Files Commands & Scripting
Windows Menus Charts Tables Buttons & tools
Trees and Taxa Characters & Models Documentation General Utilities
Commands Scripting Snapshots Macros Cloning windows
Also: User's guide to scripting language class MesquiteCommand interface Commandable
class CommandChecker class Snapshot class Puppeteer

Cloning windows

(updated August 2005)

Windows that can be cloned have a "Clone window" menu item in the Window menu. Cloning can be done of any window whose module's employer passes back a non-null String for getClonableEmployeeCommand. The employer merely needs to pass the command that when passed to it would hire a new instance of the module.

To clone the window, the Snapshot of the window's owner module is obtained, and then the new hiring command is passed to the employer, followed by the snapshot to the hired employee.


© W. Maddison & D. Maddison 2005