eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'Tools::LintRuleList':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: LintRuleList (in Tools)


Inheritance:

   Object
   |
   +--Model
      |
      +--ApplicationModel
         |
         +--Tools::NavigatorModel
            |
            +--Tools::BrowserList
               |
               +--Tools::LintRuleList
                  |
                  +--Tools::HierarchicalLintRuleList

Package:
stx:libtool
Category:
Interface-Lint
Version:
rev: 1.40 date: 2019/07/31 15:40:43
user: cg
file: Tools__LintRuleList.st directory: libtool
module: stx stc-classLibrary: libtool
Author:
Jan Vrany <jan.vrany@fit.cvut.cz>

Description:


Embeddable list to display a set of SmallLint rules.
(this is embedded in the browser when showing lint check outcomes)

Supports 3 modes (controlled by modeHolder)
    #display            - only display given set of rules.
    #displaySelection   - display set of rules and indicate which one is selected
                          by check mark. Does NOT ALLOW to change selection
                          (add remove tools)
    #select             - display set of rules and DO ALLOW to change the selection
                          (add / remove rules) by clicking to check icon     


[instance variables:]

[class variables:]


Related information:



Class protocol:

interface specs
o  windowSpec
This resource specification was automatically generated
by the UIPainter of ST/X.

usage example(s):

     UIPainter new openOnClass:Tools::LintRuleList andSelector:#windowSpec
     Tools::LintRuleList new openInterface:#windowSpec
     Tools::LintRuleList open

menu specs
o  menu
This resource specification was automatically generated
by the MenuEditor of ST/X.

usage example(s):

     MenuEditor new openOnClass:Tools::LintRuleList andSelector:#menu
     (Menu new fromLiteralArrayEncoding:(Tools::LintRuleList menu)) startUp

plugIn spec
o  aspectSelectors
This resource specification was automatically generated
by the UIPainter of ST/X.


Instance protocol:

accessing
o  mode

o  selection

o  selection: aCollectionOrNil

aspects
o  filterHolder
return/create the 'filterHolder' value holder (automatically generated)

o  filterHolder: something
set the 'filterHolder' value holder (automatically generated)

o  listHolder
return/create the 'ruleList' value holder (automatically generated)

o  listSelection
return/create the 'listSelection' value holder (automatically generated)

o  listSelection: something
set the 'listSelection' value holder (automatically generated)

o  modeHolder
the mode - can run in select or in display modes.
select is to choose a set of rules;
display for presentation of results (in a browser).
See documentation for details

o  modeHolder: aValueModel
the mode - can run in select or in display modes.
select is to choose a set of rules;
display for presentation of results (in a browser).
See documentation for details

o  selectedLintRules

o  selectedLintRules: anObject

change & update
o  delayedUpdate: something with: aParameter from: changedObject
Invoked when an object that I depend upon sends a change notification.

o  selectionChanged
listView invalidate

event processing
o  buttonPress: button x: x y: y view: aView

o  handlesButtonPress: button inView: aView

generators
o  makeGenerator
classes removed (in the meanwhile), but still referenced by name in the lintResults

hooks
o  commonPostOpen
(comment from inherited method)
self breakPoint:#cg.

o  postBuildList: aView
I want to see the events of the list

initialization
o  initialize
self selection: Set new.

menu actions
o  menuBrowseRuleClass

o  menuInspectRule

o  runRuleAgain
self updateList.

private
o  listEntryFor: anRBLintRule

o  makeDependent
nothing to do

o  makeIndependent
nothing to do

o  rules: rules includes: rule

o  setListValid: aBoolean
listValid ifTrue:[

o  updateList
newList sort:[:a :b | a name < b name].

queries
o  supportsSearch

selection
o  selectionAdd: rule

o  selectionIncludes: rule

o  selectionRemove: rule


Private classes:

    ListEntry

Examples:


Starting the application:
  Tools::LintRuleList open

more examples to be added:
  ... add code fragment for 
  ... executable example here ...


ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Sat, 20 Apr 2024 10:25:26 GMT