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
6 changes: 6 additions & 0 deletions src/NewTools-FileBrowser/StFileBrowserGroupBookmark.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ StFileBrowserGroupBookmark class >> name: aName collection: aCollection iconName
yourself
]

{ #category : 'adding' }
StFileBrowserGroupBookmark >> addBookmark: aBookmark [

self collection add: aBookmark
]

{ #category : 'accessing' }
StFileBrowserGroupBookmark >> children [
^ collection
Expand Down
13 changes: 13 additions & 0 deletions src/NewTools-FileBrowser/StFileSystemModel.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,19 @@ Class {
#tag : 'UI'
}

{ #category : 'adding' }
StFileSystemModel class >> addBookmarkNamed: aString location: aLocation iconName: aName [
"Example: `StFileSystemModel addBookmarkNamed: 'pharo' location: FileLocator preferences / 'pharo' iconName: #git`"

self bookmarks anyOne addBookmark: (StFileBrowserBookmark name: aString location: aLocation icon: (self iconNamed: aName))
]

{ #category : 'accessing - bookmarks' }
StFileSystemModel class >> bookmarks [

^ Bookmarks
]

{ #category : 'defaults' }
StFileSystemModel class >> defaultDirectory [
"Answer a <FileReference> with the default directory for opening the file browser and dialogs"
Expand Down
Loading