-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Creating the static standard platform cursors may lead to a potential memory leak, if the Cursors class ever happens to be unloaded, before the application is terminated (e.g. when the bundle is stopped), because this process won't free up the allocated resources. To avoid this issue, we use Display.getSystemCursor, similar to what is done to get the standard platform colors. Given that those factory methods are technically API, they have also been documented, with a large part taken from the getSystemCursor() and getSystemColor() JavaDoc.
- Loading branch information
Showing
2 changed files
with
76 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters