-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #213 from OpenSmock/Issue_0212
- Loading branch information
Showing
4 changed files
with
94 additions
and
66 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
Class { | ||
#name : #PyramidBreakpoint, | ||
#superclass : #Breakpoint, | ||
#instVars : [ | ||
'whenHitDo' | ||
], | ||
#category : #'Pyramid-Bloc-plugin-edit-on-running' | ||
} | ||
|
||
{ #category : #accessing } | ||
PyramidBreakpoint class >> removeBreakpoint: aBreakpoint [ | ||
|
||
"Do nothing" | ||
] | ||
|
||
{ #category : #api } | ||
PyramidBreakpoint >> breakInContext: aContext node: aNode [ | ||
|
||
self class notifyBreakpointHit: self inContext: aContext node: aNode. | ||
self isEnabled ifFalse: [ ^ self ]. | ||
self onCount ifTrue: [ | ||
self increaseCount = self breakOnCount ifFalse: [ ^ self ] ]. | ||
self once ifTrue: [ self disable ]. | ||
self whenHitDo value: aContext. | ||
] | ||
|
||
{ #category : #initialization } | ||
PyramidBreakpoint >> initialize [ | ||
|
||
super initialize. | ||
whenHitDo := [ :c | ] | ||
] | ||
|
||
{ #category : #testing } | ||
PyramidBreakpoint >> isInstalled [ | ||
|
||
^ self link methods isNotEmpty | ||
] | ||
|
||
{ #category : #accessing } | ||
PyramidBreakpoint >> whenHitDo [ | ||
|
||
^ whenHitDo | ||
] | ||
|
||
{ #category : #accessing } | ||
PyramidBreakpoint >> whenHitDo: anObject [ | ||
|
||
whenHitDo := anObject | ||
] |
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