UserPreferences.st
changeset 17359 61d90dff9c88
parent 17358 035642dad279
child 17397 5c84b07aca76
equal deleted inserted replaced
17358:035642dad279 17359:61d90dff9c88
   156 !
   156 !
   157 
   157 
   158 syntaxColorKeys
   158 syntaxColorKeys
   159     "returns the keys of syntax color items"
   159     "returns the keys of syntax color items"
   160 
   160 
   161     ^#(
   161     ^ self syntaxColorNamesAndKeys collectAll:[:each | each from:2]
   162         argumentIdentifierColor
   162 
   163           argumentIdentifierEmphasis
   163     "
   164         booleanConstantColor
   164      self syntaxColorKeys
   165           booleanConstantEmphasis
   165     "
   166         bracketColor
   166 
   167           bracketEmphasis
   167 "/    ^#(
   168         classVariableIdentifierColor
   168 "/        argumentIdentifierColor
   169           classVariableIdentifierEmphasis
   169 "/          argumentIdentifierEmphasis
   170         constantColor
   170 "/        booleanConstantColor
   171           constantEmphasis
   171 "/          booleanConstantEmphasis
   172         controlFlowSelectorColor
   172 "/        bracketColor
   173           controlFlowSelectorEmphasis
   173 "/          bracketEmphasis
   174         commentColor
   174 "/        classVariableIdentifierColor
   175           commentEmphasis
   175 "/          classVariableIdentifierEmphasis
   176         defaultSyntaxColor
   176 "/        constantColor
   177           defaultSyntaxEmphasis
   177 "/          constantEmphasis
   178         errorColor
   178 "/        controlFlowSelectorColor
   179         globalIdentifierColor
   179 "/          controlFlowSelectorEmphasis
   180           globalIdentifierEmphasis
   180 "/        commentColor
   181         globalClassIdentifierColor
   181 "/          commentEmphasis
   182           globalClassIdentifierEmphasis
   182 "/        defaultSyntaxColor
   183         hereColor
   183 "/          defaultSyntaxEmphasis
   184           hereEmphasis
   184 "/        errorColor
   185         identifierColor
   185 "/        globalIdentifierColor
   186           identifierEmphasis
   186 "/          globalIdentifierEmphasis
   187         instVarIdentifierColor
   187 "/        globalClassIdentifierColor
   188           instVarIdentifierEmphasis
   188 "/          globalClassIdentifierEmphasis
   189         localIdentifierColor
   189 "/        hereColor
   190           localIdentifierEmphasis
   190 "/          hereEmphasis
   191         methodSelectorColor
   191 "/        identifierColor
   192           methodSelectorEmphasis
   192 "/          identifierEmphasis
   193         poolVariableIdentifierColor
   193 "/        instVarIdentifierColor
   194           poolVariableIdentifierEmphasis
   194 "/          instVarIdentifierEmphasis
   195         returnColor
   195 "/        localIdentifierColor
   196           returnEmphasis
   196 "/          localIdentifierEmphasis
   197         selectorColor
   197 "/        methodSelectorColor
   198           selectorEmphasis
   198 "/          methodSelectorEmphasis
   199         selfColor
   199 "/        poolVariableIdentifierColor
   200           selfEmphasis
   200 "/          poolVariableIdentifierEmphasis
   201         stringColor
   201 "/        returnColor
   202           stringEmphasis
   202 "/          returnEmphasis
   203         superColor
   203 "/        selectorColor
   204           superEmphasis
   204 "/          selectorEmphasis
   205         symbolColor
   205 "/        selfColor
   206           symbolEmphasis
   206 "/          selfEmphasis
   207         thisContextColor
   207 "/        stringColor
   208           thisContextEmphasis
   208 "/          stringEmphasis
   209         unknownIdentifierColor
   209 "/        superColor
   210           unknownIdentifierEmphasis
   210 "/          superEmphasis
   211         unimplementedSelectorColor
   211 "/        symbolColor
   212           unimplementedSelectorEmphasis
   212 "/          symbolEmphasis
   213         sideEffectAssignmentBackgroundColor
   213 "/        thisContextColor
   214           sideEffectAssignmentColor
   214 "/          thisContextEmphasis
   215         colorForInstrumentedFullyCoveredCode
   215 "/        unknownIdentifierColor
   216             emphasisForInstrumentedFullyCoveredCode
   216 "/          unknownIdentifierEmphasis
   217         colorForInstrumentedPartiallyCoveredCode
   217 "/        unimplementedSelectorColor
   218             emphasisForInstrumentedPartiallyCoveredCode
   218 "/          unimplementedSelectorEmphasis
   219         colorForInstrumentedNeverCalledCode
   219 "/        sideEffectAssignmentBackgroundColor
   220             emphasisForInstrumentedNeverCalledCode
   220 "/          sideEffectAssignmentColor
   221     )
   221 "/        colorForInstrumentedFullyCoveredCode
       
   222 "/            emphasisForInstrumentedFullyCoveredCode
       
   223 "/        colorForInstrumentedPartiallyCoveredCode
       
   224 "/            emphasisForInstrumentedPartiallyCoveredCode
       
   225 "/        colorForInstrumentedNeverCalledCode
       
   226 "/            emphasisForInstrumentedNeverCalledCode
       
   227 "/    )
   222 
   228 
   223     "Modified: / 14-02-2012 / 10:17:46 / cg"
   229     "Modified: / 14-02-2012 / 10:17:46 / cg"
   224 !
   230 !
   225 
   231 
   226 syntaxColorNames
   232 syntaxColorNames
   227     "returns the syntax colors for the settings in the launcher"
   233     "returns the syntax colors for the settings in the launcher"
   228 
   234 
   229 "/ warning, the strings below are presented to the user
   235     ^ self syntaxColorNamesAndKeys collect:#first.
   230 "/ as the syntax-color boxes comboList - however, they are
   236 
   231 "/ also used (without separators) as key into myself.
   237 "/"/ warning, the strings below are presented to the user
   232 "/ Therefore, do not change the strings below.
   238 "/"/ as the syntax-color boxes comboList - however, they are
   233 "/ I know - this is bad coding ....
   239 "/"/ also used (without separators) as key into myself.
   234 
   240 "/"/ Therefore, do not change the strings below.
   235 ^#(
   241 "/"/ I know - this is bad coding ....
   236 'Argument Identifier Color'
   242 "/
   237 'Boolean Constant Color'
   243 "/^#(
   238 'Bracket Color'
   244 "/'Argument Identifier Color'
   239 'Class Variable Identifier Color'
   245 "/'Boolean Constant Color'
   240 'Collection Enumeration Selector Color'
   246 "/'Bracket Color'
   241 'Constant Color'
   247 "/'Class Variable Identifier Color'
   242 'Control Flow Selector Color'
   248 "/'Collection Enumeration Selector Color'
   243 'Comment Color'
   249 "/'Constant Color'
   244 'Debug Selector Color'
   250 "/'Control Flow Selector Color'
   245 'Error Raising Selector Color'
   251 "/'Comment Color'
   246 'Global Identifier Color'
   252 "/'Debug Selector Color'
   247 'Global Class Identifier Color'
   253 "/'Error Raising Selector Color'
   248 'Here Color'
   254 "/'Global Identifier Color'
   249 'Identifier Color'
   255 "/'Global Class Identifier Color'
   250 'InstVar Identifier Color'
   256 "/'Here Color'
   251 'Local Identifier Color'
   257 "/'Identifier Color'
   252 'Method Selector Color'
   258 "/'InstVar Identifier Color'
   253 'Pool Variable Identifier Color'
   259 "/'Local Identifier Color'
   254 'Return Color'
   260 "/'Method Selector Color'
   255 'Selector Color'
   261 "/'Pool Variable Identifier Color'
   256 'Self Color'
   262 "/'Return Color'
   257 'Side Effect Assignment Color'
   263 "/'Selector Color'
   258 'Side Effect Assignment Background Color'
   264 "/'Self Color'
   259 'String Color'
   265 "/'Side Effect Assignment Color'
   260 'Super Color'
   266 "/'Side Effect Assignment Background Color'
   261 'Symbol Color'
   267 "/'String Color'
   262 'This Context Color'
   268 "/'Super Color'
   263 'Unknown Identifier Color'
   269 "/'Symbol Color'
   264 'Unimplemented Selector Color'
   270 "/'This Context Color'
   265 'Side Effect Assignment Color'
   271 "/'Unknown Identifier Color'
   266 'Coverage: Reached Color'
   272 "/'Unimplemented Selector Color'
   267 'Coverage: Partially Reached Color'
   273 "/'Side Effect Assignment Color'
   268 'Coverage: Unreached Color'
   274 "/'Coverage: Reached Color'
   269 )
   275 "/'Coverage: Partially Reached Color'
       
   276 "/'Coverage: Unreached Color'
       
   277 "/)
   270 
   278 
   271     "Modified: / 14-02-2012 / 15:51:38 / cg"
   279     "Modified: / 14-02-2012 / 15:51:38 / cg"
       
   280 !
       
   281 
       
   282 syntaxColorNamesAndKeys
       
   283     "returns the names and keys of syntax color items"
       
   284 
       
   285     ^#(
       
   286         (
       
   287           'Argument Identifier Color'
       
   288           argumentIdentifierColor
       
   289           argumentIdentifierEmphasis
       
   290         )
       
   291         (
       
   292           'Boolean Constant Color'
       
   293           booleanConstantColor
       
   294           booleanConstantEmphasis
       
   295         )
       
   296         (
       
   297           'Bracket Color'
       
   298           bracketColor
       
   299           bracketEmphasis
       
   300         )
       
   301         (
       
   302           'Class Variable Identifier Color'
       
   303           classVariableIdentifierColor
       
   304           classVariableIdentifierEmphasis
       
   305         )
       
   306         (
       
   307           'Constant Color'
       
   308           constantColor
       
   309           constantEmphasis
       
   310         )
       
   311         (
       
   312           'Control Flow Selector Color'
       
   313           controlFlowSelectorColor
       
   314           controlFlowSelectorEmphasis
       
   315         )
       
   316         (
       
   317           'Comment Color'
       
   318           commentColor
       
   319           commentEmphasis
       
   320         )
       
   321         (
       
   322           'Collection Enumeration Selector Color'
       
   323           collectionEnumerationSelectorColor
       
   324           collectionEnumerationSelectorEmphasis
       
   325         )
       
   326         (
       
   327           'Debug Selector Color'
       
   328           debugSelectorColor
       
   329           debugSelectorEmphasis
       
   330         )
       
   331         (
       
   332           'Default Syntax Color'
       
   333           defaultSyntaxColor
       
   334           defaultSyntaxEmphasis
       
   335         )
       
   336         (
       
   337           'Error Raising Selector Color'
       
   338           errorColor
       
   339           errorEmphasis
       
   340         )
       
   341         (
       
   342           'Global Identifier Color'
       
   343           globalIdentifierColor
       
   344           globalIdentifierEmphasis
       
   345         )
       
   346         (
       
   347           'Global Class Identifier Color'
       
   348           globalClassIdentifierColor
       
   349           globalClassIdentifierEmphasis
       
   350         )
       
   351         (
       
   352           'Here Color'
       
   353           hereColor
       
   354           hereEmphasis
       
   355         )
       
   356         (
       
   357           'Identifier Color'
       
   358           identifierColor
       
   359           identifierEmphasis
       
   360         )
       
   361         (
       
   362           'InstVar Identifier Color'
       
   363           instVarIdentifierColor
       
   364           instVarIdentifierEmphasis
       
   365         )
       
   366         (
       
   367           'Local Identifier Color'
       
   368           localIdentifierColor
       
   369           localIdentifierEmphasis
       
   370         )
       
   371         (
       
   372           'Method Selector Color'
       
   373           methodSelectorColor
       
   374           methodSelectorEmphasis
       
   375         )
       
   376         (
       
   377           'Pool Variable Identifier Color'
       
   378           poolVariableIdentifierColor
       
   379           poolVariableIdentifierEmphasis
       
   380         )
       
   381         (
       
   382           'Return Color'
       
   383           returnColor
       
   384           returnEmphasis
       
   385         )
       
   386         (
       
   387           'Selector Color'
       
   388           selectorColor
       
   389           selectorEmphasis
       
   390         )
       
   391         (
       
   392           'Self Color'
       
   393           selfColor
       
   394           selfEmphasis
       
   395         )
       
   396         (
       
   397           'String Color'
       
   398           stringColor
       
   399           stringEmphasis
       
   400         )
       
   401         (
       
   402           'Super Color'
       
   403           superColor
       
   404           superEmphasis
       
   405         )
       
   406         (
       
   407           'Symbol Color'
       
   408           symbolColor
       
   409           symbolEmphasis
       
   410         )
       
   411         (
       
   412           'This Context Color'
       
   413           thisContextColor
       
   414           thisContextEmphasis
       
   415         )
       
   416         (
       
   417           'Unknown Identifier Color'
       
   418           unknownIdentifierColor
       
   419           unknownIdentifierEmphasis
       
   420         )
       
   421         (
       
   422           'Unimplemented Selector Color'
       
   423           unimplementedSelectorColor
       
   424           unimplementedSelectorEmphasis
       
   425         )
       
   426         (
       
   427           'Side Effect Assignment Color'
       
   428           sideEffectAssignmentColor
       
   429           sideEffectAssignmentColorEmphasis
       
   430         )
       
   431         (
       
   432           'Side Effect Assignment Background Color'
       
   433           sideEffectAssignmentBackgroundColor
       
   434           sideEffectAssignmentBackgroundColorEmphasis
       
   435         )
       
   436         (
       
   437           'Coverage: Reached Color'
       
   438           colorForInstrumentedFullyCoveredCode
       
   439           emphasisForInstrumentedFullyCoveredCode
       
   440         )
       
   441         (
       
   442           'Coverage: Partially Reached Color'
       
   443           colorForInstrumentedPartiallyCoveredCode
       
   444           emphasisForInstrumentedPartiallyCoveredCode
       
   445         )
       
   446         (
       
   447           'Coverage: Unreached Color'
       
   448           colorForInstrumentedNeverCalledCode
       
   449           emphasisForInstrumentedNeverCalledCode
       
   450         )
       
   451     )
       
   452 
       
   453     "Modified: / 14-02-2012 / 10:17:46 / cg"
   272 ! !
   454 ! !
   273 
   455 
   274 !UserPreferences class methodsFor:'accessing - defaults'!
   456 !UserPreferences class methodsFor:'accessing - defaults'!
   275 
   457 
   276 defaultUserSettingsFile
   458 defaultUserSettingsFile
  5013 ! !
  5195 ! !
  5014 
  5196 
  5015 !UserPreferences class methodsFor:'documentation'!
  5197 !UserPreferences class methodsFor:'documentation'!
  5016 
  5198 
  5017 version
  5199 version
  5018     ^ '$Header: /cvs/stx/stx/libbasic/UserPreferences.st,v 1.391 2015-02-01 20:44:56 cg Exp $'
  5200     ^ '$Header: /cvs/stx/stx/libbasic/UserPreferences.st,v 1.392 2015-02-01 21:54:34 cg Exp $'
  5019 !
  5201 !
  5020 
  5202 
  5021 version_CVS
  5203 version_CVS
  5022     ^ '$Header: /cvs/stx/stx/libbasic/UserPreferences.st,v 1.391 2015-02-01 20:44:56 cg Exp $'
  5204     ^ '$Header: /cvs/stx/stx/libbasic/UserPreferences.st,v 1.392 2015-02-01 21:54:34 cg Exp $'
  5023 !
  5205 !
  5024 
  5206 
  5025 version_SVN
  5207 version_SVN
  5026     ^ '$ Id: UserPreferences.st 10648 2011-06-23 15:55:10Z vranyj1  $'
  5208     ^ '$ Id: UserPreferences.st 10648 2011-06-23 15:55:10Z vranyj1  $'
  5027 ! !
  5209 ! !