[squeak-dev] The Inbox: Tools-ael.394.mcz
commits at source.squeak.org
commits at source.squeak.org
Wed Jul 25 12:58:00 UTC 2012
Levente Uzonyi uploaded a new version of Tools to project The Inbox:
http://source.squeak.org/inbox/Tools-ael.394.mcz
==================== Summary ====================
Name: Tools-ael.394
Author: ael
Time: 23 December 2011, 12:31:56.191 am
UUID: 2f669d9e-89f0-7449-9708-84937489b6d4
Ancestors: Tools-laza.393
fix to invocation of file-specific "services" from contents pane of a FileList
=============== Diff against Tools-laza.393 ===============
Item was changed:
----- Method: FileList>>fileContentsMenu:shifted: (in category 'file list menu') -----
fileContentsMenu: aMenu shifted: shifted
"Construct aMenu to have items appropriate for the file browser's code pane, given the shift state provided"
| services maybeLine extraLines |
shifted ifTrue:
[^ aMenu addList: StringHolder shiftedYellowButtonMenuItems].
fileName ifNotNil:
[services := OrderedCollection new.
(#(briefHex briefFile needToGetBriefHex needToGetBrief) includes: brevityState) ifTrue:
[services add: self serviceGet].
(#(fullHex briefHex needToGetFullHex needToGetBriefHex) includes: brevityState) ifFalse:
[services add: self serviceGetHex].
(#(needToGetShiftJIS needToGetEUCJP needToGetCNGB needToGetEUCKR needToGetUTF8) includes: brevityState) ifFalse:
[services add: self serviceGetEncodedText].
maybeLine := services size.
(FileStream sourceFileSuffixes includes: self suffixOfSelectedFile) ifTrue:
[services addAll:
(self servicesFromSelectorSpecs:
#(fileIntoNewChangeSet: fileIn: browseChangesFile: browseFile:))].
extraLines := OrderedCollection new.
maybeLine > 0 ifTrue: [extraLines add: maybeLine].
services size > maybeLine ifTrue: [extraLines add: services size].
aMenu
addServices: services
+ for: self
- for: self fullName
extraLines: extraLines].
aMenu addList: {
{'find...(f)' translated. #find}.
{'find again (g)' translated. #findAgain}.
{'set search string (h)' translated. #setSearchString}.
#-.
{'do again (j)' translated. #again}.
{'undo (z)' translated. #undo}.
#-.
{'copy (c)' translated. #copySelection}.
{'cut (x)' translated. #cut}.
{'paste (v)' translated. #paste}.
{'paste...' translated. #pasteRecent}.
#-.
{'do it (d)' translated. #doIt}.
{'print it (p)' translated. #printIt}.
{'inspect it (i)' translated. #inspectIt}.
{'fileIn selection (G)' translated. #fileItIn}.
#-.
{'accept (s)' translated. #accept}.
{'cancel (l)' translated. #cancel}.
#-.
{'more...' translated. #shiftedYellowButtonActivity}}.
^ aMenu
!
More information about the Squeak-dev
mailing list
|