Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -255,10 +255,10 @@ BaselineOfBioSmalltalk >> customProjectAttributes [
{ #category : 'doits' }
BaselineOfBioSmalltalk >> ensureMetacelloFileDownload [

Metacello new
EpMonitor disableDuring: [ Metacello new
baseline: 'MetacelloFileDownload';
repository: 'github://hernanmd/MetacelloFileDownload';
load.
load ]
]

{ #category : 'doits' }
Expand Down
12 changes: 6 additions & 6 deletions repository/BioPharoCommon/ArchiveMember.extension.st
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
Extension { #name : #ArchiveMember }
Extension { #name : 'ArchiveMember' }

{ #category : #'*BioPharoCommon' }
{ #category : '*BioPharoCommon' }
ArchiveMember class >> fileExistsBehavior [

^ BioSettings fileExistsBehavior

]

{ #category : #'*BioPharoCommon' }
{ #category : '*BioPharoCommon' }
ArchiveMember class >> fileExistsBehavior: anObject [

BioSettings fileExistsBehavior: anObject
]

{ #category : #'*BioPharoCommon' }
{ #category : '*BioPharoCommon' }
ArchiveMember class >> setAbortOnFileExists [

^ self fileExistsBehavior: #abort
]

{ #category : #'*BioPharoCommon' }
{ #category : '*BioPharoCommon' }
ArchiveMember class >> setDontOverwriteOnFileExists [

^ self fileExistsBehavior: #okay
]

{ #category : #'*BioPharoCommon' }
{ #category : '*BioPharoCommon' }
ArchiveMember class >> setOverwriteOnFileExists [

^ self fileExistsBehavior: #retryWithOverwrite
Expand Down
62 changes: 31 additions & 31 deletions repository/BioPharoCommon/BioObject.extension.st
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Extension { #name : #BioObject }
Extension { #name : 'BioObject' }

{ #category : #'*BioPharoCommon' }
{ #category : '*BioPharoCommon' }
BioObject >> connectionRetry [
" Private - Ask for retrying attempt "

Expand All @@ -9,28 +9,28 @@ BioObject >> connectionRetry [
title: 'Would you like to try again?' translated
]

{ #category : #'*BioPharoCommon' }
BioObject >> fileDirectoryClass [
" See comment in class method "

^ self class fileDirectoryClass
]

{ #category : #'*BioPharoCommon' }
{ #category : '*BioPharoCommon' }
BioObject class >> fileDirectoryClass [
" Answer a helper class to manage file related operations "

^ FileSystem
]

{ #category : #'*BioPharoCommon' }
{ #category : '*BioPharoCommon' }
BioObject >> fileDirectoryClass [
" See comment in class method "

^ self class fileDirectoryClass
]

{ #category : '*BioPharoCommon' }
BioObject class >> fileExists: fileName [
" Answer <true> if fileName exists in receiver's workingDirectory "

^ fileName asFileReference exists
]

{ #category : #'*BioPharoCommon' }
{ #category : '*BioPharoCommon' }
BioObject class >> filesIn: pathString [
" Answer a <Collection> of file references contained in pathString "

Expand All @@ -39,14 +39,14 @@ BioObject class >> filesIn: pathString [

]

{ #category : #'*BioPharoCommon' }
{ #category : '*BioPharoCommon' }
BioObject class >> newFullFileNamed: fileName [
" Answer a FileStream for a new fileName in the receiver's configured folder "

^ fileName asFileReference writeStream
]

{ #category : #'*BioPharoCommon' }
{ #category : '*BioPharoCommon' }
BioObject class >> openFileNamed: fileName [
" Answer a <FileStream> for fileName in the image directory. Assume the file exists "

Expand All @@ -55,7 +55,7 @@ BioObject class >> openFileNamed: fileName [
ifNil: [ self signalInvalidObject: 'Please specify a file' ]
]

{ #category : #'*BioPharoCommon' }
{ #category : '*BioPharoCommon' }
BioObject class >> openFullFileNamed: fileName [
" Answer a FileStream for fileName in the image directory. Assume the file exists "

Expand All @@ -64,7 +64,7 @@ BioObject class >> openFullFileNamed: fileName [
ifNil: [ self signalInvalidObject: 'Please specify a file' ]
]

{ #category : #'*BioPharoCommon' }
{ #category : '*BioPharoCommon' }
BioObject class >> removeFileNamed: fileName [
" Remove fileName in the receiver's current folder "

Expand All @@ -75,50 +75,50 @@ BioObject class >> removeFileNamed: fileName [
nextPutAll: fileName ]) asFileReference delete.
]

{ #category : #'*BioPharoCommon' }
{ #category : '*BioPharoCommon' }
BioObject >> requestDirectoryPath [
" Answer a <FileReference> with selected directory "

^ self class requestDirectoryPath

]

{ #category : #'*BioPharoCommon' }
{ #category : '*BioPharoCommon' }
BioObject >> requestOpenCSVFile [
" See comment in class side "

^ self class requestOpenCSVFile
]

{ #category : #'*BioPharoCommon' }
BioObject >> requestOpenCSVFile: aBlock [
" See comment in class side "

^ self class requestOpenCSVFile: aBlock
]

{ #category : #'*BioPharoCommon' }
{ #category : '*BioPharoCommon' }
BioObject class >> requestOpenCSVFile: actionBlock [
" Open request dialog to select a CSV file and perform actionBlock if selected path is valid "

^ self requestOpenCSVFile ifNotNil: actionBlock
]

{ #category : #'*BioPharoCommon' }
BioObject >> slash [
{ #category : '*BioPharoCommon' }
BioObject >> requestOpenCSVFile: aBlock [
" See comment in class side "

^ self class slash
^ self class requestOpenCSVFile: aBlock
]

{ #category : #'*BioPharoCommon' }
{ #category : '*BioPharoCommon' }
BioObject class >> slash [
"Return a <String> with the path delimiter used by this filesystem."

^ FileSystem disk delimiter asString
]

{ #category : #'*BioPharoCommon' }
{ #category : '*BioPharoCommon' }
BioObject >> slash [
" See comment in class side "

^ self class slash
]

{ #category : '*BioPharoCommon' }
BioObject class >> workingDirectory [
" Answer a <String> with the default directory "

Expand Down
6 changes: 3 additions & 3 deletions repository/BioPharoCommon/DateAndTime.extension.st
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Extension { #name : #DateAndTime }
Extension { #name : 'DateAndTime' }

{ #category : #'*BioPharoCommon' }
{ #category : '*BioPharoCommon' }
DateAndTime >> printYMDHMS [
" Answer the receiver's date <String> in user-friendly format "

Expand All @@ -10,7 +10,7 @@ DateAndTime >> printYMDHMS [
self printHMSOn: s ]
]

{ #category : #'*BioPharoCommon' }
{ #category : '*BioPharoCommon' }
DateAndTime >> printYMDHMSeparatedBy: aCharacter [
" Answer the receiver's date <String> in user-friendly format "

Expand Down
18 changes: 0 additions & 18 deletions repository/BioPharoCommon/FileList.extension.st

This file was deleted.

4 changes: 2 additions & 2 deletions repository/BioPharoCommon/FileSystem.extension.st
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Extension { #name : #FileSystem }
Extension { #name : 'FileSystem' }

{ #category : #'*BioPharoCommon' }
{ #category : '*BioPharoCommon' }
FileSystem >> fullNameFor: fileName [
"Return a corrected, fully-qualified name for the given file name. If the given name is already a full path (i.e., it contains a delimiter character), assume it is already a fully-qualified name. Otherwise, prefix it with the path to this directory. In either case, correct the local part of the file name."
"Details: Note that path relative to a directory, such as '../../foo' are disallowed by this algorithm. Also note that this method is tolerent of a nil argument -- is simply returns nil in this case."
Expand Down
4 changes: 2 additions & 2 deletions repository/BioPharoCommon/MacOSXPlatform.extension.st
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Extension { #name : #MacOSXPlatform }
Extension { #name : 'MacOSXPlatform' }

{ #category : #'*BioPharoCommon' }
{ #category : '*BioPharoCommon' }
MacOSXPlatform >> execNameFor: aString [
" Private - See superimplementor's comment "

Expand Down
7 changes: 0 additions & 7 deletions repository/BioPharoCommon/RPackage.extension.st

This file was deleted.

4 changes: 2 additions & 2 deletions repository/BioPharoCommon/SequenceableCollection.extension.st
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Extension { #name : #SequenceableCollection }
Extension { #name : 'SequenceableCollection' }

{ #category : #'*BioPharoCommon' }
{ #category : '*BioPharoCommon' }
SequenceableCollection >> asFileCollection [
" Answer a <Collection> of file streams for the receiver elements, each one representing a path "

Expand Down
4 changes: 2 additions & 2 deletions repository/BioPharoCommon/SettingTreeBuilder.extension.st
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Extension { #name : #SettingTreeBuilder }
Extension { #name : 'SettingTreeBuilder' }

{ #category : #'*BioPharoCommon' }
{ #category : '*BioPharoCommon' }
SettingTreeBuilder >> bioPharoSettings [

^ self systemsettings
Expand Down
4 changes: 2 additions & 2 deletions repository/BioPharoCommon/UnixPlatform.extension.st
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Extension { #name : #UnixPlatform }
Extension { #name : 'UnixPlatform' }

{ #category : #'*BioPharoCommon' }
{ #category : '*BioPharoCommon' }
UnixPlatform >> execNameFor: aString [
" Private - See superimplementor's comment "

Expand Down
4 changes: 2 additions & 2 deletions repository/BioPharoCommon/Win32Platform.extension.st
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Extension { #name : #Win32Platform }
Extension { #name : 'Win32Platform' }

{ #category : #'*BioPharoCommon' }
{ #category : '*BioPharoCommon' }
Win32Platform >> execNameFor: aString [
" Private - See superimplementor's comment "

Expand Down
2 changes: 1 addition & 1 deletion repository/BioPharoCommon/package.st
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Package { #name : #BioPharoCommon }
Package { #name : 'BioPharoCommon' }
Loading
Loading