Skip to content

Commit

Permalink
check if class is obsolete before adding it as a tree library
Browse files Browse the repository at this point in the history
  • Loading branch information
Nyan11 committed Jul 29, 2024
1 parent cd657d8 commit 0c87d8c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Pyramid-Bloc/PyramidTreePlugin.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,12 @@ PyramidTreePlugin class >> columnsBuildersClasses [
{ #category : #'as yet unclassified' }
PyramidTreePlugin class >> factoriesFromMethods: methods inPackage: package [

self flag: #bug. "In the test-case of the save-plugin we use temporary classes. This classes have an impact on the tests of PyramidTreePlugin. We exclude the package that include the tests of the save plugins."
package ifNil: [ ^ { } ].
package = PyramidSavingServiceTest package ifTrue: [ ^ { } ].

^ methods
select: [ :method | method package = package ]
select: [ :method |
method package = package and: [
method methodClass isObsolete not ] ]
thenCollect: [ :method |
PyramidElementToAddFactory new
elementIcon: (Smalltalk ui icons iconNamed:
Expand Down

0 comments on commit 0c87d8c

Please sign in to comment.