-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
eclipse-platform/eclipse.platform.swt
#2362Labels
Milestone
Description
Problem
Currently, we have a logic to always initialize the first handle in a handle field. Instead of using it, we could switch to lazy loading via using zoomLevelToHandle map. The handle will only created when win32_getHandle is called.
Proposed Solution
To fix this, the Cursor class should be refactored to manage zoom-level-specific handles more robustly and safely. The following changes are needed:
-
Remove
handleField
Eliminate the dedicatedhandlefield from the class. All handle accesses should go through thezoomLevelToHandlemap, which now acts as the single source of truth for all zoom levels. -
Update All Related Methods
Refactor all methods that previously relied on thehandlefield to instead usezoomLevelToHandle. This includes:hashCode()equals(Object obj)isDisposed()destroy()
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
✅ Done