VSEPackageFileSourceWriter.st
changeset 3755 ec8b6c0b0827
parent 3750 338d4e7f149f
child 3756 30fb6df85906
equal deleted inserted replaced
3754:6e38fdb567fe 3755:ec8b6c0b0827
   326 
   326 
   327     projectDefinitionClass notNil ifTrue:[
   327     projectDefinitionClass notNil ifTrue:[
   328         vsePackageName := projectDefinitionClass perform:#vsePackageName ifNotUnderstood:nil.
   328         vsePackageName := projectDefinitionClass perform:#vsePackageName ifNotUnderstood:nil.
   329     ].
   329     ].
   330     vsePackageName isNil ifTrue:[
   330     vsePackageName isNil ifTrue:[
   331         (Dialog confirm:('No vsePackageName defined in ProjectDefinition.\\Proceed (using ST/X package name)?') withCRs)
   331         |action optionLabels options|
   332         ifFalse:[
   332 
       
   333         projectDefinitionClass notNil ifTrue:[
       
   334             optionLabels := #('Cancel' 'No, Browse' 'Yes').
       
   335             options := #(#abort #browse #yes)
       
   336         ] ifFalse:[
       
   337             optionLabels := #('Cancel' 'Yes').
       
   338             options := #(#abort #yes)
       
   339         ].
       
   340         action := OptionBox
       
   341                           request:(Dialog resources stringWithCRs:'No vsePackageName defined in ProjectDefinition.\\Proceed (using ST/X package name)?')
       
   342                           label:'VSE Package Export'
       
   343                           image:(WarningBox iconBitmap)
       
   344                           buttonLabels:(Dialog resources array:optionLabels)
       
   345                           values:options
       
   346                           default:(projectDefinitionClass isNil ifTrue:#abort ifFalse:#browse)
       
   347                           onCancel:#abort.
       
   348         action == #abort ifTrue:[
       
   349             AbortOperationRequest raise
       
   350         ].
       
   351         action == #browse ifTrue:[
       
   352             UserPreferences browserClass openInClass:projectDefinitionClass.
   333             AbortOperationRequest raise
   353             AbortOperationRequest raise
   334         ].
   354         ].
   335     ].
   355     ].
   336 
   356 
   337     projectDefinitionClass notNil ifTrue:[
   357     projectDefinitionClass notNil ifTrue:[
   416 ! !
   436 ! !
   417 
   437 
   418 !VSEPackageFileSourceWriter class methodsFor:'documentation'!
   438 !VSEPackageFileSourceWriter class methodsFor:'documentation'!
   419 
   439 
   420 version
   440 version
   421     ^ '$Header: /cvs/stx/stx/libbasic3/VSEPackageFileSourceWriter.st,v 1.8 2015-02-03 19:51:31 cg Exp $'
   441     ^ '$Header: /cvs/stx/stx/libbasic3/VSEPackageFileSourceWriter.st,v 1.9 2015-02-05 11:13:02 cg Exp $'
   422 !
   442 !
   423 
   443 
   424 version_CVS
   444 version_CVS
   425     ^ '$Header: /cvs/stx/stx/libbasic3/VSEPackageFileSourceWriter.st,v 1.8 2015-02-03 19:51:31 cg Exp $'
   445     ^ '$Header: /cvs/stx/stx/libbasic3/VSEPackageFileSourceWriter.st,v 1.9 2015-02-05 11:13:02 cg Exp $'
   426 ! !
   446 ! !
   427 
   447