-
-
Notifications
You must be signed in to change notification settings - Fork 353
/
ClyFileOutCommand.class.st
47 lines (37 loc) · 1.04 KB
/
ClyFileOutCommand.class.st
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
"
I am a command to file out given objects.
I simply call #fileOut for each of them.
Internal Representation and Key Implementation Points.
Instance Variables
codeObjects: <Colletion of<Object>>
"
Class {
#name : #ClyFileOutCommand,
#superclass : #CmdCommand,
#instVars : [
'codeObjects'
],
#category : #'Calypso-SystemPlugins-FileOut-Browser'
}
{ #category : #activation }
ClyFileOutCommand class >> browserMenuActivation [
<classAnnotation>
^CmdContextMenuActivation byItemOf: CmdExtraMenuGroup for: ClySystemBrowserContext
]
{ #category : #testing }
ClyFileOutCommand class >> canBeExecutedInContext: aToolContext [
^aToolContext hasSelectedItems
]
{ #category : #accessing }
ClyFileOutCommand >> defaultMenuItemName [
^'File Out'
]
{ #category : #execution }
ClyFileOutCommand >> execute [
codeObjects do: [ :each | each fileOut ]
]
{ #category : #execution }
ClyFileOutCommand >> prepareFullExecutionInContext: aToolContext [
super prepareFullExecutionInContext: aToolContext.
codeObjects := aToolContext selectedObjects
]