`NewSystemBrowser`: improve what's considered a "real project" jv
authorJan Vrany <jan.vrany@labware.com>
Fri, 26 Nov 2021 12:12:59 +0000
branchjv
changeset 19625 ec690081bff2
parent 19624 9c69c506ba92
child 19626 2df93f7a6e39
`NewSystemBrowser`: improve what's considered a "real project" Consider all project "items" with project definition class as real projects. This enables project-related tools to work with Pharo / Tonel packages as well (as they use flat package naming contrary to St/X) given that there's a package manifest for them.
Tools__NewSystemBrowser.st
--- a/Tools__NewSystemBrowser.st	Fri Nov 26 11:19:21 2021 +0000
+++ b/Tools__NewSystemBrowser.st	Fri Nov 26 12:12:59 2021 +0000
@@ -23369,7 +23369,10 @@
 hasSingleRealProjectSelectedHolder
     ^ [ self hasSingleProjectSelected
         and:[ self theSingleSelectedProject notNil
-        and:[ self theSingleSelectedProject string asPackageId isModuleId not ]]]
+        and:[ self theSingleSelectedProject string asPackageId isModuleId not
+                or:[ (ProjectDefinition definitionClassForPackage: self theSingleSelectedProject string) notNil ]]]]
+
+    "Modified: / 26-11-2021 / 11:46:23 / Jan Vrany <jan.vrany@labware.com>"
 !
 
 hasSingleRealProtocolSelected