Tools__ProjectBuilderAssistantApplication.st
changeset 3336 108c139b4bbd
parent 3335 217dad1c84d0
child 3337 f9ec2e76c54c
equal deleted inserted replaced
3335:217dad1c84d0 3336:108c139b4bbd
  3077         #(AssistantPageSpec
  3077         #(AssistantPageSpec
  3078             pageTitle: 'ProjectDefinition Selection'
  3078             pageTitle: 'ProjectDefinition Selection'
  3079             windowSpecSelector: page2_projectSelectionSpec
  3079             windowSpecSelector: page2_projectSelectionSpec
  3080             enterCallbackSelector: updateListOfMatchingProjectsAndProjectIDs
  3080             enterCallbackSelector: updateListOfMatchingProjectsAndProjectIDs
  3081             leaveCallbackSelector: fetchAttributesFromProjectDefinition
  3081             leaveCallbackSelector: fetchAttributesFromProjectDefinition
  3082             infoText: 'Choose an existing project definition or create a new one. These are subclasses of <I>ProjectDefinition</I> and define the type and contents of a project. Notice that the ID directly reflects the project''s location within the source code repository (module:directory/subdirectory...). If in doubt, use "&lt;yourname&gt;:demos/xxx_n".'
  3082             infoText: 'Choose an existing project definition or create a new one. 
       
  3083 These are subclasses of <I>ProjectDefinition</I> and define the type and contents of a project. 
       
  3084 <p>
       
  3085 Notice that the ID directly reflects the project''s location within the source code repository (module:directory/subdirectory...). 
       
  3086 If in doubt, use "&lt;yourname&gt;:demos/xxx_n".'
  3083         ) decodeAsLiteralArray.
  3087         ) decodeAsLiteralArray.
  3084 
  3088 
  3085     specs add:
  3089     specs add:
  3086         #(AssistantPageSpec
  3090         #(AssistantPageSpec
  3087             pageTitle: 'Startup Application Selection'
  3091             pageTitle: 'Startup Application Selection'
  3088             windowSpecSelector: page3_applicationSelectionSpec
  3092             windowSpecSelector: page3_applicationSelectionSpec
  3089             isEnabledQuerySelector: #projectTypeIsGuiApplication
  3093             isEnabledQuerySelector: #projectTypeIsGuiApplication
  3090             canEnterQuerySelector: #canEnterApplicationSelection
  3094             canEnterQuerySelector: #canEnterApplicationSelection
  3091             enterCallbackSelector: updateListOfApplicationsInProject
  3095             enterCallbackSelector: updateListOfApplicationsInProject
  3092             infoText: 'Choose an existing application or create a new one. These are subclasses of <I>ApplicationModel</I> and define the GUI and control flow inside the application. Can also be left blank if the startup class does it all (stx build).'
  3096             infoText: 'Choose an existing application or create a new one. 
       
  3097 These are subclasses of <I>ApplicationModel</I> and define the GUI and control flow inside the application. 
       
  3098 Can also be left blank if the startup class does it all (stx build).'
  3093         ) decodeAsLiteralArray.
  3099         ) decodeAsLiteralArray.
  3094 
  3100 
  3095     specs add:
  3101     specs add:
  3096         #(AssistantPageSpec
  3102         #(AssistantPageSpec
  3097             pageTitle: 'Startup Class Selection'
  3103             pageTitle: 'Startup Class Selection'
  3098             windowSpecSelector: page4_startupClassSelectionSpec
  3104             windowSpecSelector: page4_startupClassSelectionSpec
  3099             isEnabledQuerySelector: #projectTypeIsNotLibrary
  3105             isEnabledQuerySelector: #projectTypeIsNotLibrary
  3100             canEnterQuerySelector: #canEnterStartupClassSelection
  3106             canEnterQuerySelector: #canEnterStartupClassSelection
  3101             enterCallbackSelector: updateListOfStartupClassesInProject
  3107             enterCallbackSelector: updateListOfStartupClassesInProject
  3102             infoText: 'Choose an existing startup-class or create a new one. These are subclasses of <I>StandaloneStartup</I> and start the application. Command line arguments can be interpreted there.'
  3108             infoText: 'Choose an existing startup-class or create a new one. 
       
  3109 These are subclasses of <I>StandaloneStartup</I> and start the application. 
       
  3110 Command line arguments can be interpreted there.'
  3103         ) decodeAsLiteralArray.
  3111         ) decodeAsLiteralArray.
  3104 
  3112 
  3105     specs add:
  3113     specs add:
  3106         #(AssistantPageSpec
  3114         #(AssistantPageSpec
  3107             pageTitle: 'Specify Contents'
  3115             pageTitle: 'Specify Contents'
  3108             windowSpecSelector: page5_specifyIncludedClasses
  3116             windowSpecSelector: page5_specifyIncludedClasses
  3109             enterCallbackSelector: enterContentsSpecification
  3117             enterCallbackSelector: enterContentsSpecification
  3110             canEnterQuerySelector: #canEnterContentsSelection
  3118             canEnterQuerySelector: #canEnterContentsSelection
  3111             infoText: 'Define which (other) classes are to be included. Do not include classes from other packages here. Press "<I>Scan</I>" to include all classes of the package; "<I>Browse</I>" to edit the contents manually.'
  3119             infoText: 'Define which (other) classes are to be included. 
       
  3120 Do not include classes from other packages here. 
       
  3121 <p>
       
  3122 Press "<I>Scan</I>" to include all classes of the package; 
       
  3123 <br>
       
  3124 "<I>Browse</I>" to edit the contents manually.'
  3112         ) decodeAsLiteralArray.
  3125         ) decodeAsLiteralArray.
  3113 
  3126 
  3114     specs add:
  3127     specs add:
  3115         #(AssistantPageSpec
  3128         #(AssistantPageSpec
  3116             pageTitle: 'Specify Prerequisites'
  3129             pageTitle: 'Specify Prerequisites'
  3117             windowSpecSelector: page5b_specifyPrerequisitePackages
  3130             windowSpecSelector: page5b_specifyPrerequisitePackages
  3118             enterCallbackSelector: enterPrerequisitesSpecification
  3131             enterCallbackSelector: enterPrerequisitesSpecification
  3119             canEnterQuerySelector: #canEnterPrerequisitesSelection
  3132             canEnterQuerySelector: #canEnterPrerequisitesSelection
  3120             infoText: 'Define which packages are needed as prerequisites. These are required class libraries which should be packaged together with the application. Press "<I>Scan</I>" to search for prerequisites; "<I>Browse</I>" to edit the list manually.'
  3133             infoText: 'Define which packages are needed as prerequisites. 
       
  3134 These are required class libraries which should be packaged together with the application. 
       
  3135 <p>
       
  3136 Press "<I>Scan</I>" to search for prerequisites; 
       
  3137 <br>"<I>Browse</I>" to edit the list manually.'
  3121         ) decodeAsLiteralArray.
  3138         ) decodeAsLiteralArray.
  3122 
  3139 
  3123     specs add:
  3140     specs add:
  3124         #(AssistantPageSpec
  3141         #(AssistantPageSpec
  3125             pageTitle: 'Specify Project Attributes'
  3142             pageTitle: 'Specify Project Attributes'
  3126             windowSpecSelector: page6a_specifyProjectAttributes
  3143             windowSpecSelector: page6a_specifyProjectAttributes
  3127             infoText: 'Define additional attributes. These will be shown during the installation of the deployed package and affect the name of the deployed self installable file.'
  3144             infoText: 'Define additional attributes. 
       
  3145 These will be shown during the installation of the deployed package and affect the name of the deployed self-installable file.'
  3128             enterCallbackSelector: updateProjectAttributes
  3146             enterCallbackSelector: updateProjectAttributes
  3129             leaveCallbackSelector: #rememberProjectAttributes
  3147             leaveCallbackSelector: #rememberProjectAttributes
  3130         ) decodeAsLiteralArray.
  3148         ) decodeAsLiteralArray.
  3131 
  3149 
  3132     specs add:
  3150     specs add:
  3321 !
  3339 !
  3322 
  3340 
  3323 enterDeploySpecification
  3341 enterDeploySpecification
  3324     |fileBrowserCanvas fileBrowser|
  3342     |fileBrowserCanvas fileBrowser|
  3325 
  3343 
  3326     fileBrowserCanvas := self builder componentAt:'FileBrowserSubCanvas'.
  3344     self projectTypeIsLibrary ifTrue:[
  3327     fileBrowser := fileBrowserCanvas application. 
  3345         fileBrowserCanvas := self builder componentAt:'FileBrowserSubCanvas'.
  3328     fileBrowser filterModel value:('*' , ObjectFileLoader sharedLibraryExtension).
  3346         fileBrowser := fileBrowserCanvas application. 
       
  3347         fileBrowser filterModel value:('*' , ObjectFileLoader sharedLibraryExtension).
       
  3348     ].
  3329 !
  3349 !
  3330 
  3350 
  3331 enterPrerequisitesSpecification
  3351 enterPrerequisitesSpecification
  3332     |toAdd|
  3352     |toAdd|
  3333 
  3353