A JNI code generator based on the JNI generator used by the eclipse SWT project