9999
|
1 |
"
|
10094
|
2 |
Copyright (c) 2007-2010 Jan Vrany, SWING Research Group, Czech Technical University in Prague
|
|
3 |
Copyright (c) 2009-2010 eXept Software AG
|
9999
|
4 |
|
10094
|
5 |
Permission is hereby granted, free of charge, to any person
|
|
6 |
obtaining a copy of this software and associated documentation
|
|
7 |
files (the 'Software'), to deal in the Software without
|
|
8 |
restriction, including without limitation the rights to use,
|
|
9 |
copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10 |
copies of the Software, and to permit persons to whom the
|
|
11 |
Software is furnished to do so, subject to the following
|
|
12 |
conditions:
|
|
13 |
|
|
14 |
The above copyright notice and this permission notice shall be
|
|
15 |
included in all copies or substantial portions of the Software.
|
|
16 |
|
|
17 |
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
|
18 |
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
|
19 |
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
20 |
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|
21 |
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
22 |
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
23 |
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
24 |
OTHER DEALINGS IN THE SOFTWARE.
|
9999
|
25 |
"
|
|
26 |
"{ Package: 'stx:libtool' }"
|
|
27 |
|
|
28 |
"{ NameSpace: Tools }"
|
|
29 |
|
|
30 |
ApplicationModel subclass:#LintRuleDetail
|
|
31 |
instanceVariableNames:'ruleHolder'
|
|
32 |
classVariableNames:''
|
|
33 |
poolDictionaries:''
|
|
34 |
category:'Interface-Lint'
|
|
35 |
!
|
|
36 |
|
|
37 |
!LintRuleDetail class methodsFor:'documentation'!
|
|
38 |
|
|
39 |
copyright
|
|
40 |
"
|
10094
|
41 |
Copyright (c) 2007-2010 Jan Vrany, SWING Research Group, Czech Technical University in Prague
|
|
42 |
Copyright (c) 2009-2010 eXept Software AG
|
|
43 |
|
|
44 |
Permission is hereby granted, free of charge, to any person
|
|
45 |
obtaining a copy of this software and associated documentation
|
|
46 |
files (the 'Software'), to deal in the Software without
|
|
47 |
restriction, including without limitation the rights to use,
|
|
48 |
copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
49 |
copies of the Software, and to permit persons to whom the
|
|
50 |
Software is furnished to do so, subject to the following
|
|
51 |
conditions:
|
9999
|
52 |
|
10094
|
53 |
The above copyright notice and this permission notice shall be
|
|
54 |
included in all copies or substantial portions of the Software.
|
|
55 |
|
|
56 |
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
|
57 |
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
|
58 |
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
59 |
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|
60 |
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
61 |
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
62 |
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
63 |
OTHER DEALINGS IN THE SOFTWARE.
|
9999
|
64 |
"
|
|
65 |
! !
|
|
66 |
|
|
67 |
!LintRuleDetail class methodsFor:'interface specs'!
|
|
68 |
|
|
69 |
windowSpec
|
|
70 |
"This resource specification was automatically generated
|
|
71 |
by the UIPainter of ST/X."
|
|
72 |
|
|
73 |
"Do not manually edit this!! If it is corrupted,
|
|
74 |
the UIPainter may not be able to read the specification."
|
|
75 |
|
|
76 |
"
|
|
77 |
UIPainter new openOnClass:Tools::LintRuleDetail andSelector:#windowSpec
|
|
78 |
Tools::LintRuleDetail new openInterface:#windowSpec
|
|
79 |
Tools::LintRuleDetail open
|
|
80 |
"
|
|
81 |
|
|
82 |
<resource: #canvas>
|
|
83 |
|
|
84 |
^
|
|
85 |
#(FullSpec
|
|
86 |
name: windowSpec
|
|
87 |
window:
|
|
88 |
(WindowSpec
|
|
89 |
label: 'SmalllintRuleDetail'
|
|
90 |
name: 'SmalllintRuleDetail'
|
|
91 |
min: (Point 10 10)
|
|
92 |
bounds: (Rectangle 0 0 300 300)
|
|
93 |
)
|
|
94 |
component:
|
|
95 |
(SpecCollection
|
|
96 |
collection: (
|
|
97 |
(LabelSpec
|
|
98 |
label: 'Name...'
|
|
99 |
name: 'Name'
|
|
100 |
layout: (LayoutFrame 0 0 0 0 0 1 30 0)
|
|
101 |
translateLabel: true
|
|
102 |
labelChannel: ruleNameAspect
|
|
103 |
adjust: left
|
|
104 |
)
|
|
105 |
(DividerSpec
|
|
106 |
name: 'Separator1'
|
|
107 |
layout: (LayoutFrame 0 0 30 0 0 1 31 0)
|
|
108 |
)
|
|
109 |
(VerticalPanelViewSpec
|
|
110 |
name: 'Panel'
|
|
111 |
layout: (LayoutFrame 0 0 32 0 0 1 0 1)
|
|
112 |
horizontalLayout: fit
|
|
113 |
verticalLayout: topSpaceFit
|
10456
|
114 |
horizontalSpace: 0
|
|
115 |
verticalSpace: 0
|
9999
|
116 |
component:
|
|
117 |
(SpecCollection
|
|
118 |
collection: (
|
|
119 |
(HTMLViewSpec
|
|
120 |
name: 'Rationale'
|
|
121 |
level: 0
|
|
122 |
hasHorizontalScrollBar: true
|
|
123 |
hasVerticalScrollBar: true
|
|
124 |
htmlText: ruleRationaleAspect
|
10456
|
125 |
extent: (Point 300 268)
|
|
126 |
postBuildCallback: setupHTMLView:
|
9999
|
127 |
)
|
|
128 |
)
|
|
129 |
|
|
130 |
)
|
|
131 |
)
|
|
132 |
)
|
|
133 |
|
|
134 |
)
|
|
135 |
)
|
|
136 |
! !
|
|
137 |
|
|
138 |
!LintRuleDetail class methodsFor:'plugIn spec'!
|
|
139 |
|
|
140 |
aspectSelectors
|
|
141 |
"This resource specification was automatically generated
|
|
142 |
by the UIPainter of ST/X."
|
|
143 |
|
|
144 |
"Do not manually edit this. If it is corrupted,
|
|
145 |
the UIPainter may not be able to read the specification."
|
|
146 |
|
|
147 |
"Return a description of exported aspects;
|
|
148 |
these can be connected to aspects of an embedding application
|
|
149 |
(if this app is embedded in a subCanvas)."
|
|
150 |
|
|
151 |
^ #(
|
|
152 |
#ruleHolder
|
|
153 |
).
|
|
154 |
|
|
155 |
! !
|
|
156 |
|
|
157 |
!LintRuleDetail methodsFor:'aspects'!
|
|
158 |
|
|
159 |
ruleHolder
|
|
160 |
"return/create the 'ruleHolder' value holder (automatically generated)"
|
|
161 |
|
|
162 |
ruleHolder isNil ifTrue:[
|
|
163 |
ruleHolder := ValueHolder new.
|
|
164 |
].
|
|
165 |
^ ruleHolder
|
|
166 |
!
|
|
167 |
|
|
168 |
ruleHolder:aValueModel
|
|
169 |
"set the 'ruleHolder' value holder (automatically generated)"
|
|
170 |
|
|
171 |
ruleHolder := aValueModel.
|
|
172 |
!
|
|
173 |
|
|
174 |
ruleNameAspect
|
|
175 |
<resource: #uiAspect>
|
|
176 |
|
|
177 |
|holder|
|
|
178 |
|
|
179 |
(holder := builder bindingAt:#ruleNameAspect) isNil ifTrue:[
|
|
180 |
holder := (AspectAdaptor forAspect: #displayString) subjectChannel: self ruleHolder.
|
|
181 |
builder aspectAt:#ruleNameAspect put:holder.
|
|
182 |
"/ holder addDependent:self.
|
|
183 |
"/ holder onChangeSend:#ruleNameAspectChanged to:self.
|
|
184 |
].
|
|
185 |
^ holder.
|
|
186 |
|
|
187 |
"Modified: / 05-02-2010 / 12:51:30 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
188 |
!
|
|
189 |
|
|
190 |
ruleRationaleAspect
|
|
191 |
<resource: #uiAspect>
|
|
192 |
|
|
193 |
|holder|
|
|
194 |
|
|
195 |
(holder := builder bindingAt:#ruleRationaleAspect) isNil ifTrue:[
|
|
196 |
holder := (AspectAdaptor forAspect: #rationale) subjectChannel: self ruleHolder.
|
|
197 |
builder aspectAt:#ruleRationaleAspect put:holder.
|
|
198 |
"/ holder addDependent:self.
|
|
199 |
"/ holder onChangeSend:#ruleRationaleAspectChanged to:self.
|
|
200 |
].
|
|
201 |
^ holder.
|
|
202 |
|
|
203 |
"Modified: / 05-02-2010 / 12:51:42 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
204 |
! !
|
|
205 |
|
10456
|
206 |
!LintRuleDetail methodsFor:'initialization'!
|
|
207 |
|
|
208 |
setupHTMLView:aView
|
|
209 |
aView painter
|
|
210 |
leftMargin:5;
|
|
211 |
topMargin:5.
|
|
212 |
|
|
213 |
"Created: / 04-08-2011 / 18:00:36 / cg"
|
|
214 |
! !
|
|
215 |
|
9999
|
216 |
!LintRuleDetail class methodsFor:'documentation'!
|
|
217 |
|
|
218 |
version_CVS
|
10456
|
219 |
^ '$Header: /cvs/stx/stx/libtool/Tools__LintRuleDetail.st,v 1.3 2011-08-04 19:20:24 cg Exp $'
|
9999
|
220 |
!
|
|
221 |
|
|
222 |
version_SVN
|
|
223 |
^ '§Id: Tools__LintRuleDetail.st 7617 2010-08-25 12:56:19Z vranyj1 §'
|
|
224 |
! !
|