[squeak-dev] The Inbox: Tools-mt.702.mcz
commits at source.squeak.org
commits at source.squeak.org
Thu May 12 15:09:26 UTC 2016
Marcel Taeumel uploaded a new version of Tools to project The Inbox:
http://source.squeak.org/inbox/Tools-mt.702.mcz
==================== Summary ====================
Name: Tools-mt.702
Author: mt
Time: 12 May 2016, 5:09:18.851775 pm
UUID: 7646ebd5-0873-e149-a688-3d1ade262772
Ancestors: Tools-bf.701
Ask before discarding changes made in the code pane in object explorers and inspectors.
Let's try this out for a while and see whether it turns out to be too annoying.
=============== Diff against Tools-bf.701 ===============
Item was changed:
----- Method: Inspector>>buildCodePaneWith: (in category 'toolbuilder') -----
buildCodePaneWith: builder
| textSpec |
textSpec := builder pluggableCodePaneSpec new.
textSpec
model: self;
getText: #expression;
editText: #expression:;
help: #helpText;
selection: #contentsSelection;
+ menu: #codePaneMenu:shifted:.
- menu: #codePaneMenu:shifted:;
- askBeforeDiscardingEdits: false.
^textSpec!
Item was added:
+ ----- Method: ObjectExplorer>>okToChange (in category 'updating') -----
+ okToChange
+
+ self canDiscardEdits ifTrue: [^ true].
+ self changed: #wantToChange. "Solicit cancel from view"
+ ^ self canDiscardEdits!
More information about the Squeak-dev
mailing list
|