### Home Classes Methods

### In Files

- lib/interfaces/guitools.rb

### Parent

Sketchup::ModelObserver

### Methods

- #onTransactionUndo

### Files

- LessThan5BlueLabels.txt
- AtLeast2LargeSegments.txt

### Class Index

Quicksearch

- AddLabelTool
- AllRulesAppliedGoal
- Area
- AreaConstraint
- Array
- BalancedBinaryTree
- BalancedBinaryTreeNode
- CloseObserver
- Constants
- Constraint
- CurrentLabelledShape
- DistinctShapeConstraint
- Execution
- Goal
- Grammar
- Label
- LabelledShape
- LineDescriptor
- LinearLinkedList
- LinearLinkedListNode
- NoLabelsGoal
- NoMoreRulesGoal
- NoScalesConstraint
- Numeric
- Object
- OrderedPoint
- PiList
- Point
- Project
- Robot
- Rule
- RuleGroupsObserver
- RuleLabelledShape
- RuleShapeObserver
- Segment
- ShaDeLayersObserver
- Shade
- ShadeUtils
- UndoObserver

No matching classes.

# UndoObserver

Author | Manuela Ruiz (mruiz@lcc.uma.es)

Observer attached to Sketchup.active_model, triggers when the user makes an UNDO

### Public Instance Methods

onTransactionUndo(model) click to toggle source

Reexecutes the grammar and shows a message, saying that it is not allowed to undo

         # File lib/interfaces/guitools.rb, line 138
    138:         def onTransactionUndo(model)

    139:                 Sketchup.active_model.start_operation("Undo Done")

    140:                 #Shade.project.need_refresh = true

    141:                 UI.messagebox("We are sorry, you cannot use the undo command.")

    142:                 Sketchup.active_model.commit_operation

    143:         end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.