-
Notifications
You must be signed in to change notification settings - Fork 63
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
19 changed files
with
223 additions
and
29 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
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
28 changes: 28 additions & 0 deletions
28
src/Spec2-Commands/SpBrowseClassReferencesCommand.class.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,28 @@ | ||
" | ||
Browse all references to the class returned by the evaluation of the context. | ||
" | ||
Class { | ||
#name : #SpBrowseClassReferencesCommand, | ||
#superclass : #SpSystemNavigationCommand, | ||
#category : #'Spec2-Commands-Navigation' | ||
} | ||
|
||
{ #category : #default } | ||
SpBrowseClassReferencesCommand class >> defaultDescription [ | ||
^ 'Browse all references to the receiver''s class' | ||
] | ||
|
||
{ #category : #default } | ||
SpBrowseClassReferencesCommand class >> shortName [ | ||
|
||
^ 'class references' | ||
] | ||
|
||
{ #category : #execution } | ||
SpBrowseClassReferencesCommand >> execute [ | ||
| class | | ||
class := self context instanceSide. | ||
class isTrait | ||
ifTrue: [ self systemNavigation browseAllUsersOfTrait: class ] | ||
ifFalse: [ self systemNavigation browseAllCallsOnClass: class ] | ||
] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
" | ||
My context is a class, I browse the inst var refs of that class. | ||
The system navigation is in charge of executing, and will ask the user to select a variable. | ||
" | ||
Class { | ||
#name : #SpBrowseInstVarRefsCommand, | ||
#superclass : #SpSystemNavigationCommand, | ||
#category : #'Spec2-Commands-Navigation' | ||
} | ||
|
||
{ #category : #default } | ||
SpBrowseInstVarRefsCommand class >> defaultDescription [ | ||
^ 'Browse the references to instance variables' | ||
] | ||
|
||
{ #category : #default } | ||
SpBrowseInstVarRefsCommand class >> shortName [ | ||
|
||
^ 'instance variables reference' | ||
] | ||
|
||
{ #category : #executing } | ||
SpBrowseInstVarRefsCommand >> execute [ | ||
self systemNavigation browseInstVarRefs: self context | ||
] |
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,24 @@ | ||
" | ||
I browse all instances of the class returned by the evaluation of my context | ||
" | ||
Class { | ||
#name : #SpBrowseInstancesCommand, | ||
#superclass : #SpSystemDiscoveryCommand, | ||
#category : #'Spec2-Commands-Navigation' | ||
} | ||
|
||
{ #category : #default } | ||
SpBrowseInstancesCommand class >> defaultDescription [ | ||
^ 'Browse all instances of the selected class' | ||
] | ||
|
||
{ #category : #accessing } | ||
SpBrowseInstancesCommand class >> shortName [ | ||
|
||
^ 'all instances' | ||
] | ||
|
||
{ #category : #executing } | ||
SpBrowseInstancesCommand >> execute [ | ||
self context instanceSide inspectAllInstances | ||
] |
26 changes: 26 additions & 0 deletions
26
src/Spec2-Commands/SpBrowseMethodInheritanceCommand.class.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,26 @@ | ||
" | ||
I browse the inheritance of a method - my context must evaluate to a method. | ||
" | ||
Class { | ||
#name : #SpBrowseMethodInheritanceCommand, | ||
#superclass : #SpSystemNavigationCommand, | ||
#category : #'Spec2-Commands-Navigation' | ||
} | ||
|
||
{ #category : #default } | ||
SpBrowseMethodInheritanceCommand class >> defaultDescription [ | ||
^ 'Browse the hierarchy implementors of the selected method' | ||
] | ||
|
||
{ #category : #default } | ||
SpBrowseMethodInheritanceCommand class >> shortName [ | ||
|
||
^ 'method inheritance' | ||
] | ||
|
||
{ #category : #executing } | ||
SpBrowseMethodInheritanceCommand >> execute [ | ||
self systemNavigation | ||
methodHierarchyBrowserForClass: self context methodClass | ||
selector: self context selector | ||
] |
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
" | ||
Create and schedule a message set browser on all versions of the method returned by the evaluation of the context. | ||
" | ||
Class { | ||
#name : #SpBrowseMethodVersionsCommand, | ||
#superclass : #SpSystemNavigationCommand, | ||
#category : #'Spec2-Commands-Navigation' | ||
} | ||
|
||
{ #category : #default } | ||
SpBrowseMethodVersionsCommand class >> defaultDescription [ | ||
'Browse history of the method' | ||
] | ||
|
||
{ #category : #default } | ||
SpBrowseMethodVersionsCommand class >> shortName [ | ||
|
||
^ 'method versions' | ||
] | ||
|
||
{ #category : #executing } | ||
SpBrowseMethodVersionsCommand >> execute [ | ||
Smalltalk tools versionBrowser | ||
browseVersionsForClass: self context methodClass | ||
selector: self context selector | ||
] |
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
" | ||
I inspect all pointers to the object returned by the evaluation of my context | ||
" | ||
Class { | ||
#name : #SpBrowsePointersToCommand, | ||
#superclass : #SpSystemDiscoveryCommand, | ||
#category : #'Spec2-Commands-Navigation' | ||
} | ||
|
||
{ #category : #default } | ||
SpBrowsePointersToCommand class >> defaultDescription [ | ||
^ 'Browse all objects referencing the selected object' | ||
] | ||
|
||
{ #category : #accessing } | ||
SpBrowsePointersToCommand class >> shortName [ | ||
|
||
^ 'pointers to' | ||
] | ||
|
||
{ #category : #executing } | ||
SpBrowsePointersToCommand >> execute [ | ||
self context pointersTo inspect | ||
] |
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
" | ||
I browse all instances of the class (and all its subclasses) returned by the evaluation of my context | ||
" | ||
Class { | ||
#name : #SpBrowseSubInstancesCommand, | ||
#superclass : #SpSystemDiscoveryCommand, | ||
#category : #'Spec2-Commands-Navigation' | ||
} | ||
|
||
{ #category : #default } | ||
SpBrowseSubInstancesCommand class >> defaultDescription [ | ||
^ 'Browse all instances of the selected class and all its subclasses' | ||
] | ||
|
||
{ #category : #accessing } | ||
SpBrowseSubInstancesCommand class >> shortName [ | ||
|
||
^ 'all subinstances' | ||
] | ||
|
||
{ #category : #executing } | ||
SpBrowseSubInstancesCommand >> execute [ | ||
self context instanceSide inspectSubInstances | ||
] |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
" | ||
My subclasses implement commands related to the live system discovery and exploration. | ||
" | ||
Class { | ||
#name : #SpSystemDiscoveryCommand, | ||
#superclass : #SpSystemNavigationCommand, | ||
#category : #'Spec2-Commands-Navigation' | ||
} | ||
|
||
{ #category : #defaults } | ||
SpSystemDiscoveryCommand class >> defaultIconName [ | ||
^ #smallObjects | ||
] |
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