Summary: | Create JFace/SWT Factory to prevent resource leaks | ||
---|---|---|---|
Product: | [Eclipse Project] Platform | Reporter: | Wim Jongman <wim.jongman> |
Component: | SWT | Assignee: | Platform-SWT-Inbox <platform-swt-inbox> |
Status: | NEW --- | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | ||
Version: | 4.19 | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | Windows 10 | ||
See Also: |
https://bugs.eclipse.org/bugs/show_bug.cgi?id=570094 https://git.eclipse.org/r/c/platform/eclipse.platform.ui/+/174947 https://git.eclipse.org/r/c/platform/eclipse.platform.swt/+/174948 https://bugs.eclipse.org/bugs/show_bug.cgi?id=561782 |
||
Whiteboard: |
Description
Wim Jongman
2021-01-17 06:02:58 EST
New Gerrit change created: https://git.eclipse.org/r/c/platform/eclipse.platform.ui/+/174947 Yep, same needed for Font / Cursor / Region. May be API should use Supplier<Resource>, not just InputStream, or both. I had lot of code that created some icons / fonts manually but using higher level API, without streams. (In reply to Andrey Loskutov from comment #2) > Yep, same needed for Font / Cursor / Region. > > May be API should use Supplier<Resource>, not just InputStream, or both. I > had lot of code that created some icons / fonts manually but using higher > level API, without streams. The inputstream is just an example of one of the constructors. New Gerrit change created: https://git.eclipse.org/r/c/platform/eclipse.platform.swt/+/174948 |