-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'Pharo12' of github.com:pharo-spec/NewTools into dev-1.0
- Loading branch information
Showing
18 changed files
with
170 additions
and
55 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
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
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
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,31 @@ | ||
Extension { #name : #RPackage } | ||
|
||
{ #category : #'*NewTools-Inspector-Extensions' } | ||
RPackage >> baselineInspector [ | ||
|
||
<inspectorPresentationOrder: 2 title: 'Belongs to Baselines'> | ||
| items | | ||
items := BaselineOf allSubclasses select: [ :e | e allPackageNames includes: self name ]. | ||
^ SpListPresenter new | ||
items: items; | ||
yourself | ||
] | ||
|
||
{ #category : #'*NewTools-Inspector-Extensions' } | ||
RPackage >> overwiew [ | ||
|
||
<inspectorPresentationOrder: 1 title: 'Overwiew'> | ||
| items | | ||
items :={ 'Classes' -> self classes . 'Defined classes' -> self definedClasses . 'Methods' -> self methods }. | ||
items := items collect: [ :e | StInspectorAssociationNode hostObject: e ]. | ||
^ SpTablePresenter new | ||
alternateRowsColor; | ||
items: items; | ||
addColumn: (SpStringTableColumn | ||
title: 'Title' | ||
evaluated: [ :e | e key ] ); | ||
addColumn: (SpStringTableColumn | ||
title: 'Value' | ||
evaluated: [ :e | e value size ] ); | ||
yourself | ||
] |
38 changes: 38 additions & 0 deletions
38
src/NewTools-Inspector/StInspectorTransmissionNode.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,38 @@ | ||
" | ||
I am an inspector node that allows the user to specify a custom transmission. I am made to be used inside the Inspector. The user can specify the `transmissionBlock:` | ||
" | ||
Class { | ||
#name : #StInspectorTransmissionNode, | ||
#superclass : #StInspectorNode, | ||
#instVars : [ | ||
'transmissionBlock' | ||
], | ||
#category : #'NewTools-Inspector-Model' | ||
} | ||
|
||
{ #category : #'instance initialization' } | ||
StInspectorTransmissionNode class >> hostObject: anObject transmissionBlock: aFullBlockClosure [ | ||
|
||
^ self new | ||
hostObject: anObject; | ||
transmissionBlock: aFullBlockClosure; | ||
yourself | ||
] | ||
|
||
{ #category : #accessing } | ||
StInspectorTransmissionNode >> key [ | ||
|
||
^ self hostObject | ||
] | ||
|
||
{ #category : #accessing } | ||
StInspectorTransmissionNode >> rawValue [ | ||
|
||
^ transmissionBlock value: hostObject | ||
] | ||
|
||
{ #category : #accessing } | ||
StInspectorTransmissionNode >> transmissionBlock: aBlock [ | ||
|
||
transmissionBlock := aBlock | ||
] |
Oops, something went wrong.