Skip to content

Commit

Permalink
Merge pull request pharo-vcs#1829 from jecisc/ui
Browse files Browse the repository at this point in the history
Cut dependencies of Iceberg on UI
  • Loading branch information
Ducasse committed Jun 25, 2024
2 parents 4c9079e + 227e690 commit 1081fb5
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 44 deletions.
19 changes: 19 additions & 0 deletions Iceberg-TipUI/IceMergeResolutionRequest.extension.st
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Extension { #name : 'IceMergeResolutionRequest' }

{ #category : '*Iceberg-TipUI' }
IceMergeResolutionRequest >> defaultAction [

| window mergeMorph |
mergeMorph := (IceTipMergeMorph forMerger: merge).

mergeMorph
fromDescription: merge sourceDescription;
toDescription: merge targetDescription.

window := mergeMorph newWindow
title: 'Merge';
yourself.

window openModal.
^ mergeMorph merged
]
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ This is useful to guarantee the correct keeping of the changes.
Class {
#name : 'IceExperimentalFeature',
#superclass : 'IceWarning',
#category : 'Iceberg-TipUI-Exceptions',
#package : 'Iceberg-TipUI',
#tag : 'Exceptions'
#category : 'Iceberg-Errors',
#package : 'Iceberg',
#tag : 'Errors'
}

{ #category : 'visiting' }
Expand Down
18 changes: 0 additions & 18 deletions Iceberg/IceMergeResolutionRequest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,6 @@ Class {
#tag : 'Errors'
}

{ #category : 'exception description' }
IceMergeResolutionRequest >> defaultAction [

| window mergeMorph |
mergeMorph := (IceTipMergeMorph forMerger: merge).

mergeMorph
fromDescription: merge sourceDescription;
toDescription: merge targetDescription.

window := mergeMorph newWindow
title: 'Merge';
yourself.

window openModal.
^ mergeMorph merged
]

{ #category : 'accessing' }
IceMergeResolutionRequest >> merge [
^ merge
Expand Down
18 changes: 0 additions & 18 deletions Iceberg/IceMetacelloRepositoryAdapter.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -124,24 +124,6 @@ IceMetacelloRepositoryAdapter >> loadPackageNamed: aName intoLoader: aLoader [
self }
]

{ #category : 'MonticelloGUI' }
IceMetacelloRepositoryAdapter >> morphicOpen: workingCopy [

| shouldOpenIceberg |
shouldOpenIceberg :=
SpApplication defaultApplication newConfirm
title: 'Browsing an iceberg repository';
label: ('{1} belongs to {2} and cannot be browsed here.
Do you want to open the Iceberg Browser instead?' format: {
workingCopy packageName.
self repository name });
acceptLabel: 'Open';
cancelLabel: 'Cancel';
openModal.
shouldOpenIceberg ifFalse: [ ^ self ].
IceTipRepositoriesBrowser new open
]

{ #category : 'accessing' }
IceMetacelloRepositoryAdapter >> packageNamed: aName [

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
"
I'm a general warning in the context of iceberg UI.
I'm a general warning in the context of iceberg.
"
Class {
#name : 'IceWarning',
#superclass : 'Warning',
#category : 'Iceberg-TipUI-Exceptions',
#package : 'Iceberg-TipUI',
#tag : 'Exceptions'
#category : 'Iceberg-Errors',
#package : 'Iceberg',
#tag : 'Errors'
}

{ #category : 'visiting' }
Expand Down
2 changes: 1 addition & 1 deletion scripts/preLoading.st
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Otherwise obsolete instances will stay".
MCWorkingCopy registry becomeForward: (MCWorkingCopy registry select: [ :each | each packageName = 'MonticelloMocks' ]).

"Remove iceberg from system (so I can reload it)"
MetacelloPharoPlatform select.
MetacelloPlatform select.

#(
'Calypso-SystemPlugins-Monticello-Browser'
Expand Down

0 comments on commit 1081fb5

Please sign in to comment.