Tools__LintRuleSelectionDialog.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Thu, 08 Aug 2013 11:08:29 +0100
branchjv
changeset 13330 02d6c2d848a0
parent 12432 f60cf9a3482b
parent 13282 2e628ff0e590
child 15566 184cea584be5
permissions -rw-r--r--
Merged c574d5af6621 and c248680c1ebf (branch default - CVS HEAD)
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
10002
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     1
"
10095
b2dcb3348f56 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 10002
diff changeset
     2
 Copyright (c) 2007-2010 Jan Vrany, SWING Research Group, Czech Technical University in Prague
b2dcb3348f56 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 10002
diff changeset
     3
 Copyright (c) 2009-2010 eXept Software AG
10002
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     4
10095
b2dcb3348f56 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 10002
diff changeset
     5
 Permission is hereby granted, free of charge, to any person
b2dcb3348f56 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 10002
diff changeset
     6
 obtaining a copy of this software and associated documentation
b2dcb3348f56 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 10002
diff changeset
     7
 files (the 'Software'), to deal in the Software without
b2dcb3348f56 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 10002
diff changeset
     8
 restriction, including without limitation the rights to use,
b2dcb3348f56 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 10002
diff changeset
     9
 copy, modify, merge, publish, distribute, sublicense, and/or sell
b2dcb3348f56 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 10002
diff changeset
    10
 copies of the Software, and to permit persons to whom the
b2dcb3348f56 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 10002
diff changeset
    11
 Software is furnished to do so, subject to the following
b2dcb3348f56 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 10002
diff changeset
    12
 conditions:
b2dcb3348f56 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 10002
diff changeset
    13
b2dcb3348f56 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 10002
diff changeset
    14
 The above copyright notice and this permission notice shall be
b2dcb3348f56 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 10002
diff changeset
    15
 included in all copies or substantial portions of the Software.
b2dcb3348f56 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 10002
diff changeset
    16
b2dcb3348f56 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 10002
diff changeset
    17
 THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
b2dcb3348f56 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 10002
diff changeset
    18
 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
b2dcb3348f56 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 10002
diff changeset
    19
 OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
b2dcb3348f56 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 10002
diff changeset
    20
 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
b2dcb3348f56 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 10002
diff changeset
    21
 HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
b2dcb3348f56 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 10002
diff changeset
    22
 WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
b2dcb3348f56 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 10002
diff changeset
    23
 FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
b2dcb3348f56 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 10002
diff changeset
    24
 OTHER DEALINGS IN THE SOFTWARE.
10002
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    25
"
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    26
"{ Package: 'stx:libtool' }"
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    27
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    28
"{ NameSpace: Tools }"
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    29
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    30
SimpleDialog subclass:#LintRuleSelectionDialog
12431
9f0c59c742d5 Added LintRuleSettingsApplication and LintRuleEditDialog to define user-defined rule sets.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12401
diff changeset
    31
	instanceVariableNames:'selectionHolder variablePanel relativeCorners detailsShown
12432
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
    32
		listSelection rulesetList rulesetHolder rulesetNameList
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
    33
		rulesetNameHolder'
10002
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    34
	classVariableNames:''
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    35
	poolDictionaries:''
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    36
	category:'Interface-Lint'
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    37
!
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    38
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    39
!LintRuleSelectionDialog class methodsFor:'documentation'!
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    40
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    41
copyright
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    42
"
10095
b2dcb3348f56 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 10002
diff changeset
    43
 Copyright (c) 2007-2010 Jan Vrany, SWING Research Group, Czech Technical University in Prague
b2dcb3348f56 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 10002
diff changeset
    44
 Copyright (c) 2009-2010 eXept Software AG
b2dcb3348f56 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 10002
diff changeset
    45
b2dcb3348f56 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 10002
diff changeset
    46
 Permission is hereby granted, free of charge, to any person
b2dcb3348f56 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 10002
diff changeset
    47
 obtaining a copy of this software and associated documentation
b2dcb3348f56 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 10002
diff changeset
    48
 files (the 'Software'), to deal in the Software without
b2dcb3348f56 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 10002
diff changeset
    49
 restriction, including without limitation the rights to use,
b2dcb3348f56 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 10002
diff changeset
    50
 copy, modify, merge, publish, distribute, sublicense, and/or sell
b2dcb3348f56 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 10002
diff changeset
    51
 copies of the Software, and to permit persons to whom the
b2dcb3348f56 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 10002
diff changeset
    52
 Software is furnished to do so, subject to the following
b2dcb3348f56 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 10002
diff changeset
    53
 conditions:
10002
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    54
10095
b2dcb3348f56 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 10002
diff changeset
    55
 The above copyright notice and this permission notice shall be
b2dcb3348f56 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 10002
diff changeset
    56
 included in all copies or substantial portions of the Software.
b2dcb3348f56 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 10002
diff changeset
    57
b2dcb3348f56 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 10002
diff changeset
    58
 THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
b2dcb3348f56 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 10002
diff changeset
    59
 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
b2dcb3348f56 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 10002
diff changeset
    60
 OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
b2dcb3348f56 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 10002
diff changeset
    61
 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
b2dcb3348f56 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 10002
diff changeset
    62
 HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
b2dcb3348f56 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 10002
diff changeset
    63
 WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
b2dcb3348f56 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 10002
diff changeset
    64
 FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
b2dcb3348f56 changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 10002
diff changeset
    65
 OTHER DEALINGS IN THE SOFTWARE.
10002
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    66
"
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    67
!
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    68
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    69
documentation
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    70
"
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    71
    documentation to be added.
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    72
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    73
    [author:]
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    74
        Jan Vrany (jv@neso)
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    75
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    76
    [instance variables:]
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    77
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    78
    [class variables:]
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    79
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    80
    [see also:]
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    81
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    82
"
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    83
!
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    84
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    85
examples
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    86
"
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    87
  Starting the application:
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    88
                                                                [exBegin]
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    89
    Tools::LintRuleSelectionDialog open
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    90
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    91
                                                                [exEnd]
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    92
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    93
  more examples to be added:
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    94
                                                                [exBegin]
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    95
    ... add code fragment for 
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    96
    ... executable example here ...
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    97
                                                                [exEnd]
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    98
"
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    99
! !
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   100
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   101
!LintRuleSelectionDialog class methodsFor:'interface specs'!
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   102
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   103
windowSpec
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   104
    "This resource specification was automatically generated
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   105
     by the UIPainter of ST/X."
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   106
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   107
    "Do not manually edit this!! If it is corrupted,
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   108
     the UIPainter may not be able to read the specification."
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   109
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   110
    "
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   111
     UIPainter new openOnClass:Tools::LintRuleSelectionDialog andSelector:#windowSpec
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   112
     Tools::LintRuleSelectionDialog new openInterface:#windowSpec
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   113
     Tools::LintRuleSelectionDialog open
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   114
    "
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   115
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   116
    <resource: #canvas>
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   117
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   118
    ^ 
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   119
     #(FullSpec
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   120
        name: windowSpec
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   121
        window: 
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   122
       (WindowSpec
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   123
          label: 'Select Lint Rules'
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   124
          name: 'Select Lint Rules'
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   125
          min: (Point 10 10)
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   126
          bounds: (Rectangle 0 0 600 400)
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   127
        )
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   128
        component: 
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   129
       (SpecCollection
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   130
          collection: (
12432
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   131
           (ComboListSpec
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   132
              name: 'ComboBox1'
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   133
              layout: (LayoutFrame 0 0 0 0 0 1 25 0)
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   134
              model: rulesetNameHolder
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   135
              acceptOnPointerLeave: false
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   136
              comboList: rulesetNameList
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   137
            )
11298
1724964c25a4 fix: visibility switch and rationale did not work
Claus Gittinger <cg@exept.de>
parents: 10095
diff changeset
   138
           (VariableVerticalPanelSpec
1724964c25a4 fix: visibility switch and rationale did not work
Claus Gittinger <cg@exept.de>
parents: 10095
diff changeset
   139
              name: 'VariableVerticalPanel1'
12432
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   140
              layout: (LayoutFrame 0 0 30 0 0 1 -30 1)
10002
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   141
              component: 
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   142
             (SpecCollection
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   143
                collection: (
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   144
                 (SubCanvasSpec
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   145
                    name: 'RuleList'
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   146
                    hasHorizontalScrollBar: false
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   147
                    hasVerticalScrollBar: false
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   148
                    majorKey: #'Tools::HierarchicalLintRuleList'
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   149
                    subAspectHolders: 
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   150
                   (Array
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   151
                      
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   152
                     (SubChannelInfoSpec
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   153
                        subAspect: inGeneratorHolder
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   154
                        aspect: allRulesHolder
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   155
                      ) 
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   156
                     (SubChannelInfoSpec
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   157
                        subAspect: listSelection
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   158
                        aspect: listSelection
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   159
                      )
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   160
                      
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   161
                     (SubChannelInfoSpec
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   162
                        subAspect: modeHolder
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   163
                        aspect: modeHolder
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   164
                      ) 
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   165
                     (SubChannelInfoSpec
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   166
                        subAspect: outGeneratorHolder
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   167
                        aspect: selectedRulesHolder
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   168
                      )
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   169
                      
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   170
                     (SubChannelInfoSpec
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   171
                        subAspect: selectionHolder
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   172
                        aspect: selectionHolder
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   173
                      )
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   174
                    )
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   175
                    createNewApplication: true
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   176
                    createNewBuilder: true
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   177
                  )
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   178
                 (SubCanvasSpec
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   179
                    name: 'RuleDesc'
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   180
                    hasHorizontalScrollBar: false
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   181
                    hasVerticalScrollBar: false
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   182
                    majorKey: #'Tools::LintRuleDetail'
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   183
                    subAspectHolders: 
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   184
                   (Array
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   185
                      
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   186
                     (SubChannelInfoSpec
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   187
                        subAspect: ruleHolder
11298
1724964c25a4 fix: visibility switch and rationale did not work
Claus Gittinger <cg@exept.de>
parents: 10095
diff changeset
   188
                        aspect: listSelection
10002
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   189
                      )
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   190
                    )
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   191
                    createNewApplication: true
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   192
                    createNewBuilder: true
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   193
                  )
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   194
                 )
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   195
               
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   196
              )
11298
1724964c25a4 fix: visibility switch and rationale did not work
Claus Gittinger <cg@exept.de>
parents: 10095
diff changeset
   197
              handles: (Any 0.808108108108108 1.0)
10002
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   198
            )
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   199
           (HorizontalPanelViewSpec
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   200
              name: 'BottonPanel'
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   201
              layout: (LayoutFrame 0 0 -30 1 0 1 0 1)
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   202
              horizontalLayout: fitSpace
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   203
              verticalLayout: center
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   204
              horizontalSpace: 3
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   205
              verticalSpace: 3
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   206
              reverseOrderIfOKAtLeft: true
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   207
              component: 
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   208
             (SpecCollection
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   209
                collection: (
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   210
                 (ActionButtonSpec
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   211
                    label: 'Cancel'
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   212
                    name: 'CancelButton'
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   213
                    translateLabel: true
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   214
                    model: doCancel
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   215
                    extent: (Point 295 22)
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   216
                  )
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   217
                 (ActionButtonSpec
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   218
                    label: 'OK'
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   219
                    name: 'OKButton'
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   220
                    translateLabel: true
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   221
                    model: doAccept
11298
1724964c25a4 fix: visibility switch and rationale did not work
Claus Gittinger <cg@exept.de>
parents: 10095
diff changeset
   222
                    isDefault: true
1724964c25a4 fix: visibility switch and rationale did not work
Claus Gittinger <cg@exept.de>
parents: 10095
diff changeset
   223
                    defaultable: true
10002
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   224
                    extent: (Point 296 22)
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   225
                  )
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   226
                 )
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   227
               
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   228
              )
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   229
            )
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   230
           )
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   231
         
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   232
        )
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   233
      )
11298
1724964c25a4 fix: visibility switch and rationale did not work
Claus Gittinger <cg@exept.de>
parents: 10095
diff changeset
   234
12432
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   235
    "Modified: / 27-02-2013 / 23:23:58 / Jan Vrany <jan.vrany@fit.cvut.cz>"
10002
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   236
! !
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   237
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   238
!LintRuleSelectionDialog methodsFor:'accessing'!
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   239
12432
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   240
ruleset: ruleset
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   241
    self rulesetHolder value: ruleset
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   242
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   243
    "Created: / 27-02-2013 / 23:36:18 / Jan Vrany <jan.vrany@fit.cvut.cz>"
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   244
!
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   245
10002
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   246
selection
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   247
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   248
    ^self selectionHolder value
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   249
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   250
    "Created: / 25-08-2010 / 14:10:03 / Jan Vrany <enter your email here>"
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   251
!
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   252
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   253
selection: anObject
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   254
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   255
    self selectionHolder value: anObject
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   256
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   257
    "Created: / 25-08-2010 / 14:09:40 / Jan Vrany <enter your email here>"
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   258
!
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   259
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   260
selectionAsRule
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   261
12432
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   262
    self rulesetHolder value rules: self selection.
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   263
    ^self rulesetHolder value.
10002
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   264
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   265
    "Created: / 25-08-2010 / 14:10:58 / Jan Vrany <enter your email here>"
12432
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   266
    "Modified: / 27-02-2013 / 23:40:39 / Jan Vrany <jan.vrany@fit.cvut.cz>"
10002
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   267
! !
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   268
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   269
!LintRuleSelectionDialog methodsFor:'actions'!
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   270
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   271
hideResultView
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   272
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   273
    detailsShown == true ifFalse:[^self].
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   274
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   275
    variablePanel shown ifFalse:[^self].
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   276
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   277
    relativeCorners := variablePanel relativeCorners.
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   278
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   279
    variablePanel
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   280
        relativeCorners:#( 0.99 1.0 );
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   281
        resizeSubviews.
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   282
    detailsShown := false.
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   283
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   284
    "Created: / 10-02-2007 / 11:39:10 / janfrog"
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   285
    "Modified: / 24-07-2010 / 15:30:38 / Jan Vrany <jan.vrany@fit.cvut.cz>"
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   286
!
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   287
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   288
showResultView
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   289
    detailsShown == true ifTrue:[^self].
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   290
    variablePanel
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   291
        relativeCorners:relativeCorners ? #(0.5 1.0);
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   292
        resizeSubviews.
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   293
    detailsShown := true.
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   294
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   295
    "Created: / 10-02-2007 / 11:38:26 / janfrog"
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   296
    "Modified: / 24-07-2010 / 15:30:10 / Jan Vrany <jan.vrany@fit.cvut.cz>"
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   297
! !
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   298
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   299
!LintRuleSelectionDialog methodsFor:'aspects'!
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   300
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   301
allRulesHolder
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   302
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   303
    ^[(RBCompositeLintRule allRules) rules]
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   304
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   305
    "Created: / 15-04-2010 / 20:09:09 / Jan Vrany <jan.vrany@fit.cvut.cz>"
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   306
!
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   307
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   308
listSelection
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   309
    "return/create the 'listSelection' value holder (automatically generated)"
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   310
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   311
    listSelection isNil ifTrue:[
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   312
        listSelection := ValueHolder new.
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   313
    ].
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   314
    ^ listSelection
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   315
!
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   316
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   317
listSelection:something
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   318
    "set the 'listSelection' value holder (automatically generated)"
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   319
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   320
    listSelection := something.
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   321
!
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   322
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   323
modeHolder
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   324
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   325
    ^[#select]
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   326
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   327
    "Created: / 15-04-2010 / 20:13:51 / Jan Vrany <jan.vrany@fit.cvut.cz>"
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   328
!
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   329
12432
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   330
rulesetHolder
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   331
    "return/create the 'rulesetHolder' value holder (automatically generated)"
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   332
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   333
    rulesetHolder isNil ifTrue:[
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   334
        rulesetHolder := ValueHolder new.
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   335
        rulesetHolder addDependent:self.
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   336
    ].
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   337
    ^ rulesetHolder
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   338
!
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   339
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   340
rulesetHolder:something
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   341
    "set the 'rulesetHolder' value holder (automatically generated)"
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   342
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   343
    |oldValue newValue|
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   344
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   345
    rulesetHolder notNil ifTrue:[
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   346
        oldValue := rulesetHolder value.
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   347
        rulesetHolder removeDependent:self.
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   348
    ].
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   349
    rulesetHolder := something.
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   350
    rulesetHolder notNil ifTrue:[
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   351
        rulesetHolder addDependent:self.
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   352
    ].
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   353
    newValue := rulesetHolder value.
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   354
    oldValue ~~ newValue ifTrue:[
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   355
        self update:#value with:newValue from:rulesetHolder.
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   356
    ].
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   357
!
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   358
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   359
rulesetList
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   360
    "return/create the 'rulesetList' value holder (automatically generated)"
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   361
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   362
    rulesetList isNil ifTrue:[
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   363
        rulesetList := RBCompositeLintRule rulesets asList.
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   364
        rulesetList addDependent:self.
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   365
    ].
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   366
    ^ rulesetList
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   367
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   368
    "Modified: / 27-02-2013 / 23:07:28 / Jan Vrany <jan.vrany@fit.cvut.cz>"
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   369
!
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   370
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   371
rulesetList:something
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   372
    "set the 'rulesetList' value holder (automatically generated)"
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   373
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   374
    |oldValue newValue|
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   375
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   376
    rulesetList notNil ifTrue:[
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   377
        oldValue := rulesetList value.
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   378
        rulesetList removeDependent:self.
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   379
    ].
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   380
    rulesetList := something.
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   381
    rulesetList notNil ifTrue:[
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   382
        rulesetList addDependent:self.
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   383
    ].
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   384
    newValue := rulesetList value.
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   385
    oldValue ~~ newValue ifTrue:[
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   386
        self update:#value with:newValue from:rulesetList.
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   387
    ].
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   388
!
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   389
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   390
rulesetNameHolder
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   391
    "return/create the 'rulesetNameHolder' value holder (automatically generated)"
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   392
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   393
    rulesetNameHolder isNil ifTrue:[
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   394
        rulesetNameHolder := self rulesetHolder value name asValue.
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   395
        rulesetNameHolder addDependent:self.
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   396
    ].
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   397
    ^ rulesetNameHolder
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   398
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   399
    "Modified: / 27-02-2013 / 23:42:31 / Jan Vrany <jan.vrany@fit.cvut.cz>"
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   400
!
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   401
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   402
rulesetNameHolder:something
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   403
    "set the 'rulesetNameHolder' value holder (automatically generated)"
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   404
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   405
    |oldValue newValue|
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   406
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   407
    rulesetNameHolder notNil ifTrue:[
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   408
        oldValue := rulesetNameHolder value.
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   409
        rulesetNameHolder removeDependent:self.
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   410
    ].
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   411
    rulesetNameHolder := something.
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   412
    rulesetNameHolder notNil ifTrue:[
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   413
        rulesetNameHolder addDependent:self.
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   414
    ].
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   415
    newValue := rulesetNameHolder value.
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   416
    oldValue ~~ newValue ifTrue:[
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   417
        self update:#value with:newValue from:rulesetNameHolder.
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   418
    ].
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   419
!
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   420
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   421
rulesetNameList
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   422
    "return/create the 'rulesetNameList' value holder (automatically generated)"
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   423
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   424
    rulesetNameList isNil ifTrue:[
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   425
        rulesetNameList := ValueHolder new.
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   426
    ].
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   427
    ^ rulesetNameList
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   428
!
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   429
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   430
rulesetNameList:something
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   431
    "set the 'rulesetNameList' value holder (automatically generated)"
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   432
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   433
    rulesetNameList := something.
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   434
!
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   435
10002
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   436
selectionHolder
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   437
    "return/create the 'selectionHolder' value holder (automatically generated)"
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   438
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   439
    selectionHolder isNil ifTrue:[
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   440
        selectionHolder := ValueHolder new.
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   441
    ].
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   442
    ^ selectionHolder
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   443
! !
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   444
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   445
!LintRuleSelectionDialog methodsFor:'callbacks - post build'!
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   446
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   447
postBuildVariablePanel: aPanel
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   448
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   449
    variablePanel := aPanel.
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   450
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   451
    "Created: / 24-07-2010 / 15:05:21 / Jan Vrany <jan.vrany@fit.cvut.cz>"
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   452
! !
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   453
12432
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   454
!LintRuleSelectionDialog methodsFor:'change & update'!
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   455
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   456
update:something with:aParameter from:changedObject
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   457
    "Invoked when an object that I depend upon sends a change notification."
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   458
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   459
    "stub code automatically generated - please change as required"
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   460
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   461
    changedObject == rulesetList ifTrue:[
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   462
        self updateRulesetNameList.
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   463
         ^ self.
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   464
    ].
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   465
    changedObject == rulesetHolder ifTrue:[
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   466
        self rulesetNameHolder value: self rulesetHolder value name.
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   467
        self selection: self rulesetHolder value flattened.
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   468
         ^ self.
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   469
    ].
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   470
    changedObject == rulesetNameHolder ifTrue:[
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   471
        self updateRulesetHolder.
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   472
         ^ self.
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   473
    ].
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   474
    super update:something with:aParameter from:changedObject
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   475
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   476
    "Modified: / 27-02-2013 / 23:27:44 / Jan Vrany <jan.vrany@fit.cvut.cz>"
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   477
!
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   478
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   479
updateRulesetHolder
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   480
    | ruleset |    
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   481
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   482
    self rulesetHolder value name == self rulesetNameHolder value ifTrue:[
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   483
        ^self.
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   484
    ].
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   485
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   486
    (self rulesetNameList value notNil and:[self rulesetNameHolder value asString = self rulesetNameList value last asString]) ifTrue:[
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   487
        ruleset := RBCompositeLintRule new.
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   488
        ruleset name: ('New Rule Set ' , (self rulesetList size + 1) printString).
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   489
        self rulesetList add: ruleset.
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   490
        RBCompositeLintRule rulesets add: ruleset.
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   491
        self rulesetNameHolder value: ruleset name.
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   492
    ] ifFalse:[
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   493
        | idx |
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   494
        idx := self rulesetNameList value indexOf: self rulesetNameHolder value.
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   495
        ruleset := self rulesetList at: idx.
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   496
    ].
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   497
    self rulesetHolder value: ruleset.
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   498
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   499
    "Created: / 27-02-2013 / 23:15:27 / Jan Vrany <jan.vrany@fit.cvut.cz>"
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   500
!
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   501
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   502
updateRulesetNameList
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   503
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   504
    self rulesetNameList value: 
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   505
        ((self rulesetList collect:[:e|e name])
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   506
            add: 'New Ruleset...' asText allItalic;
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   507
            yourself)
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   508
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   509
    "Created: / 27-02-2013 / 23:08:22 / Jan Vrany <jan.vrany@fit.cvut.cz>"
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   510
! !
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   511
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   512
!LintRuleSelectionDialog methodsFor:'hooks'!
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   513
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   514
commonPostBuild
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   515
    self updateRulesetNameList.
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   516
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   517
    "Created: / 27-02-2013 / 23:10:54 / Jan Vrany <jan.vrany@fit.cvut.cz>"
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   518
! !
f60cf9a3482b Lint Rule selection dialog improved.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12431
diff changeset
   519
10002
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   520
!LintRuleSelectionDialog class methodsFor:'documentation'!
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   521
13282
2e628ff0e590 class: Tools::LintRuleSelectionDialog
Claus Gittinger <cg@exept.de>
parents: 13280
diff changeset
   522
version
2e628ff0e590 class: Tools::LintRuleSelectionDialog
Claus Gittinger <cg@exept.de>
parents: 13280
diff changeset
   523
    ^ '$Header: /cvs/stx/stx/libtool/Tools__LintRuleSelectionDialog.st,v 1.5 2013-07-31 16:08:52 cg Exp $'
2e628ff0e590 class: Tools::LintRuleSelectionDialog
Claus Gittinger <cg@exept.de>
parents: 13280
diff changeset
   524
!
2e628ff0e590 class: Tools::LintRuleSelectionDialog
Claus Gittinger <cg@exept.de>
parents: 13280
diff changeset
   525
10002
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   526
version_CVS
13282
2e628ff0e590 class: Tools::LintRuleSelectionDialog
Claus Gittinger <cg@exept.de>
parents: 13280
diff changeset
   527
    ^ '$Header: /cvs/stx/stx/libtool/Tools__LintRuleSelectionDialog.st,v 1.5 2013-07-31 16:08:52 cg Exp $'
10002
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   528
!
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   529
12431
9f0c59c742d5 Added LintRuleSettingsApplication and LintRuleEditDialog to define user-defined rule sets.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12401
diff changeset
   530
version_HG
9f0c59c742d5 Added LintRuleSettingsApplication and LintRuleEditDialog to define user-defined rule sets.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12401
diff changeset
   531
9f0c59c742d5 Added LintRuleSettingsApplication and LintRuleEditDialog to define user-defined rule sets.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12401
diff changeset
   532
    ^ '$Changeset: <not expanded> $'
9f0c59c742d5 Added LintRuleSettingsApplication and LintRuleEditDialog to define user-defined rule sets.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12401
diff changeset
   533
!
9f0c59c742d5 Added LintRuleSettingsApplication and LintRuleEditDialog to define user-defined rule sets.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 12401
diff changeset
   534
10002
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   535
version_SVN
13282
2e628ff0e590 class: Tools::LintRuleSelectionDialog
Claus Gittinger <cg@exept.de>
parents: 13280
diff changeset
   536
    ^ '$Id: Tools__LintRuleSelectionDialog.st,v 1.5 2013-07-31 16:08:52 cg Exp $'
10002
f56cd065ae3c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   537
! !
13280
90dde9790cfc class: Tools::LintRuleSelectionDialog
Claus Gittinger <cg@exept.de>
parents: 11298
diff changeset
   538