Patrick Rein uploaded a new version of ToolBuilder-Kernel to project The Trunk:
http://source.squeak.org/trunk/ToolBuilder-Kernel-pre.123.mcz ==================== Summary ==================== Name: ToolBuilder-Kernel-pre.123 Author: pre Time: 1 November 2018, 2:44:21.41256 pm UUID: d880547f-7367-ba4e-ae6c-e6069f68fcec Ancestors: ToolBuilder-Kernel-pre.122 Updates the comments of the UIManager methods and adds a utility method to make use of the ProvideAnswerNotification mechanism. =============== Diff against ToolBuilder-Kernel-pre.122 =============== Item was added: + ----- Method: UIManager>>askForProvidedAnswerTo:ifSupplied: (in category 'utilities') ----- + askForProvidedAnswerTo: queryString ifSupplied: supplyBlock + + ^ (ProvideAnswerNotification signal: queryString asString) ifNotNil: supplyBlock! Item was changed: ----- Method: UIManager>>chooseDirectory (in category 'ui requests - files') ----- chooseDirectory + "Let the user choose a directory. Returns a proper directory." - "Let the user choose a directory" ^self chooseDirectoryFrom: FileDirectory default! Item was changed: ----- Method: UIManager>>chooseDirectory: (in category 'ui requests - files') ----- chooseDirectory: label + "Let the user choose a directory. Returns a proper directory." - "Let the user choose a directory" ^self chooseDirectory: label from: FileDirectory default! Item was changed: ----- Method: UIManager>>chooseDirectory:from: (in category 'ui requests - files') ----- chooseDirectory: label from: dir + "Let the user choose a directory. Returns a proper directory." + "UIManager default chooseDirectory: 'Choose one' from: FileDirectory default" - "Let the user choose a directory" ^self subclassResponsibility! Item was changed: ----- Method: UIManager>>chooseDirectoryFrom: (in category 'ui requests - files') ----- chooseDirectoryFrom: dir + "Let the user choose a directory. Returns a proper directory." - "Let the user choose a directory" ^self chooseDirectory: nil from: dir! Item was changed: ----- Method: UIManager>>chooseFileMatching: (in category 'ui requests - files') ----- chooseFileMatching: patterns + "Let the user choose a file matching the given patterns. Returns a file name." - "Let the user choose a file matching the given patterns" ^self chooseFileMatching: patterns label: nil! Item was changed: ----- Method: UIManager>>chooseFileMatching:label: (in category 'ui requests - files') ----- chooseFileMatching: patterns label: labelString + "Let the user choose a file matching the given patterns. Returns a file name." - "Let the user choose a file matching the given patterns" ^self subclassResponsibility! Item was changed: ----- Method: UIManager>>chooseFileMatchingSuffixes: (in category 'ui requests - files') ----- chooseFileMatchingSuffixes: suffixList + "Let the user choose a file matching the given suffixes. Returns a file name." - "Let the user choose a file matching the given suffixes" ^self chooseFileMatchingSuffixes: suffixList label: nil! Item was changed: ----- Method: UIManager>>chooseFileMatchingSuffixes:label: (in category 'ui requests - files') ----- chooseFileMatchingSuffixes: suffixList label: labelString + "Let the user choose a file matching the given suffixes. Returns a file name." - "Let the user choose a file matching the given suffixes" ^self subclassResponsibility! Item was changed: ----- Method: UIManager>>saveFilenameRequest:initialAnswer: (in category 'ui requests - files') ----- saveFilenameRequest: queryString initialAnswer: defaultAnswer + "Open a FileSaverDialog to ask for a place and filename to use for saving a file. The initial suggestion for the filename is defaultAnswer but the user may choose any existing file or type in a new name entirely. Returns a file name." - "Open a FileSaverDialog to ask for a place and filename to use for saving a file. The initial suggestion for the filename is defaultAnswer but the user may choose any existing file or type in a new name entirely" ^self subclassResponsibility! |
Free forum by Nabble | Edit this page |