Skip to content

Conversation

HeikoKlare
Copy link
Contributor

The WorkbenchActivitySupport is currently disabled quite late during workbench shutdown. In particular, it is performed after the service locator disposal, which produces several events for the disablement of expression-controlled activities that are processed by the activity management. Since the activity management is shut down afterwards anyway, the processing of these events is unnecessary.

This change ensures that activities enablement changes are not unnecessarily processed during workbench shutdown. It consists of two parts:

  1. It performs the disposal of activity management and its persistence handler early in the workbench shutdown process (in particular before the service locator disposal).
  2. It adds proper dispose functionality for the IActivityManager, such that disposing the workbench activity support disposes the activity manager, which then removes all its listeners to not react to further events.

Contributes to #1084.

@github-actions
Copy link
Contributor

github-actions bot commented Sep 6, 2023

Test Results

     854 files   -        1       854 suites   - 1   1h 38m 40s ⏱️ - 15m 59s
  7 357 tests +       1    7 199 ✔️  -        1  156 💤 ±    0  2 +2 
21 660 runs   - 1 554  21 266 ✔️  - 1 433  392 💤  - 123  2 +2 

For more details on these failures, see this check.

Results for commit 7a945f5. ± Comparison against base commit 6683f3f.

♻️ This comment has been updated with latest results.

@HeikoKlare HeikoKlare force-pushed the issue-1084-shutdown branch 2 times, most recently from ec9d448 to 6d2ae4a Compare September 11, 2023 09:37
@HeikoKlare HeikoKlare marked this pull request as ready for review September 12, 2023 08:13
@HeikoKlare
Copy link
Contributor Author

Failing tests are documented: #926, #1005

@HeikoKlare HeikoKlare force-pushed the issue-1084-shutdown branch 4 times, most recently from ada4186 to 26964bb Compare September 19, 2023 19:25
@vogella vogella force-pushed the issue-1084-shutdown branch from b3434db to f818ddc Compare September 29, 2023 09:55
@vogella
Copy link
Contributor

vogella commented Sep 29, 2023

@HeikoKlare can this be merged?

@HeikoKlare
Copy link
Contributor Author

Yes, it's ready to merge. I've only been waiting for the end of the M1 freeze period.

@vogella
Copy link
Contributor

vogella commented Sep 29, 2023

Yes, it's ready to merge. I've only been waiting for the end of the M1 freeze period.

Master is open now, so please merge after the verification build.

…pse-platform#1084

The WorkbenchActivitySupport is currently disabled quite late during
workbench shutdown. In particular, it is performed after the service
locator disposal, which produces several events for the disablement of
expression-controlled activities that are processed by the activity
management. Since the activity management is shut down afterwards
anyway, the processing of these events is unnecessary.

This change ensures that activities enablement changes are not
unnecessarily processed during workbench shutdown. It consists of two
parts:
1. It performs the disposal of activity management and its persistence
handler early in the workbench shutdown process (in particular before
the service locator disposal).
2. It adds proper dispose functionality for the IActivityManager, such
that disposing the workbench activity support disposes the activity
manager, which then removes all its listeners to not react to further
events.

Contributes to
eclipse-platform#1084.
@HeikoKlare
Copy link
Contributor Author

Failing tests are unrelated and documented in #294 and #1183.

@HeikoKlare HeikoKlare merged commit e7c8146 into eclipse-platform:master Sep 29, 2023
@HeikoKlare HeikoKlare deleted the issue-1084-shutdown branch September 29, 2023 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Disable Event Processing During Workbench Shutdown

5 participants