Skip to content

Commit

Permalink
Update to work on both P11 and P12.
Browse files Browse the repository at this point in the history
Use FinalizationRegistry instead of WeakRegistry
  • Loading branch information
guillep committed Feb 5, 2024
1 parent fc8f262 commit 8dcba04
Show file tree
Hide file tree
Showing 10 changed files with 353 additions and 337 deletions.
10 changes: 6 additions & 4 deletions repository/OldFileStream/ManifestDeprecatedFileStream.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@
Deprecated package including the old file stream implementations
"
Class {
#name : #ManifestDeprecatedFileStream,
#superclass : #PackageManifest,
#category : 'OldFileStream-Manifest'
#name : 'ManifestDeprecatedFileStream',
#superclass : 'PackageManifest',
#category : 'OldFileStream-Manifest',
#package : 'OldFileStream',
#tag : 'Manifest'
}

{ #category : #deprecation }
{ #category : 'deprecation' }
ManifestDeprecatedFileStream class >> isDeprecated [
^true
]
20 changes: 11 additions & 9 deletions repository/OldFileStream/OldFileExistsException.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -2,46 +2,48 @@
Notify when file exists
"
Class {
#name : #OldFileExistsException,
#superclass : #FileException,
#name : 'OldFileExistsException',
#superclass : 'FileException',
#instVars : [
'fileClass'
],
#category : 'OldFileStream-Exceptions'
#category : 'OldFileStream-Exceptions',
#package : 'OldFileStream',
#tag : 'Exceptions'
}

{ #category : #exceptioninstantiator }
{ #category : 'exceptioninstantiator' }
OldFileExistsException class >> fileName: aFileName fileClass: aClass [
^ self new
fileName: aFileName;
fileClass: aClass
]

{ #category : #deprecation }
{ #category : 'deprecation' }
OldFileExistsException class >> isDeprecated [
^true
]

{ #category : #exceptiondescription }
{ #category : 'exceptiondescription' }
OldFileExistsException >> defaultAction [
"The default action taken if the exception is signaled."

^ UIManager default fileExistsDefaultAction: self

]

{ #category : #accessing }
{ #category : 'accessing' }
OldFileExistsException >> file [

^ self fileClass fileNamed: fileName
]

{ #category : #accessing }
{ #category : 'accessing' }
OldFileExistsException >> fileClass [
^ fileClass ifNil: [OldStandardFileStream]
]

{ #category : #accessing }
{ #category : 'accessing' }
OldFileExistsException >> fileClass: aClass [
fileClass := aClass
]
Loading

0 comments on commit 8dcba04

Please sign in to comment.