[squeak-dev] The Inbox: Tools-jl.1178.mcz
commits at source.squeak.org
commits at source.squeak.org
Tue Feb 28 15:42:26 UTC 2023
A new version of Tools was added to project The Inbox:
http://source.squeak.org/inbox/Tools-jl.1178.mcz
==================== Summary ====================
Name: Tools-jl.1178
Author: jl
Time: 28 February 2023, 4:42:25.541268 pm
UUID: c65c6ada-fea0-7749-a936-727e06378ef3
Ancestors: Tools-ct.1177
new menu entry for workspaces: remove all styling from the text objects in this workspace. helpful if you have clickable links with pointers to big objects you would like to be garbage-collected
=============== Diff against Tools-ct.1177 ===============
Item was changed:
----- Method: Workspace>>addModelItemsToWindowMenu: (in category 'menu commands') -----
addModelItemsToWindowMenu: aMenu
aMenu addLine.
aMenu
add: 'change file name...'
target: self
action: #changeFileName.
aMenu
add: 'save contents to file...'
target: self
action: #saveContentsInFile.
aMenu
addUpdating: #saveContentsInFileOnAcceptWording
target: self
action: #saveContentsInFileOnAccept.
aMenu
addUpdating: #appendContentsToFileOnAcceptWording
target: self
action: #appendContentsToFileOnAccept.
aMenu addLine.
aMenu
add: 'inspect variables'
target: self
action: #inspectBindings.
aMenu
add: 'reset variables'
target: self
action: #resetBindings.
+ aMenu
+ add: 'reset styles'
+ target: self
+ action: #resetStyles.
aMenu addLine.
aMenu
addUpdating: #mustDeclareVariableWording
target: self
action: #toggleVariableDeclarationMode.
aMenu
addUpdating: #acceptDroppedMorphsWording
target: self
action: #toggleDroppingMorphForReference.
self addToggleStylingMenuItemTo: aMenu.
!
Item was added:
+ ----- Method: Workspace>>resetStyles (in category 'menu commands') -----
+ resetStyles
+ "remove all styling from the text objects in this workspace. helpful if you have clickable links with pointers to big objects you would like to be garbage-collected"
+
+ self contents isText ifTrue: [self contents removeAllAttributes].
+ self codeTextPane text removeAllAttributes.
+ self codeTextPane changed!
More information about the Squeak-dev
mailing list
|