author | Claus Gittinger <cg@exept.de> |
Sat, 30 Mar 2013 02:59:17 +0100 | |
changeset 12577 | 3ca47412263f |
parent 10741 | e4645cbb0958 |
child 12123 | 4bde08cebd48 |
child 13832 | 00590bb2d7cf |
permissions | -rw-r--r-- |
10741
e4645cbb0958
Fix package def libbasic3->libtool
Stefan Vogel <sv@exept.de>
parents:
10195
diff
changeset
|
1 |
"{ Package: 'stx:libtool' }" |
10195 | 2 |
|
3 |
"{ NameSpace: Tools }" |
|
4 |
||
5 |
Object subclass:#ChangeSetSpec |
|
6 |
instanceVariableNames:'' |
|
7 |
classVariableNames:'' |
|
8 |
poolDictionaries:'' |
|
9 |
category:'Interface-Dialogs' |
|
10 |
! |
|
11 |
||
12 |
ChangeSetSpec subclass:#Directory |
|
13 |
instanceVariableNames:'directory' |
|
14 |
classVariableNames:'' |
|
15 |
poolDictionaries:'' |
|
16 |
privateIn:ChangeSetSpec |
|
17 |
! |
|
18 |
||
19 |
ChangeSetSpec subclass:#Package |
|
20 |
instanceVariableNames:'package' |
|
21 |
classVariableNames:'' |
|
22 |
poolDictionaries:'' |
|
23 |
privateIn:ChangeSetSpec |
|
24 |
! |
|
25 |
||
26 |
||
27 |
!ChangeSetSpec class methodsFor:'accessing'! |
|
28 |
||
29 |
editorSpecSelector |
|
30 |
||
31 |
^self subclassResponsibility |
|
32 |
||
33 |
"Created: / 05-07-2011 / 23:37:03 / jv" |
|
34 |
! |
|
35 |
||
36 |
label |
|
37 |
||
38 |
^self subclassResponsibility |
|
39 |
||
40 |
"Created: / 05-07-2011 / 23:29:33 / jv" |
|
41 |
! |
|
42 |
||
43 |
specClasses |
|
44 |
||
45 |
^self allSubclasses |
|
46 |
||
47 |
"Created: / 05-07-2011 / 23:30:45 / jv" |
|
48 |
! ! |
|
49 |
||
50 |
!ChangeSetSpec methodsFor:'accessing'! |
|
51 |
||
52 |
changeSet |
|
53 |
||
54 |
^self subclassResponsibility |
|
55 |
||
56 |
"Created: / 05-07-2011 / 23:13:35 / jv" |
|
57 |
! |
|
58 |
||
59 |
editorSpecSelector |
|
60 |
||
61 |
^self class editorSpecSelector |
|
62 |
||
63 |
"Created: / 06-07-2011 / 09:57:51 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
64 |
! ! |
|
65 |
||
66 |
!ChangeSetSpec::Directory class methodsFor:'accessing'! |
|
67 |
||
68 |
editorSpecSelector |
|
69 |
"superclass Tools::ChangeSetSpec class says that I am responsible to implement this method" |
|
70 |
||
71 |
^ #editorSpecForDirectory |
|
72 |
||
73 |
"Modified: / 05-07-2011 / 23:37:41 / jv" |
|
74 |
! |
|
75 |
||
76 |
label |
|
77 |
"superclass Tools::ChangeSetSpec class says that I am responsible to implement this method" |
|
78 |
||
79 |
^ 'Directory' |
|
80 |
||
81 |
"Modified: / 05-07-2011 / 23:31:12 / jv" |
|
82 |
! ! |
|
83 |
||
84 |
!ChangeSetSpec::Directory methodsFor:'accessing'! |
|
85 |
||
86 |
changeSet |
|
87 |
"superclass Tools::ChangeSetSpec says that I am responsible to implement this method" |
|
88 |
||
89 |
| name | |
|
90 |
name := directory asString. |
|
91 |
name size > 50 ifTrue:[ |
|
92 |
name := '...' , (name copyFrom: name size - 47) |
|
93 |
]. |
|
94 |
||
95 |
^(ChangeSet fromDirectory: self directory) |
|
96 |
name: name |
|
97 |
||
98 |
"Modified (format): / 06-07-2011 / 11:40:54 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
99 |
! |
|
100 |
||
101 |
directory |
|
102 |
^ directory |
|
103 |
! |
|
104 |
||
105 |
directory:aStringOrFilename |
|
106 |
directory := aStringOrFilename. |
|
107 |
! ! |
|
108 |
||
109 |
!ChangeSetSpec::Package class methodsFor:'accessing'! |
|
110 |
||
111 |
editorSpecSelector |
|
112 |
"superclass Tools::ChangeSetSpec class says that I am responsible to implement this method" |
|
113 |
||
114 |
^ #editorSpecForPackage |
|
115 |
||
116 |
"Modified: / 05-07-2011 / 23:37:52 / jv" |
|
117 |
! |
|
118 |
||
119 |
label |
|
120 |
"superclass Tools::ChangeSetSpec class says that I am responsible to implement this method" |
|
121 |
||
122 |
^ 'Loaded package' |
|
123 |
||
124 |
"Modified: / 05-07-2011 / 23:31:34 / jv" |
|
125 |
! ! |
|
126 |
||
127 |
!ChangeSetSpec::Package methodsFor:'accessing'! |
|
128 |
||
129 |
changeSet |
|
130 |
"superclass Tools::ChangeSetSpec says that I am responsible to implement this method" |
|
131 |
||
132 |
^ (ChangeSet forPackage: self package) |
|
133 |
name: ('Package %1 (from image)' bindWith: package) |
|
134 |
||
135 |
"Modified: / 06-07-2011 / 11:38:54 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
136 |
! |
|
137 |
||
138 |
package |
|
139 |
^ package |
|
140 |
! |
|
141 |
||
142 |
package:aStringOrSymbol |
|
143 |
package := aStringOrSymbol. |
|
144 |
! ! |
|
145 |
||
146 |
!ChangeSetSpec class methodsFor:'documentation'! |
|
147 |
||
148 |
version_CVS |
|
10741
e4645cbb0958
Fix package def libbasic3->libtool
Stefan Vogel <sv@exept.de>
parents:
10195
diff
changeset
|
149 |
^ '$Header: /cvs/stx/stx/libtool/Tools__ChangeSetSpec.st,v 1.2 2011-10-02 19:52:17 stefan Exp $' |
10195 | 150 |
! ! |