Skip to content

Conversation

@LANDAISB
Copy link
Contributor

No description provided.

(self layers includes: aLayer) ifTrue: [ ^ self ].
self configureLayer: aLayer.

self mutex criticalReleasingOnError:[
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix name here

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OUPS

anUserObject ifNil: [ ^ self ].

self layers do: [ :e |
self mutex criticalReleasingOnError:[
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix name here


self layers do: [ :e |
e haveDomainObjects ifTrue: [ e addObjects: anUserObjectList ] ]
self mutex criticalReleasingOnError:[
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix name here


"inject the projection to all layers"
self layers do:[ :l | l graphicProjection: displayToGraphicProjection ].
self mutex criticalReleasingOnError:[
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix name here

(self layers includes: aLayer) ifFalse: [ ^ self ].
self unconfigureLayer: aLayer.
self layers remove: aLayer.
self mutex criticalReleasingOnError:[
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix name here


self layers do: [ :e |
e haveDomainObjects ifTrue: [ e removeObject: anUserObject ] ]
self mutex criticalReleasingOnError:[
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix name here

Comment on lines 612 to 615
self mutex criticalReleasingOnError:[
self layers do: [ :e |
e haveDomainObjects ifTrue: [ e removeObjects: anUserObjectList ] ]
]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix name here

aContext ifNil:[ ^ self ].
self layers ifEmpty: [ ^ self ].

self mutex criticalReleasingOnError:[
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

etc.

@LabordePierre LabordePierre changed the title Dev add remove layers Be layers list thread safe Nov 13, 2025
@LabordePierre LabordePierre added enhancement New feature or request technical work Some technical stuff: technical debt, refactoring, cleanup, performance, writing unit tests, etc. and removed enhancement New feature or request labels Nov 13, 2025
@LANDAISB LANDAISB merged commit 2874733 into main Nov 13, 2025
13 checks passed
@LANDAISB LANDAISB deleted the dev_addRemoveLayers branch November 13, 2025 08:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

technical work Some technical stuff: technical debt, refactoring, cleanup, performance, writing unit tests, etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants