-
Notifications
You must be signed in to change notification settings - Fork 85
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
Showing
23 changed files
with
81 additions
and
21 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
2 changes: 1 addition & 1 deletion
2
Iceberg-UI.package/IceCachedValue.class/instance/invalidateOn.from..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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
initialization | ||
invalidateOn: announcementType from: announcer | ||
announcer subscribe: announcementType send: #reset to: self | ||
announcer when: announcementType send: #reset to: self |
3 changes: 3 additions & 0 deletions
3
Iceberg-UI.package/IceCloneRepositoryModel.class/instance/configureRepository..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,3 @@ | ||
private | ||
configureRepository: aRepository | ||
aRepository register |
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
10 changes: 10 additions & 0 deletions
10
Iceberg-UI.package/IceCreateRepositoryModel.class/instance/guessSubDirectory.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,10 @@ | ||
actions | ||
guessSubDirectory | ||
"If a '.filetree' file, there is a high chance that this is a smalltalk code directory. In that case, the directory containing it is probably the subdirectory of the repository." | ||
|
||
| location | | ||
location := localDirectoryLocation location. | ||
location files | ||
detect: [ :file | file basename = '.filetree' ] | ||
ifFound: [ :dir | subdirectory text: '' ] | ||
ifNone: [ location directories do: [ :directory | directory files detect: [ :file | file basename = '.filetree' ] ifFound: [ :file | subdirectory text: directory basename ] ] ] |
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
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
5 changes: 5 additions & 0 deletions
5
Iceberg-UI.package/IceLocationModel.class/instance/onChoose..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,5 @@ | ||
hook | ||
onChoose: aBlockClosure | ||
"I allow to set a hook to execute when the user select a location." | ||
|
||
chooseBlock := aBlockClosure |
3 changes: 3 additions & 0 deletions
3
Iceberg-UI.package/IceLocationModel.class/instance/onChoose.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,3 @@ | ||
hook | ||
onChoose | ||
^ chooseBlock |
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
3 changes: 1 addition & 2 deletions
3
Iceberg-UI.package/IceRepositoryModel.class/instance/restore.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 |
---|---|---|
@@ -1,4 +1,3 @@ | ||
actions | ||
restore | ||
self repository backend cloneRepository. | ||
self repository refresh. | ||
(IceRestoreRepositoryModel repository: self repository) openWithSpec |
Empty file.
3 changes: 3 additions & 0 deletions
3
Iceberg-UI.package/IceRestoreRepositoryModel.class/class/new.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,3 @@ | ||
instance creation | ||
new | ||
self error: 'Use #repository:' |
5 changes: 5 additions & 0 deletions
5
Iceberg-UI.package/IceRestoreRepositoryModel.class/class/repository..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,5 @@ | ||
instance creation | ||
repository: aRepository | ||
^ self basicNew | ||
initializeRepository: aRepository; | ||
yourself |
6 changes: 6 additions & 0 deletions
6
Iceberg-UI.package/IceRestoreRepositoryModel.class/instance/configureRepository..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,6 @@ | ||
private | ||
configureRepository: aRepository | ||
repository location = aRepository location | ||
ifFalse: [ repository location: aRepository location ]. | ||
repository subdirectory = aRepository subdirectory | ||
ifFalse: [ repository subdirectory: aRepository subdirectory ] |
8 changes: 8 additions & 0 deletions
8
Iceberg-UI.package/IceRestoreRepositoryModel.class/instance/initializeRepository..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,8 @@ | ||
initialization | ||
initializeRepository: aRepository | ||
repository := aRepository. | ||
self initialize. | ||
repository location ifNotNil: [ | ||
remoteUrl text: repository origin url. | ||
localDirectoryLocation location: repository location ]. | ||
subdirectory text: repository subdirectory |
13 changes: 13 additions & 0 deletions
13
Iceberg-UI.package/IceRestoreRepositoryModel.class/properties.json
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,13 @@ | ||
{ | ||
"commentStamp" : "", | ||
"super" : "IceCloneRepositoryModel", | ||
"category" : "Iceberg-UI-View", | ||
"classinstvars" : [ ], | ||
"pools" : [ ], | ||
"classvars" : [ ], | ||
"instvars" : [ | ||
"repository" | ||
], | ||
"name" : "IceRestoreRepositoryModel", | ||
"type" : "normal" | ||
} |
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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
SystemOrganization addCategory: #Iceberg! | ||
SystemOrganization addCategory: 'Iceberg-Adapters'! | ||
SystemOrganization addCategory: 'Iceberg-Announcements'! | ||
SystemOrganization addCategory: 'Iceberg-Changes'! | ||
SystemOrganization addCategory: 'Iceberg-Core'! | ||
SystemOrganization addCategory: 'Iceberg-Core-Remotes'! | ||
SystemOrganization addCategory: 'Iceberg-Errors'! | ||
SystemOrganization addCategory: 'Iceberg-Security'! | ||
SystemOrganization addCategory: #'Iceberg-Adapters'! | ||
SystemOrganization addCategory: #'Iceberg-Announcements'! | ||
SystemOrganization addCategory: #'Iceberg-Changes'! | ||
SystemOrganization addCategory: #'Iceberg-Core'! | ||
SystemOrganization addCategory: #'Iceberg-Core-Remotes'! | ||
SystemOrganization addCategory: #'Iceberg-Errors'! | ||
SystemOrganization addCategory: #'Iceberg-Security'! |