Skip to content

Commit

Permalink
Generalize SquotTonelPackageBrowser to SquotCodePackageBrowser
Browse files Browse the repository at this point in the history
  • Loading branch information
MariusDoe committed Apr 18, 2024
1 parent c39471f commit dc61ff0
Show file tree
Hide file tree
Showing 48 changed files with 34 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
mappers
replaceMapper: aMapper with: anotherMapper
self mappers at: (self mappers indexOf: aMapper) put: anotherMapper.
self changed: #mappers.
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@
"removeCredentialsFor:" : "mad 10/17/2023 12:01",
"removeMapper:" : "mad 9/20/2023 17:30",
"rename" : "mad 12/8/2023 20:04",
"replaceMapper:with:" : "mad 4/18/2024 18:22",
"repository" : "mad 11/30/2023 17:02",
"repositoryExists" : "mad 11/30/2023 17:03",
"requestAndMoveToNewRepositoryLocation" : "mad 12/22/2023 17:49",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
as yet unclassified
menu
projectListMenu: aMenu for: aWorkingCopy
aWorkingCopy ifNil: [^ self].
aMenu
add: 'Manage packages'
target: SquotTonelPackageBrowser
target: SquotCodePackageBrowser
selector: #openOnWorkingCopy:
argument: aWorkingCopy.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"encodingName" : "mad 4/18/2024 18:11",
"package:" : "mad 4/21/2023 23:40",
"package:path:" : "mad 4/21/2023 23:41",
"projectListMenu:for:" : "mad 11/3/2023 15:10" },
"projectListMenu:for:" : "mad 4/15/2024 20:27" },
"instance" : {
"=" : "mad 9/26/2023 15:20",
"aboutToStyle:with:requestor:at:" : "mad 11/7/2023 12:09",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
actions
actionChangeEncoding
| mapper newMapper |
mapper := self selectedMapper.
newMapper := mapper changeEncoding ifNil: [^ self].
self workingCopy replaceMapper: mapper with: newMapper.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ actionEditPackagePath
('The package will be stored in a subdirectory of the path below, named ''{1}''. ',
'Thus, the package is currently stored in the directory ''{2}''.' format: {
packageName.
SquotPathUtilities asString: mapper pathWithPackage.
SquotPathUtilities asString: mapper packagePath.
})
initialAnswer: mapper path)
ifNil: [^ self].
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ buildButtons: builder
^ SquotGUIUtilities buildButtons: {
self buildAddPackageButton: builder.
self buildEditPackagePathButton: builder.
self buildChangeEncodingButton: builder.
self buildRemovePackageButton: builder.
} with: builder
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
toolbuilder
buildChangeEncodingButton: builder
^ builder pluggableActionButtonSpec new
model: self;
action: #actionChangeEncoding;
enabled: #isSelectedPackageMapped;
label: 'Change package encoding';
help: 'Change which encoding is used to serialize the package to the repository.';
yourself
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
accessing
mappers
^ self workingCopy mappersOfKind: SquotCodeMapper
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@
"openOnWorkingCopy:" : "mad 9/19/2023 15:47" },
"instance" : {
"actionAddPackage" : "mad 11/27/2023 11:37",
"actionEditPackagePath" : "mad 11/14/2023 19:00",
"actionChangeEncoding" : "mad 4/18/2024 18:25",
"actionEditPackagePath" : "mad 10/21/2023 22:54",
"actionRemovePackage" : "mad 11/27/2023 11:39",
"buildAddPackageButton:" : "mad 9/19/2023 16:23",
"buildAutoSaveNote:" : "mad 10/1/2023 17:58",
"buildButtons:" : "mad 9/19/2023 16:22",
"buildButtons:" : "mad 4/18/2024 18:23",
"buildChangeEncodingButton:" : "mad 4/18/2024 18:23",
"buildEditPackagePathButton:" : "mad 9/19/2023 16:24",
"buildLayout:" : "mad 10/1/2023 17:57",
"buildMainLayout:" : "mad 9/19/2023 15:51",
Expand All @@ -26,7 +28,7 @@
"isSelectedPackageUnmapped" : "mad 9/19/2023 16:23",
"mappedPackageList" : "mad 9/19/2023 15:55",
"mapperFor:" : "mad 11/27/2023 11:31",
"mappers" : "mad 9/20/2023 18:12",
"mappers" : "mad 4/18/2024 18:24",
"mappersChanged" : "mad 9/19/2023 16:18",
"open" : "mad 9/19/2023 15:47",
"packageOrganizer" : "mad 9/19/2023 15:45",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"workingCopy",
"packageOrganizer",
"selectedPackageName" ],
"name" : "SquotTonelPackageBrowser",
"name" : "SquotCodePackageBrowser",
"pools" : [
],
"super" : "Model",
Expand Down

This file was deleted.

0 comments on commit dc61ff0

Please sign in to comment.