Community
Participate
Working Groups
While creating the SnippetExplorer I found some minor issues or things to improve on some of the existing Snippets. Instead of opening a bug for every minor change or open non at all I summarize them here.
New Gerrit change created: https://git.eclipse.org/r/143314
> https://git.eclipse.org/r/143314 A Snippet should never call System.exit(). Doing so will break the SnippetLauncher (the launcher exits too and can not start the next Snippet) and can break the new SnippetExplorer (depends on selected runner).
New Gerrit change created: https://git.eclipse.org/r/143315
> https://git.eclipse.org/r/143315 Some Snippets initialize Display and/or Shell on class initialization. SnippetLauncher and especially my new SnippetExplorer may launch Snippets more than once without reinitializing the class. Therefore the Display and/or Shell is already disposed on the second launch and the Snippet crash.
New Gerrit change created: https://git.eclipse.org/r/143316
> https://git.eclipse.org/r/143316 Some Snippets run threads with setDaemon(true) and expect them to stop on Snippet end. This is not the case if the Snippet is run through SnippetLauncher or SnippetExplorer where the Daemon-Threads survive until those launchers end.
New Gerrit change created: https://git.eclipse.org/r/143317
> https://git.eclipse.org/r/143317 Snippet 13 does not work on Linux and not so good on Windows too. The painting should be done in the paint listener and not as a one-shot after open. There also seem to be a more general problem when painting on Linux with 'new GC' instead of event.gc. See Bug 546482.
New Gerrit change created: https://git.eclipse.org/r/143318
> https://git.eclipse.org/r/143318 Snippet 25 has an empty window which can instead show a simple help text what to do to use the Snippet.
New Gerrit change created: https://git.eclipse.org/r/143319
> https://git.eclipse.org/r/143319 Snippet 268 perform some automated mouse scrolling. It is not predictable if the system will scroll the selected widget regardless of mouse position or what's under the mouse cursor regardless of focus. For the later case (e.g. Windows 10) the Snippet should place the mouse over the test window before scrolling.
New Gerrit change created: https://git.eclipse.org/r/143320
> https://git.eclipse.org/r/143320 This adds some basic tips for creating Snippets to Readme including things fixed with this bug.
Thank you very much for the improvement! I've added myself to the Gerrit changes and will review them in the next few days. As a side note, you can add me to any SWT-GTK Gerrits, or SWT Gerrits which do not deal with Windows/Cocoa specific items (snippets, tests, website, etc.).
Thanks Eric and just in case you don't know: I could also merge them myself. So it's always nice to have a second opinion and I'll remember you if I got new GTK related problems but if you have better things to do you don't need to review every little of my changes (or less intense).
(In reply to Paul Pazderski from comment #16) > Thanks Eric and just in case you don't know: I could also merge them myself. > So it's always nice to have a second opinion and I'll remember you if I got > new GTK related problems but if you have better things to do you don't need > to review every little of my changes (or less intense). Yeah I just realized you're already a committer! :)
Gerrit change https://git.eclipse.org/r/143314 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=9c2ad38d59e0a97007f356b38de17ea8524544e8
Gerrit change https://git.eclipse.org/r/143315 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=1b56697db0519a32d9694fb9747a0cd54f9f7041
Gerrit change https://git.eclipse.org/r/143317 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=497b02a9d8d940b9bdd51289ed7cf5eba9c12615
Gerrit change https://git.eclipse.org/r/143318 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=35ff15b051926ac9eae77a05c9af93019bda2686
Gerrit change https://git.eclipse.org/r/143316 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=bd6f468e1dbeb44d8ddaadc278bdf81133e8ac8b
Gerrit change https://git.eclipse.org/r/143319 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=8d127558d9158f454dc40a49a1b0e58094aba6f0
We are done with 4.12 RC2, final IBuild verification is in progress. Resolving for 4.12 Please raise a new bug for any further improvements in SWT Snippets.
(In reply to Niraj Modi from comment #24) > We are done with 4.12 RC2, final IBuild verification is in progress. > Resolving for 4.12 > > Please raise a new bug for any further improvements in SWT Snippets. Paul, please file a new ticket for the remaining Gerrits from this bug that I didn't merge. We'll merge them in 4.13.
Gerrit change https://git.eclipse.org/r/143320 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=641d7ea7e7a4137c53b7d08adfc360cc4f6aa69f