-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Issue 12232 More enhancement in MorphTreeMorph https://pharo.fogbugz.com/f/cases/12232/More-enhancement-in-MorphTreeMorph - Issue 12179 Nautilus - Add package filter input box https://pharo.fogbugz.com/f/cases/12179 http://files.pharo.org/image/30/30593.zip
- Loading branch information
Jenkins Build Server
authored and
ci
committed
Nov 24, 2013
1 parent
956cac7
commit 0132a14
Showing
22 changed files
with
348 additions
and
19 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
3 changes: 3 additions & 0 deletions
3
Morphic-Base.package/MorphTreeNodeModel.class/instance/protocol/isExpanded.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 @@ | ||
isExpanded | ||
|
||
^ false |
1 change: 1 addition & 0 deletions
1
Morphic-Base.package/MorphTreeNodeModel.class/instance/protocol/isExpanded_.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 @@ | ||
isExpanded: aBoolean |
3 changes: 2 additions & 1 deletion
3
Morphic-Base.package/MorphTreeNodeMorph.class/instance/accessing/isExpanded_.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,4 @@ | ||
isExpanded: aBoolean | ||
|
||
isExpanded := aBoolean | ||
isExpanded := aBoolean. | ||
self complexContents isExpanded: aBoolean |
2 changes: 2 additions & 0 deletions
2
Morphic-Base.package/MorphTreeNodeMorph.class/instance/accessing/setSelectedSilently_.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,2 +1,4 @@ | ||
setSelectedSilently: aBoolean | ||
|
||
selected := aBoolean. | ||
self complexContents selected: aBoolean |
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
8 changes: 8 additions & 0 deletions
8
...age/MorphTreeNodeMorph.class/instance/private/selectedWithoutNotifyingComplexContents_.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 @@ | ||
selectedWithoutNotifyingComplexContents: aBoolean | ||
selected = aBoolean | ||
ifTrue: [^ self]. | ||
aBoolean | ||
ifTrue: [container selectedMorphList add: self] | ||
ifFalse: [selected | ||
ifNotNil: [container selectedMorphList remove: self]]. | ||
selected := aBoolean. |
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: 3 additions & 0 deletions
3
Nautilus.package/PackageTreeModel.class/instance/package filter/packageMatchPattern_.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 @@ | ||
packageMatchPattern: aRPackage | ||
|
||
^ self model packageMatchPattern: aRPackage |
7 changes: 4 additions & 3 deletions
7
Nautilus.package/PackageTreeModel.class/instance/private/packagesAsNodes.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,5 @@ | ||
packagesAsNodes | ||
^ (self model packages | ||
collect: [ :each | PackageTreePackageNodeModel with: each model: self ]) | ||
sorted: [ :a :b | a name < b name ] | ||
^ ((self model packages | ||
select: [ :each | self packageMatchPattern: each ] | ||
thenCollect: [ :each | PackageTreePackageNodeModel with: each model: self ]) | ||
sorted: [ :a :b | a name < b name ]) |
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,5 +1,5 @@ | ||
NautilusUI subclass: #PackageTreeNautilusUI | ||
instanceVariableNames: '' | ||
instanceVariableNames: 'packagePattern' | ||
classVariableNames: '' | ||
poolDictionaries: '' | ||
category: 'Nautilus-Tree' |
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
6 changes: 6 additions & 0 deletions
6
Nautilus.package/PackageTreeNautilusUI.class/instance/package filter/buildPackageSearch.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 @@ | ||
buildPackageSearch | ||
"It is an search dialog which filters package list" | ||
^ SearchMorph new | ||
model: self; | ||
updateSelector: #packageSearchUpdate:; | ||
yourself |
4 changes: 4 additions & 0 deletions
4
....package/PackageTreeNautilusUI.class/instance/package filter/ensureSafePackagePattern_.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,4 @@ | ||
ensureSafePackagePattern: aPattern | ||
^ [ aPattern asRegexIgnoringCase ] | ||
on: RegexSyntaxError | ||
do: [ :ex | self fixPackagePattern: aPattern ex: ex ] |
7 changes: 7 additions & 0 deletions
7
...ilus.package/PackageTreeNautilusUI.class/instance/package filter/fixPackagePattern_ex_.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,7 @@ | ||
fixPackagePattern: aPattern ex: anException | ||
| fixedPattern | | ||
fixedPattern := aPattern copyReplaceAll: '*' with: '.*' . | ||
|
||
^ [ fixedPattern asRegexIgnoringCase ] | ||
on: RegexSyntaxError | ||
do: [ :ex | '.*' asRegexIgnoringCase ] |
3 changes: 3 additions & 0 deletions
3
Nautilus.package/PackageTreeNautilusUI.class/instance/package filter/packageMatchPattern_.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 @@ | ||
packageMatchPattern: aRPackage | ||
|
||
^ self packagePattern search: aRPackage name |
2 changes: 2 additions & 0 deletions
2
Nautilus.package/PackageTreeNautilusUI.class/instance/package filter/packagePattern.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,2 @@ | ||
packagePattern | ||
^ packagePattern ifNil: [ '.*' asRegexIgnoringCase ] |
5 changes: 5 additions & 0 deletions
5
Nautilus.package/PackageTreeNautilusUI.class/instance/package filter/packageSearchUpdate_.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 @@ | ||
packageSearchUpdate: aPattern | ||
packagePattern := (aPattern isNil or: [ aPattern trimBoth isEmpty ]) | ||
ifTrue: [ '.*' asRegexIgnoringCase ] | ||
ifFalse: [ self ensureSafePackagePattern: aPattern ]. | ||
self updatePackages |
3 changes: 3 additions & 0 deletions
3
Nautilus.package/PackageTreeNautilusUI.class/instance/package filter/updatePackages.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 @@ | ||
updatePackages | ||
|
||
list buildContents |
Oops, something went wrong.