Squeak
  links to this page:    
View this PageEdit this PageUploads to this PageHistory of this PageTop of the SwikiRecent ChangesSearch the SwikiHelp Guide
ProjectLoading
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


The method
 ProjectLoading openFromDirectory: aDirectory andFileName: aFileName
is called by
 TheWorldMenu loadProject

ProjectLoading
 openFromDirectory: aDirectory andFileName: aFileName

	Project current
		do: [| fileAndDir |
			ProgressNotification signal: '1:foundMostRecent'.
			fileAndDir := self bestAccessToFileName: aFileName andDirectory: aDirectory.
			self 
				openName: aFileName 
				stream: fileAndDir first 
				fromDirectory: fileAndDir second
				withProjectView: nil 
                    ]
		withProgressInfoOn: nil
		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.