Last updated at 11:40 am UTC on 19 October 2017
The ProjectLoading class has methods to load projects files (pr files).
Two are shown below
1.ProjectLoading openOn: stream
ProjectLoading openOn: stream
is called when you drop a pr file onto the desktop.
stream contains the content of the project file.
The calls comes from an instance of ExternalDropHandler in #handle:in:dropEvent:
2. ProjectLoading openFromDirectory: aDirectory andFileName: aFileName
ProjectLoading openFromDirectory: aDirectory andFileName: aFileName
is called by
openFromDirectory: aDirectory andFileName: aFileName
do: [| fileAndDir |
ProgressNotification signal: '1:foundMostRecent'.
fileAndDir := self bestAccessToFileName: aFileName andDirectory: aDirectory.
stream: fileAndDir first
fromDirectory: fileAndDir second
label: 'project loading'
details: ProjectLoading steps
3. Notes about Squeak 6.0a
Squeak 6.0a can load pr files written in an earlier version such as 3.8.1. Depending on the project there are issues with conversion of classes.
For this it uses an ImageSegmentLoader which is implemented in Smalltalk code.