Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "SWT/Devel"
m (Added info on how to backport.) |
(→SWT on Gtk development) |
||
Line 4: | Line 4: | ||
SWT Development varies a lot depending on which platform you're developing on. Please see the individual sections. | SWT Development varies a lot depending on which platform you're developing on. Please see the individual sections. | ||
− | ==== SWT on | + | ==== SWT on GTK development ==== |
− | Please see [[SWT/Devel/Gtk]] | + | Please see [[SWT/Devel/Gtk | GTK development.]] |
==== SWT on Win32 development ==== | ==== SWT on Win32 development ==== |
Revision as of 14:52, 29 December 2015
This page is intended to document the development of SWT itself. E.g compiling native bindings etc.
Contents
SWT Platforms
SWT Development varies a lot depending on which platform you're developing on. Please see the individual sections.
SWT on GTK development
Please see GTK development.
SWT on Win32 development
... to be added some day.
SWT on Cocoa development
... to be added some day.
Common
Using Gerrit
Gerrit is used to review your patches. For further information, please see SWT/Devel/Gerrit
Backporting Patches
You have several options. 1) On the gerrit review of your patch, click on 'cherry pick' and start typing the name of your branch (e.g R4_5_maintenance) 2) Check out the remote repository locally, manually cherry pick the commit from your git history, then do either one of:
3a) Push directly into branch
If you have committer rights and you would like to push your patch directly into a backport branch, execute from command line as following:
git push review HEAD:R4_5_maintenance
3b) Create a review for backport
If you would like to submit an extra gerrit review before merging into a backport branch, execute as following:
git push review HEAD:ref/for/R4_5_maintenance
(Note, the 'ref/for/' is a branch that gerrit monitors to create new patch reviews.)
Mylyn
Nice Video tutorials:
- Mylyn overview: Youtube : Mylyn Overview
- Mylyn, doing code reviews on gerrit Youtube : Code review inside Eclipse with gerrit
Note, you need to install the 'Gerrit' connector inside mylyn.
General Advice
Read Function Documentation
Always read documentation of every function that you are adding to the code base (esp. Gtk functions).
This includes the situation where you copy & paste code because sometimes methods get deprecated and you end up copy & pasting deprecated methods. Copy & pasting code without knowing what it does exactly is dangerous.