Community
Participate
Working Groups
We should have a mechanism that turns on Device.DEBUG when SWT_DEBUG=1 is set, to help debug & develop swt code base. Device.DEBUG is used to print warnings in some places in SWT. Currently it can be set in a snippet: ... main { Device.DEBUG = true; .. Display display = ... .. } Or from platform.ui: https://www.eclipse.org/swt/faq.php#debugmode And further, in general, if we want to print a warning, we should consider wrapping it into an if (Device.DEBUG) {..} block.
New Gerrit change created: https://git.eclipse.org/r/136538
Gerrit change https://git.eclipse.org/r/136538 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=0be4b8fcc50e0d652b8f565cdf98e43e5de34cc3
(In reply to Eclipse Genie from comment #2) > Gerrit change https://git.eclipse.org/r/136538 was merged to [master]. > Commit: > http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/ > ?id=0be4b8fcc50e0d652b8f565cdf98e43e5de34cc3 In master now.
Verified in I20190219-0600.