-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
aafa5a0
commit 7a78f84
Showing
5 changed files
with
74 additions
and
26 deletions.
There are no files selected for viewing
40 changes: 40 additions & 0 deletions
40
repository/OpenPonk-Core/StFileBrowserBookmark.extension.st
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,40 @@ | ||
Extension { #name : 'StFileBrowserBookmark' } | ||
|
||
{ #category : '*OpenPonk-Core' } | ||
StFileBrowserBookmark class >> defaultBookmarks [ | ||
|
||
| presets | | ||
self flag: 'Remove (let NewTools to replace it) in Pharo 13'. | ||
presets := { | ||
self home. | ||
self workingDirectory. | ||
self desktop. | ||
self documents. | ||
self downloads }. | ||
|
||
^ OrderedCollection with: (StFileBrowserGroupBookmark | ||
name: 'Bookmarks' | ||
collection: presets | ||
iconName: #book) | ||
] | ||
|
||
{ #category : '*OpenPonk-Core' } | ||
StFileBrowserBookmark class >> root [ | ||
|
||
self flag: 'Remove in Pharo 13'. | ||
^ self | ||
name: '/' | ||
location: FileLocator root | ||
icon: (self iconNamed: #smallWindow) | ||
] | ||
|
||
{ #category : '*OpenPonk-Core' } | ||
StFileBrowserBookmark class >> windowsDrives [ | ||
|
||
self flag: 'Remove in Pharo 13'. | ||
^ FileLocator root asFileReference directories collect: [ :each | | ||
self | ||
name: each basename | ||
location: each | ||
icon: (self iconNamed: #smallWindow) ] | ||
] |
14 changes: 14 additions & 0 deletions
14
repository/OpenPonk-Core/StFileSystemItemWrapper.extension.st
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,14 @@ | ||
Extension { #name : 'StFileSystemItemWrapper' } | ||
|
||
{ #category : '*OpenPonk-Core' } | ||
StFileSystemItemWrapper class >> roots [ | ||
|
||
self flag: 'Remove (let it be replaced by NewTools version) in Pharo 13'. | ||
^ Smalltalk os isWindows | ||
ifTrue: [ | ||
FileSystem root directories | ||
select: [ :each | each exists and: [ each isReadable ] ] | ||
thenCollect: [ :each | StRootDriveWrapper on: each ] ] | ||
ifFalse: [ | ||
Array with: (StRootDirectoryWrapper on: FileSystem root) ] | ||
] |
This file was deleted.
Oops, something went wrong.
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