Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IMenuObjectInfo should use ImageDescriptor instead of Image. #514

Conversation

ptziegler
Copy link
Contributor

The image stored in the IMenuObjectInfo instances are used for the presentation. We should switch to ImageDescriptors, to avoid "Widget is disposed" exceptions when closing the editor.

The getImage() method has been renamed to getImageDescriptor(). Where necessary, we use ImageDescriptor.createFromImage() to convert images to the correct type. Those images are slowly going to be transformed in ImageDescriptors in upcoming changes.

When drawing those components, a temporary Image instance is created.

@ptziegler ptziegler force-pushed the use-imagedescriptor-for-menuobjectinfo branch from cb518c4 to 9185b58 Compare July 25, 2023 17:54
@github-actions
Copy link

github-actions bot commented Jul 25, 2023

Unit Test Results

       16 files         16 suites   49m 40s ⏱️
  7 213 tests   7 213 ✔️ 0 💤 0
14 434 runs  14 434 ✔️ 0 💤 0

Results for commit 4b4e872.

♻️ This comment has been updated with latest results.

The image stored in the IMenuObjectInfo instances are used for the
presentation. We should switch to ImageDescriptors, to avoid "Widget is
disposed" exceptions when closing the editor.

The getImage() method has been renamed to getImageDescriptor(). Where
necessary, we use ImageDescriptor.createFromImage() to convert images to
the correct type. Those images are slowly going to be transformed in
ImageDescriptors in upcoming changes.

When drawing those components, a temporary Image instance is created.
@ptziegler ptziegler force-pushed the use-imagedescriptor-for-menuobjectinfo branch from 9185b58 to 4b4e872 Compare July 25, 2023 19:25
@ptziegler
Copy link
Contributor Author

#260 #486

@ptziegler ptziegler merged commit 0b09da6 into eclipse-windowbuilder:master Jul 27, 2023
3 checks passed
@ptziegler ptziegler deleted the use-imagedescriptor-for-menuobjectinfo branch August 12, 2023 19:30
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.

1 participant