Tools__NewSystemBrowser.st
branchjv
changeset 12230 5568874ba4cf
parent 12229 5c129972b1fd
child 12236 8ec3d6230b65
equal deleted inserted replaced
12229:5c129972b1fd 12230:5568874ba4cf
    41 		LastBaseVersionTag DefaultShowPseudoProtocols
    41 		LastBaseVersionTag DefaultShowPseudoProtocols
    42 		DefaultShowMultitabMode LastRenamedOld LastRenamedNew
    42 		DefaultShowMultitabMode LastRenamedOld LastRenamedNew
    43 		LastImportedPackage LastLintRules NewNavigationHistory
    43 		LastImportedPackage LastLintRules NewNavigationHistory
    44 		DefaultSortByNameAndInheritance LastLiteralReplacementType
    44 		DefaultSortByNameAndInheritance LastLiteralReplacementType
    45 		LastLiteralReplacementNewName LastLiteralReplacementOldLiteral
    45 		LastLiteralReplacementNewName LastLiteralReplacementOldLiteral
    46 		LastNewProjectType'
    46 		LastNewProjectType DefaultShowSyntheticMethods'
    47 	poolDictionaries:''
    47 	poolDictionaries:''
    48 	category:'Interface-Browsers-New'
    48 	category:'Interface-Browsers-New'
    49 !
    49 !
    50 
    50 
    51 Object subclass:#ClassCompletionEntry
    51 Object subclass:#ClassCompletionEntry
  3325                       ) 
  3325                       ) 
  3326                      (SubChannelInfoSpec
  3326                      (SubChannelInfoSpec
  3327                         subAspect: showMethodTypeIcon
  3327                         subAspect: showMethodTypeIcon
  3328                         aspect: showMethodTypeIcon
  3328                         aspect: showMethodTypeIcon
  3329                       )
  3329                       )
  3330                       
  3330                      (SubChannelInfoSpec
       
  3331                         subAspect: showSyntheticMethods
       
  3332                         aspect: showSyntheticMethods
       
  3333                       )
       
  3334 
       
  3335 
  3331                      (SubChannelInfoSpec
  3336                      (SubChannelInfoSpec
  3332                         subAspect: filterClassVars
  3337                         subAspect: filterClassVars
  3333                         aspect: filterClassVars
  3338                         aspect: filterClassVars
  3334                       )
  3339                       )
  3335                     )
  3340                     )
  3346          
  3351          
  3347         )
  3352         )
  3348       )
  3353       )
  3349 
  3354 
  3350     "Modified: / 17-08-2011 / 13:57:39 / cg"
  3355     "Modified: / 17-08-2011 / 13:57:39 / cg"
       
  3356     "Modified: / 13-04-2012 / 16:13:15 / Jan Vrany <jan.vrany@fit.cvut.cz>"
  3351 !
  3357 !
  3352 
  3358 
  3353 protocolAndMethodListSpec_JustMethodList
  3359 protocolAndMethodListSpec_JustMethodList
  3354     "This resource specification was automatically generated
  3360     "This resource specification was automatically generated
  3355      by the UIPainter of ST/X."
  3361      by the UIPainter of ST/X."
  3434                 
  3440                 
  3435                (SubChannelInfoSpec
  3441                (SubChannelInfoSpec
  3436                   subAspect: showMethodComplexity
  3442                   subAspect: showMethodComplexity
  3437                   aspect: showMethodComplexity
  3443                   aspect: showMethodComplexity
  3438                 ) 
  3444                 ) 
       
  3445                 (SubChannelInfoSpec
       
  3446                     subAspect: showSyntheticMethods
       
  3447                     aspect: showSyntheticMethods
       
  3448                   )
  3439                (SubChannelInfoSpec
  3449                (SubChannelInfoSpec
  3440                   subAspect: showMethodTypeIcon
  3450                   subAspect: showMethodTypeIcon
  3441                   aspect: showMethodTypeIcon
  3451                   aspect: showMethodTypeIcon
  3442                 )
  3452                 )
  3443                 
  3453                 
  3454          
  3464          
  3455         )
  3465         )
  3456       )
  3466       )
  3457 
  3467 
  3458     "Modified: / 17-08-2011 / 13:57:59 / cg"
  3468     "Modified: / 17-08-2011 / 13:57:59 / cg"
       
  3469     "Modified (format): / 13-04-2012 / 18:00:33 / Jan Vrany <jan.vrany@fit.cvut.cz>"
  3459 !
  3470 !
  3460 
  3471 
  3461 searchSpec
  3472 searchSpec
  3462 
  3473 
  3463     ^self searchSpec_live
  3474     ^self searchSpec_live
 12243      by the MenuEditor of ST/X."
 12254      by the MenuEditor of ST/X."
 12244 
 12255 
 12245     "Do not manually edit this!! If it is corrupted,
 12256     "Do not manually edit this!! If it is corrupted,
 12246      the MenuEditor may not be able to read the specification."
 12257      the MenuEditor may not be able to read the specification."
 12247 
 12258 
       
 12259 
 12248     "
 12260     "
 12249      MenuEditor new openOnClass:Tools::NewSystemBrowser andSelector:#viewMenuCommonSlice
 12261      MenuEditor new openOnClass:Tools::NewSystemBrowser andSelector:#viewMenuCommonSlice
 12250      (Menu new fromLiteralArrayEncoding:(Tools::NewSystemBrowser viewMenuCommonSlice)) startUp
 12262      (Menu new fromLiteralArrayEncoding:(Tools::NewSystemBrowser viewMenuCommonSlice)) startUp
 12251     "
 12263     "
 12252 
 12264 
 12412                   label: 'Do not Show Inherited Methods'
 12424                   label: 'Do not Show Inherited Methods'
 12413                   translateLabel: true
 12425                   translateLabel: true
 12414                   hideMenuOnActivated: false
 12426                   hideMenuOnActivated: false
 12415                   choice: methodVisibilityHolder
 12427                   choice: methodVisibilityHolder
 12416                   choiceValue: class
 12428                   choiceValue: class
       
 12429                 )
       
 12430                (MenuItem
       
 12431                   label: '-'
       
 12432                 )
       
 12433                (MenuItem
       
 12434                   label: 'Show Synthetic Methods'
       
 12435                   translateLabel: true
       
 12436                   hideMenuOnActivated: false
       
 12437                   indication: showSyntheticMethods
 12417                 )
 12438                 )
 12418                (MenuItem
 12439                (MenuItem
 12419                   label: '-'
 12440                   label: '-'
 12420                 )
 12441                 )
 12421                (MenuItem
 12442                (MenuItem
 16083       )
 16104       )
 16084 
 16105 
 16085     "Modified: / 29-09-2006 / 16:11:08 / cg"
 16106     "Modified: / 29-09-2006 / 16:11:08 / cg"
 16086 ! !
 16107 ! !
 16087 
 16108 
       
 16109 
 16088 !NewSystemBrowser class methodsFor:'menu specs-popup'!
 16110 !NewSystemBrowser class methodsFor:'menu specs-popup'!
 16089 
 16111 
 16090 categoryPopUpMenu
 16112 categoryPopUpMenu
 16091     "return the popUpMenu for the class-category-list view"
 16113     "return the popUpMenu for the class-category-list view"
 16092 
 16114 
 17863     ^ self navigationState variableFilter
 17885     ^ self navigationState variableFilter
 17864 
 17886 
 17865     "Created: / 24.2.2000 / 23:28:06 / cg"
 17887     "Created: / 24.2.2000 / 23:28:06 / cg"
 17866 ! !
 17888 ! !
 17867 
 17889 
       
 17890 
 17868 !NewSystemBrowser methodsFor:'aspects-organization'!
 17891 !NewSystemBrowser methodsFor:'aspects-organization'!
 17869 
 17892 
 17870 categoryMenuVisible
 17893 categoryMenuVisible
 17871     |holder|
 17894     |holder|
 17872 
 17895 
 18696         ].
 18719         ].
 18697     ].
 18720     ].
 18698     ^ holder
 18721     ^ holder
 18699 !
 18722 !
 18700 
 18723 
       
 18724 showSyntheticMethods
       
 18725     |holder|
       
 18726 
       
 18727     (holder := builder bindingAt:#showSyntheticMethods) isNil ifTrue:[
       
 18728         holder := (DefaultShowSyntheticMethods ? false) asValue.
       
 18729         builder aspectAt:#showSyntheticMethods put: holder.
       
 18730         holder onChangeEvaluate:[ 
       
 18731             DefaultShowSyntheticMethods := holder value 
       
 18732         ].
       
 18733     ].
       
 18734     ^ holder
       
 18735 
       
 18736     "Created: / 13-04-2012 / 16:07:50 / Jan Vrany <jan.vrany@fit.cvut.cz>"
       
 18737 !
       
 18738 
 18701 showUnloadedClasses
 18739 showUnloadedClasses
 18702     |holder|
 18740     |holder|
 18703 
 18741 
 18704     (holder := builder bindingAt:#showUnloadedClasses) isNil ifTrue:[
 18742     (holder := builder bindingAt:#showUnloadedClasses) isNil ifTrue:[
 18705         holder := BlockValue forLogicalNot:(self hideUnloadedClasses).
 18743         holder := BlockValue forLogicalNot:(self hideUnloadedClasses).
 18802 !
 18840 !
 18803 
 18841 
 18804 canGenerateAccessMethodsHolder
 18842 canGenerateAccessMethodsHolder
 18805     ^ self hasClassAndVariableSelectedHolder
 18843     ^ self hasClassAndVariableSelectedHolder
 18806 !
 18844 !
 18807 
       
 18808 
       
 18809 
 18845 
 18810 canGenerateMultiSetterMethodHolder
 18846 canGenerateMultiSetterMethodHolder
 18811     ^ self hasSingleLoadedClassSelectedAndMultipleVariablesSelectedHolder
 18847     ^ self hasSingleLoadedClassSelectedAndMultipleVariablesSelectedHolder
 18812 !
 18848 !
 18813 
 18849 
 21321 
 21357 
 21322 useSearchBarInBrowser
 21358 useSearchBarInBrowser
 21323 
 21359 
 21324     ^ UserPreferences current useSearchBarInBrowser or:[self codeView searchBarActionBlock notNil]
 21360     ^ UserPreferences current useSearchBarInBrowser or:[self codeView searchBarActionBlock notNil]
 21325 ! !
 21361 ! !
       
 21362 
 21326 
 21363 
 21327 !NewSystemBrowser methodsFor:'change & update'!
 21364 !NewSystemBrowser methodsFor:'change & update'!
 21328 
 21365 
 21329 categorySelectionChanged
 21366 categorySelectionChanged
 21330     "category selection changed by user interaction"
 21367     "category selection changed by user interaction"
 35331     ^ brwsr
 35368     ^ brwsr
 35332 
 35369 
 35333     "Modified: / 28-02-2012 / 16:27:44 / cg"
 35370     "Modified: / 28-02-2012 / 16:27:44 / cg"
 35334 ! !
 35371 ! !
 35335 
 35372 
       
 35373 
 35336 !NewSystemBrowser methodsFor:'menu actions-namespace'!
 35374 !NewSystemBrowser methodsFor:'menu actions-namespace'!
 35337 
 35375 
 35338 nameSpaceMenuCheckOut
 35376 nameSpaceMenuCheckOut
 35339     "check-out all classes in the selected nameSpace from the source repository.
 35377     "check-out all classes in the selected nameSpace from the source repository.
 35340      Individually ask for class revisions.
 35378      Individually ask for class revisions.
 43997         open
 44035         open
 43998 
 44036 
 43999     "Modified: / 25-06-2010 / 10:08:16 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 44037     "Modified: / 25-06-2010 / 10:08:16 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 44000     "Modified: / 28-02-2012 / 16:48:38 / cg"
 44038     "Modified: / 28-02-2012 / 16:48:38 / cg"
 44001 ! !
 44039 ! !
       
 44040 
 44002 
 44041 
 44003 !NewSystemBrowser methodsFor:'menu actions-variables'!
 44042 !NewSystemBrowser methodsFor:'menu actions-variables'!
 44004 
 44043 
 44005 browseVarRefsOrModsWithTitle:browserTitle boxTitle:boxTitle variables:varType access:accessType all:browseAll
 44044 browseVarRefsOrModsWithTitle:browserTitle boxTitle:boxTitle variables:varType access:accessType all:browseAll
 44006     "show an enterbox for instVar/classVar to search for.
 44045     "show an enterbox for instVar/classVar to search for.
 48594      there is no need to set codeview's content if previous method
 48633      there is no need to set codeview's content if previous method
 48595      belonged to the same class. Code is already shown, we need only
 48634      belonged to the same class. Code is already shown, we need only
 48596      to scrool to it..."
 48635      to scrool to it..."
 48597     "hmm...hmm...how implement it in a better, more generic way?"
 48636     "hmm...hmm...how implement it in a better, more generic way?"
 48598     doUpdateCode := true.
 48637     doUpdateCode := true.
 48599     mthd isJavaMethod ifTrue:[
 48638     (mthd isJavaMethod and:[mthd isSynthetic not]) ifTrue:[
 48600         prevMthd := navigationState lastMethodShownInCodeView.
 48639         prevMthd := navigationState lastMethodShownInCodeView.
 48601         (prevMthd notNil and:[prevMthd isJavaMethod]) ifTrue:[
 48640         (prevMthd notNil and:[prevMthd isJavaMethod]) ifTrue:[
 48602             doUpdateCode := mthd javaClass ~~ prevMthd javaClass
 48641             doUpdateCode := prevMthd isSynthetic or:[mthd javaClass ~~ prevMthd javaClass]
 48603         ].
 48642         ].
 48604     ].
 48643     ].
 48605     doUpdateCode ifTrue:[
 48644     doUpdateCode ifTrue:[
 48606         doSyntaxColoring ifTrue:[
 48645         doSyntaxColoring ifTrue:[
 48607             "/ immediate coloring, if code is not too large;
 48646             "/ immediate coloring, if code is not too large;
 48639     self normalLabel.
 48678     self normalLabel.
 48640     self updatePackageInfoForMethod:mthd.
 48679     self updatePackageInfoForMethod:mthd.
 48641 
 48680 
 48642     "Created: / 01-03-2000 / 11:38:57 / cg"
 48681     "Created: / 01-03-2000 / 11:38:57 / cg"
 48643     "Modified: / 21-08-2011 / 08:54:33 / cg"
 48682     "Modified: / 21-08-2011 / 08:54:33 / cg"
 48644     "Modified: / 17-03-2012 / 16:15:07 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 48683     "Modified: / 13-04-2012 / 18:21:27 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 48645 !
 48684 !
 48646 
 48685 
 48647 showNothing
 48686 showNothing
 48648     self setAcceptActionForNothing.
 48687     self setAcceptActionForNothing.
 48649     self showCode:nil.
 48688     self showCode:nil.
 51104 !
 51143 !
 51105 
 51144 
 51106 projectListApp
 51145 projectListApp
 51107     ^ navigationState projectListApplication
 51146     ^ navigationState projectListApplication
 51108 ! !
 51147 ! !
       
 51148 
 51109 
 51149 
 51110 !NewSystemBrowser methodsFor:'private-history'!
 51150 !NewSystemBrowser methodsFor:'private-history'!
 51111 
 51151 
 51112 lastSearchPatterns
 51152 lastSearchPatterns
 51113     ^ self class lastSearchPatterns
 51153     ^ self class lastSearchPatterns
 56530 ! !
 56570 ! !
 56531 
 56571 
 56532 !NewSystemBrowser class methodsFor:'documentation'!
 56572 !NewSystemBrowser class methodsFor:'documentation'!
 56533 
 56573 
 56534 version
 56574 version
 56535     ^ '$Header: /cvs/stx/stx/libtool/Tools__NewSystemBrowser.st,v 1.1738 2012/04/06 14:00:08 stefan Exp $'
 56575     ^ '$Id: Tools__NewSystemBrowser.st 7979 2012-04-13 18:16:04Z vranyj1 $'
 56536 !
 56576 !
 56537 
 56577 
 56538 version_CVS
 56578 version_CVS
 56539     ^ '§Header: /cvs/stx/stx/libtool/Tools__NewSystemBrowser.st,v 1.1738 2012/04/06 14:00:08 stefan Exp §'
 56579     ^ '§Header: /cvs/stx/stx/libtool/Tools__NewSystemBrowser.st,v 1.1738 2012/04/06 14:00:08 stefan Exp §'
 56540 !
 56580 !
 56541 
 56581 
 56542 version_SVN
 56582 version_SVN
 56543     ^ '$Id: Tools__NewSystemBrowser.st 7978 2012-04-13 13:15:47Z vranyj1 $'
 56583     ^ '$Id: Tools__NewSystemBrowser.st 7979 2012-04-13 18:16:04Z vranyj1 $'
 56544 ! !
 56584 ! !
 56545 
 56585 
 56546 NewSystemBrowser initialize!
 56586 NewSystemBrowser initialize!