Tools_ProjectList.st
branchdefault-browser-environment
changeset 13473 d8e9ed472e9f
parent 12846 8ec716ef51e6
equal deleted inserted replaced
13464:931d28c589b7 13473:d8e9ed472e9f
   230     |cls sel pkg mthd newSel|
   230     |cls sel pkg mthd newSel|
   231 
   231 
   232     self inSlaveModeOrInvisible 
   232     self inSlaveModeOrInvisible 
   233     "/ (self slaveMode value == true) 
   233     "/ (self slaveMode value == true) 
   234     ifTrue:[
   234     ifTrue:[
   235         (changedObject == Smalltalk
   235         (changedObject == environment
   236         or:[ something == #projectOrganization ]) ifTrue:[
   236         or:[ something == #projectOrganization ]) ifTrue:[
   237             listValid ifFalse:[ ^ self].
   237             listValid ifFalse:[ ^ self].
   238             listValid := false
   238             listValid := false
   239         ].
   239         ].
   240         changedObject == self selectionHolder ifTrue:[
   240         changedObject == self selectionHolder ifTrue:[
   282 
   282 
   283     changedObject == self projectList ifTrue:[
   283     changedObject == self projectList ifTrue:[
   284         ^  self
   284         ^  self
   285     ].
   285     ].
   286 
   286 
   287     changedObject == Smalltalk ifTrue:[
   287     changedObject == environment ifTrue:[
   288         something == #projectOrganization ifTrue:[
   288         something == #projectOrganization ifTrue:[
   289             self invalidateList.
   289             self invalidateList.
   290             slaveMode value == true ifFalse:[
   290             slaveMode value == true ifFalse:[
   291                 self enqueueDelayedUpdateOutputGenerator.
   291                 self enqueueDelayedUpdateOutputGenerator.
   292             ].
   292             ].
   373         listValid := false.
   373         listValid := false.
   374         selectionIndexValid := false.
   374         selectionIndexValid := false.
   375         ^ self
   375         ^ self
   376     ].
   376     ].
   377 
   377 
   378     changedObject == Smalltalk ifTrue:[
   378     changedObject == environment ifTrue:[
   379         something == #methodDictionary ifTrue:[
   379         something == #methodDictionary ifTrue:[
   380             ^ self 
   380             ^ self 
   381         ].
   381         ].
   382         something == #methodTrap ifTrue:[
   382         something == #methodTrap ifTrue:[
   383             ^ self
   383             ^ self
   545     hideUnloadedClasses := self hideUnloadedClasses value.
   545     hideUnloadedClasses := self hideUnloadedClasses value.
   546 
   546 
   547     (selectedPackages includes:(self class nameListEntryForALL)) ifTrue:[
   547     (selectedPackages includes:(self class nameListEntryForALL)) ifTrue:[
   548         hideUnloadedClasses ifTrue:[
   548         hideUnloadedClasses ifTrue:[
   549             ^ Iterator on:[:whatToDo |
   549             ^ Iterator on:[:whatToDo |
   550                                Smalltalk allClassesDo:[:cls |
   550                                environment allClassesDo:[:cls |
   551                                    cls isLoaded ifTrue:[
   551                                    cls isLoaded ifTrue:[
   552                                        cls isRealNameSpace ifFalse:[
   552                                        cls isRealNameSpace ifFalse:[
   553                                            whatToDo value:cls
   553                                            whatToDo value:cls
   554                                        ]
   554                                        ]
   555                                    ]
   555                                    ]
   556                                ]
   556                                ]
   557                           ]
   557                           ]
   558         ].
   558         ].
   559         ^ Iterator on:[:whatToDo |
   559         ^ Iterator on:[:whatToDo |
   560                            Smalltalk allClassesDo:[:cls |
   560                            environment allClassesDo:[:cls |
   561                                cls isRealNameSpace ifFalse:[
   561                                cls isRealNameSpace ifFalse:[
   562                                    whatToDo value:cls
   562                                    whatToDo value:cls
   563                                ]
   563                                ]
   564                            ]
   564                            ]
   565                       ]
   565                       ]
   572         ^ Iterator on:[:whatToDo | 
   572         ^ Iterator on:[:whatToDo | 
   573                            |changedClasses|
   573                            |changedClasses|
   574 
   574 
   575                            showChangedClasses ifTrue:[ changedClasses := ChangeSet current changedClasses ].
   575                            showChangedClasses ifTrue:[ changedClasses := ChangeSet current changedClasses ].
   576 
   576 
   577                            Smalltalk allClassesDo:[:cls |
   577                            environment allClassesDo:[:cls |
   578                                |doInclude|
   578                                |doInclude|
   579 
   579 
   580                                (hideUnloadedClasses not or:[cls isLoaded])
   580                                (hideUnloadedClasses not or:[cls isLoaded])
   581                                ifTrue:[
   581                                ifTrue:[
   582                                    cls isRealNameSpace ifFalse:[
   582                                    cls isRealNameSpace ifFalse:[
   605     ^ Iterator on:[:whatToDo | 
   605     ^ Iterator on:[:whatToDo | 
   606                        |changedClasses|
   606                        |changedClasses|
   607 
   607 
   608                        showChangedClasses ifTrue:[ changedClasses := ChangeSet current changedClasses ].
   608                        showChangedClasses ifTrue:[ changedClasses := ChangeSet current changedClasses ].
   609 
   609 
   610                        Smalltalk allClassesDo:[:cls |
   610                        environment allClassesDo:[:cls |
   611                            |doInclude|
   611                            |doInclude|
   612 
   612 
   613                            (hideUnloadedClasses not or:[cls isLoaded])
   613                            (hideUnloadedClasses not or:[cls isLoaded])
   614                            ifTrue:[
   614                            ifTrue:[
   615                                cls isRealNameSpace ifFalse:[
   615                                cls isRealNameSpace ifFalse:[
   705                         ].
   705                         ].
   706                     ].
   706                     ].
   707                 ].
   707                 ].
   708             ].
   708             ].
   709 
   709 
   710         Smalltalk allClassesDo:[:eachClass |
   710         environment allClassesDo:[:eachClass |
   711             |cls pkg p classPackage|
   711             |cls pkg p classPackage|
   712 
   712 
   713             eachClass isRealNameSpace ifFalse:[
   713             eachClass isRealNameSpace ifFalse:[
   714 
   714 
   715                 (hideUnloaded not or:[eachClass isLoaded]) ifTrue:[
   715                 (hideUnloaded not or:[eachClass isLoaded]) ifTrue:[
   805     "Created: / 17-02-2000 / 23:43:05 / cg"
   805     "Created: / 17-02-2000 / 23:43:05 / cg"
   806     "Modified: / 17-08-2006 / 15:08:42 / cg"
   806     "Modified: / 17-08-2006 / 15:08:42 / cg"
   807 !
   807 !
   808 
   808 
   809 makeDependent
   809 makeDependent
   810     Smalltalk addDependent:self.
   810     environment addDependent:self.
   811     ChangeSet addDependent:self.
   811     ChangeSet addDependent:self.
   812 !
   812 !
   813 
   813 
   814 makeIndependent
   814 makeIndependent
   815     Smalltalk removeDependent:self.
   815     environment removeDependent:self.
   816     ChangeSet removeDependent:self.
   816     ChangeSet removeDependent:self.
   817 !
   817 !
   818 
   818 
   819 markEntry: rawEntry at: index forBeingManagedBySVN:package
   819 markEntry: rawEntry at: index forBeingManagedBySVN:package
   820 "/    (ConfigurableFeatures includesFeature: #SubversionSupportEnabled) ifFalse:[^rawEntry].
   820 "/    (ConfigurableFeatures includesFeature: #SubversionSupportEnabled) ifFalse:[^rawEntry].
   821 "/    package = PackageId noProjectID ifTrue:[^rawEntry].
   821 "/    package = PackageId noProjectID ifTrue:[^rawEntry].
   822 
   822 
   823 "/    workerQueue 
   823 "/    workerQueue 
   824 "/        nextPut:[
   824 "/        nextPut:[
   825 "/            | repo newEntry branch mark|
   825 "/            | repo newEntry branch mark|
   826 "/            "/ use Smalltalk-at to trick the dependency/prerequisite generator
   826 "/            "/ use environment-at to trick the dependency/prerequisite generator
   827 "/            repo := (Smalltalk at:#SVN::RepositoryManager) current 
   827 "/            repo := (environment at:#SVN::RepositoryManager) current 
   828 "/                        repositoryForPackage: package onlyFromCache: false.
   828 "/                        repositoryForPackage: package onlyFromCache: false.
   829 "/            repo ifNotNil:[
   829 "/            repo ifNotNil:[
   830 "/                mark := ' [SVN]'.
   830 "/                mark := ' [SVN]'.
   831 "/                branch := repo workingCopy branchOrNil.
   831 "/                branch := repo workingCopy branchOrNil.
   832 "/                branch ifNotNil:[mark := ' [SVN: ', branch path,']'].
   832 "/                branch ifNotNil:[mark := ' [SVN: ', branch path,']'].
   988     AdditionalEmptyProjects isNil ifTrue:[
   988     AdditionalEmptyProjects isNil ifTrue:[
   989         AdditionalEmptyProjects := Set new.
   989         AdditionalEmptyProjects := Set new.
   990     ].
   990     ].
   991     AdditionalEmptyProjects add:aProject.
   991     AdditionalEmptyProjects add:aProject.
   992 
   992 
   993     Smalltalk changed:#projectOrganization   "/ not really ... to force update
   993     environment changed:#projectOrganization   "/ not really ... to force update
   994 
   994 
   995     "Created: / 17.2.2000 / 23:44:27 / cg"
   995     "Created: / 17.2.2000 / 23:44:27 / cg"
   996 !
   996 !
   997 
   997 
   998 removeAdditionalProjects:aListOfProjects
   998 removeAdditionalProjects:aListOfProjects
  1001     AdditionalEmptyProjects notNil ifTrue:[
  1001     AdditionalEmptyProjects notNil ifTrue:[
  1002 	aListOfProjects do:[:eachProject |
  1002 	aListOfProjects do:[:eachProject |
  1003 	    AdditionalEmptyProjects remove:eachProject ifAbsent:nil.
  1003 	    AdditionalEmptyProjects remove:eachProject ifAbsent:nil.
  1004 	].
  1004 	].
  1005     ].
  1005     ].
  1006     Smalltalk changed:#projectOrganization   "/ not really ... to force update
  1006     environment changed:#projectOrganization   "/ not really ... to force update
  1007 
  1007 
  1008     "Created: / 17.2.2000 / 23:45:24 / cg"
  1008     "Created: / 17.2.2000 / 23:45:24 / cg"
  1009 ! !
  1009 ! !
  1010 
  1010 
  1011 !ProjectList class methodsFor:'documentation'!
  1011 !ProjectList class methodsFor:'documentation'!