-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[feenkcom/gtoolkit#3703] add AsyncForkPollFuture
- Loading branch information
Showing
1 changed file
with
32 additions
and
0 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,32 @@ | ||
Extension { #name : #AsyncForkPollFuture } | ||
|
||
{ #category : #'*GToolkit-Extensions' } | ||
AsyncForkPollFuture >> gtCompositionDescription [ | ||
|
||
^ self printString asRopedText | ||
append: ': ' asRopedText; | ||
append: ((pollBlock ifNil: [ executedBlock ]) printString asRopedText foreground: | ||
BrGlamorousColors disabledButtonTextColor) | ||
] | ||
|
||
{ #category : #'*GToolkit-Extensions' } | ||
AsyncForkPollFuture >> gtSourceCodeFor: aView [ | ||
<gtView> | ||
pollBlock ifNil: [ ^ aView empty ]. | ||
|
||
^ aView forward | ||
title: 'Source code'; | ||
object: [ pollBlock ]; | ||
view: #gtSourceCodeFor: | ||
] | ||
|
||
{ #category : #'*GToolkit-Extensions' } | ||
AsyncForkPollFuture >> gtViewExecutedBlockFor: aView [ | ||
<gtView> | ||
executedBlock ifNil: [ ^ aView empty ]. | ||
|
||
^ aView forward | ||
title: 'Executed block'; | ||
object: [ executedBlock ]; | ||
view: #gtSourceCodeFor: | ||
] |