# HG changeset patch # User tz # Date 887487449 -3600 # Node ID ebc0beb615c5c48a4f63caa411bfa0d5e67fc403 # Parent 11bbf45998432c2de2d1b0e0295a43adabb7712e ask modification methods renamed diff -r 11bbf4599843 -r ebc0beb615c5 MenuEditor.st --- a/MenuEditor.st Sat Feb 14 20:34:45 1998 +0100 +++ b/MenuEditor.st Sat Feb 14 21:17:29 1998 +0100 @@ -1868,7 +1868,11 @@ doNew - self buildFrom: nil andSelector: self treeView selectorName + self askForModification + ifTrue: + [ + self buildFrom: nil andSelector: self treeView selectorName + ] ! doPickAMenu @@ -2473,7 +2477,7 @@ self multipleSelectOk:true. self showDirectoryIndicator: true. self showDirectoryIndicatorForRoot: false. - self selectConditionBlock: [:i|self application checkMenuItemModified]. + self selectConditionBlock: [:i|self application askForItemModification]. self validateDoubleClickBlock: [:node| node ~~ listOfNodes first]. self model iconAction: [:aNode| aNode contents iconFor: aNode]. @@ -2524,7 +2528,7 @@ doCut - self checkMenuItemModified + self askForItemModification ifTrue: [ |selectedNodes| @@ -2549,7 +2553,7 @@ addElement: aNode "add something after selection" - self checkMenuItemModified + self askForItemModification ifTrue: [ self selectedNodeAdd: aNode. @@ -2581,9 +2585,9 @@ ] ! -checkMenuItemModified - - ^self topView application checkItemModified +askForItemModification + + ^self topView application askForItemModification ! nodeLabel:aLabel