User Guide

170 Workspace
Example
The following example saves the fourth, sixth, and eighth steps in the History panel as a
command:
dreamweaver.historyPalette.saveAsCommand([3,5,7]);
dreamweaver.historyPalette.setSelectedSteps()
Availability
Dreamweaver 3.
Description
Selects the specified steps in the History panel.
Arguments
arrayOfIndices
The arrayOfIndices function is an array of position indices in the History panel. If no
argument is supplied, all the steps are unselected.
Returns
Nothing.
Example
The following example selects the first, second, and third steps in the History panel:
dreamweaver.historyPalette.setSelectedSteps([0,1,2]);
dreamweaver.historyPalette.setUndoState()
Availability
Dreamweaver 3.
Description
Performs the correct number of undo or redo operations to arrive at the specified undo state.
Arguments
undoState
The undoState argument is the object that the
dreamweaver.historyPalette.getUndoState() function returns.
000_DW_API_Print.book Page 170 Wednesday, July 20, 2005 11:58 AM