Skip to content

Commit

Permalink
Use a flag for marking a forward view as not declarative [feenkcom/gt…
Browse files Browse the repository at this point in the history
  • Loading branch information
chisandrei committed Sep 28, 2024
1 parent eeacd1a commit 8c9ac36
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
7 changes: 6 additions & 1 deletion src/GToolkit-RemoteGt/GtPhlowForwarderView.extension.st
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ GtPhlowForwarderView >> asGtDeclarativeView [
GtPhlowForwarderView >> canBeGtDeclarativeView [
"Answer a boolean indicating whether the receiver can be represented as a GtDeclarativeView"

^ self phlowView asAsyncPromise wait canBeGtDeclarativeView
^ isDeclarative ifNil: [ true ]
]

{ #category : #'*GToolkit-RemoteGt' }
Expand All @@ -39,3 +39,8 @@ GtPhlowForwarderView >> computeForwardedView [

^ computedView
]

{ #category : #'*GToolkit-RemoteGt' }
GtPhlowForwarderView >> markAsNotDeclarative [
isDeclarative := false
]
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ Class {
#instVars : [
'viewSelector',
'objectComputation',
'transformation'
'transformation',
'isDeclarative'
],
#category : #'GToolkit-RemotePhlow-PhlowViews'
}
Expand All @@ -21,6 +22,11 @@ GtRemotePhlowForwarderView >> asGtDeclarativeView [
dataTransport: GtPhlowViewSpecification dataLazy
]

{ #category : #testing }
GtRemotePhlowForwarderView >> canBeGtDeclarativeView [
^ isDeclarative ifNil: [ true ]
]

{ #category : #converting }
GtRemotePhlowForwarderView >> computeForwardedView [
| targetObject computedView |
Expand Down Expand Up @@ -51,6 +57,11 @@ GtRemotePhlowForwarderView >> hasTransformation [
^ transformation notNil
]

{ #category : #configuring }
GtRemotePhlowForwarderView >> markAsNotDeclarative [
isDeclarative := false
]

{ #category : #'api - scripting' }
GtRemotePhlowForwarderView >> object: anObjectComputation [
objectComputation := anObjectComputation.
Expand Down

0 comments on commit 8c9ac36

Please sign in to comment.