-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #514 from pharo-spec/dev-1.0
latest changes
- Loading branch information
Showing
3 changed files
with
42 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
" | ||
This is a special kind of page to point to any script file. | ||
This can be used to extend open a `StPlaygroundPagePresenter`to be used with any script referenced by a `FileReference`. | ||
Example: | ||
``` | ||
reference := 'script.st' asFileReference. | ||
(StPlaygroundPagePresenter on: (StPlaygroundScriptPage fromReference: reference)) open | ||
``` | ||
" | ||
Class { | ||
#name : #StPlaygroundScriptPage, | ||
#superclass : #StPlaygroundPage, | ||
#instVars : [ | ||
'fileReference' | ||
], | ||
#category : #'NewTools-Playground-Model' | ||
} | ||
|
||
{ #category : #accessing } | ||
StPlaygroundScriptPage >> fileReference [ | ||
|
||
^ fileReference | ||
] | ||
|
||
{ #category : #initialization } | ||
StPlaygroundScriptPage >> fromReference: aFileReference [ | ||
|
||
super fromReference: aFileReference. | ||
fileReference := aFileReference | ||
] |