#REFACTORING by exept
authorClaus Gittinger <cg@exept.de>
Sun, 08 Sep 2019 15:55:51 +0200
changeset 24751 5d99d0f97a32
parent 24750 8586d5461ade
child 24752 ee5c44b31b6d
#REFACTORING by exept class: ProjectDefinition class changed: #executeHooks: (send #argumentCount instead of #numArgs)
ProjectDefinition.st
--- a/ProjectDefinition.st	Sun Sep 08 15:51:41 2019 +0200
+++ b/ProjectDefinition.st	Sun Sep 08 15:55:51 2019 +0200
@@ -2974,6 +2974,7 @@
     "Created: / 23-01-2007 / 19:08:27 / cg"
 ! !
 
+
 !ProjectDefinition class methodsFor:'description - project information'!
 
 applicationAdditionalIconFileNames
@@ -5092,6 +5093,7 @@
     ^ self subProjectMakeCallsUsing:'call vcmake %1 %2'.
 ! !
 
+
 !ProjectDefinition class methodsFor:'file templates'!
 
 autopackage_default_dot_apspec
@@ -6684,16 +6686,16 @@
     cls := self.
 
     [ cls notNil ] whileTrue:[
-	cls class selectorsAndMethodsDo:[:selector :method|
-	    (method annotationAt: hookSymbol) notNil ifTrue:[
-		method numArgs == 0 ifTrue:[
-		    self perform: selector
-		] ifFalse:[
-		    self proceedableError:'Hook for %1 may not have arguments'.
-		]
-	    ]
-	].
-	cls := cls superclass.
+        cls class selectorsAndMethodsDo:[:selector :method|
+            (method annotationAt: hookSymbol) notNil ifTrue:[
+                method argumentCount == 0 ifTrue:[
+                    self perform: selector
+                ] ifFalse:[
+                    self proceedableError:'Hook for %1 may not have arguments'.
+                ]
+            ]
+        ].
+        cls := cls superclass.
     ].
 
     "Created: / 20-11-2012 / 23:00:13 / Jan Vrany <jan.vrany@fit.cvut.cz>"
@@ -8474,12 +8476,6 @@
     "Modified: / 20-09-2006 / 15:00:00 / cg"
 !
 
-isPluginDefinition
-    "an attribute for end-user-application plugins (-> expecco)"
-
-    ^ false
-!
-
 isProjectDefinition
     "concrete i.e. not abstract"