ProjectDefinition.st
changeset 23179 8656c17dc5d2
parent 23128 bbd3f21e2fef
child 23293 fd62667cd3f6
equal deleted inserted replaced
23178:9744ff458ba9 23179:8656c17dc5d2
  1428     "
  1428     "
  1429 
  1429 
  1430     "Created: / 18-08-2006 / 16:21:01 / cg"
  1430     "Created: / 18-08-2006 / 16:21:01 / cg"
  1431 !
  1431 !
  1432 
  1432 
  1433 checkForBadReferences:prerequsiteList
  1433 checkForBadReferences:prerequisiteList
  1434     "check, that there are no 'illegal' references to prerequisites.
  1434     "check, that there are no 'illegal' references to prerequisites.
  1435      If there is a bad prrequisite, ask the user whether to abort."
  1435      If there is a bad prrequisite, ask the user whether to abort."
  1436 
  1436 
  1437     prerequsiteList keysDo:[:eachPackageSymbol|
  1437     prerequisiteList keysDo:[:eachPackageSymbol|
  1438         |defClass|
  1438         |defClass|
  1439 
  1439 
  1440         defClass := self definitionClassForPackage:eachPackageSymbol.
  1440         defClass := self definitionClassForPackage:eachPackageSymbol.
  1441         (defClass isProjectDefinition and:[defClass isPluginDefinition]) ifTrue:[
  1441         (defClass isProjectDefinition and:[defClass isPluginDefinition]) ifTrue:[
  1442             (self confirm:('Bad cross-plugin requirement to: %1%<cr>%<cr>Proceed?' bindWith:eachPackageSymbol)) ifFalse:[
  1442             (self confirm:('Bad cross-plugin requirement to: %1%<cr>%<cr>Proceed?' bindWith:eachPackageSymbol)) ifFalse:[
  1443                 AbortOperationRequest raiseRequest.
  1443                 AbortOperationRequest raiseRequest.
  1444             ].
  1444             ].
  1445         ].
  1445         ].
  1446     ]
  1446     ]
       
  1447 
       
  1448     "Modified (format): / 02-07-2018 / 18:56:29 / cg"
  1447 !
  1449 !
  1448 
  1450 
  1449 classNamesAndAttributes_codeFor:aSpecArray
  1451 classNamesAndAttributes_codeFor:aSpecArray
  1450     "generate method code returning all classes of the project from the given spec."
  1452     "generate method code returning all classes of the project from the given spec."
  1451 
  1453 
  8342 
  8344 
  8343     "Created: / 23-08-2006 / 15:17:46 / cg"
  8345     "Created: / 23-08-2006 / 15:17:46 / cg"
  8344     "Modified: / 20-09-2006 / 15:00:00 / cg"
  8346     "Modified: / 20-09-2006 / 15:00:00 / cg"
  8345 !
  8347 !
  8346 
  8348 
  8347 isPluginDefinition
       
  8348     "is it some definition of a plugin (e.g. for expecco)?"
       
  8349 
       
  8350     ^ false
       
  8351 
       
  8352     "Created: / 22-06-2018 / 11:54:04 / Stefan Vogel"
       
  8353 !
       
  8354 
       
  8355 isProjectDefinition
  8349 isProjectDefinition
  8356     "concrete i.e. not abstract"
  8350     "concrete i.e. not abstract"
  8357 
  8351 
  8358     ^ self isAbstract not
  8352     ^ self isAbstract not
  8359 
  8353