Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcvs2svn2006-07-13 20:00:12 +0000
committercvs2svn2006-07-13 20:00:12 +0000
commit7088de711bb406bfed263aa4d8119e3d9edb8f79 (patch)
tree8514fa30c5e57ff4a6ea53064d4ee40010cbeed8
parent8b390771da79e063a9a772b682f48ddb4e881bdf (diff)
downloadeclipse.platform.swt-7088de711bb406bfed263aa4d8119e3d9edb8f79.tar.gz
eclipse.platform.swt-7088de711bb406bfed263aa4d8119e3d9edb8f79.tar.xz
eclipse.platform.swt-7088de711bb406bfed263aa4d8119e3d9edb8f79.zip
This commit was manufactured by cvs2svn to create branch 'R3_2_maintenance'.
Cherrypick from master 2006-07-13 20:00:11 UTC Felipe Heidrich <fheidric> '*** empty log message ***': bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/org.eclipse.swt.internal.mozilla.XPCOM_PROFILE.properties bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/library/xpcom_profile.cpp bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/library/xpcom_profile.h bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/library/xpcom_profile_stats.cpp bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/library/xpcom_profile_stats.h bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/library/xpcom_profile_structs.c bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/library/xpcom_profile_structs.h bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/internal/mozilla/XPCOM_PROFILE.java bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/internal/mozilla/nsIDirectoryService.java bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/internal/mozilla/nsIDirectoryServiceProvider.java bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/internal/mozilla/nsIDirectoryServiceProvider2.java bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/internal/mozilla/nsIProperties.java bundles/org.eclipse.swt/Eclipse SWT PI/cairo/org/eclipse/swt/internal/cairo/cairo_text_extents_t.java bundles/org.eclipse.swt/Eclipse SWT PI/win32/org/eclipse/swt/internal/win32/SCRIPT_DIGITSUBSTITUTE.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet195.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet244.java examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet245.java
-rw-r--r--bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/org.eclipse.swt.internal.mozilla.XPCOM_PROFILE.properties1000
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/library/xpcom_profile.cpp89
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT Mozilla/common/library/xpcom_profile.h38
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/library/xpcom_profile_stats.cpp63
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/library/xpcom_profile_stats.h45
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/library/xpcom_profile_structs.c31
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/library/xpcom_profile_structs.h30
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/internal/mozilla/XPCOM_PROFILE.java37
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/internal/mozilla/nsIDirectoryService.java55
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/internal/mozilla/nsIDirectoryServiceProvider.java47
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/internal/mozilla/nsIDirectoryServiceProvider2.java47
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/internal/mozilla/nsIProperties.java63
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/cairo/org/eclipse/swt/internal/cairo/cairo_text_extents_t.java32
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/win32/org/eclipse/swt/internal/win32/SCRIPT_DIGITSUBSTITUTE.java19
-rw-r--r--examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet195.java134
-rw-r--r--examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet244.java55
-rw-r--r--examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet245.java42
17 files changed, 1827 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/org.eclipse.swt.internal.mozilla.XPCOM_PROFILE.properties b/bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/org.eclipse.swt.internal.mozilla.XPCOM_PROFILE.properties
new file mode 100644
index 0000000000..12944d164e
--- /dev/null
+++ b/bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/org.eclipse.swt.internal.mozilla.XPCOM_PROFILE.properties
@@ -0,0 +1,1000 @@
+###############################################################################
+# Copyright (c) 2000, 2006 IBM Corporation and others.
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Eclipse Public License v1.0
+# which accompanies this distribution, and is available at
+# http://www.eclipse.org/legal/epl-v10.html
+#
+# Contributors:
+# IBM Corporation - initial API and implementation
+###############################################################################
+org_eclipse_swt_internal_mozilla_XPCOM=flags=no_gen
+XPCOM_Call=
+XPCOM_Call_0=
+XPCOM_Call_1=
+XPCOM_Call_2=
+XPCOM_Call_3=
+XPCOM_Call_4=
+XPCOM_Call_5=
+XPCOM_Call_6=
+
+XPCOM_NS_GetComponentManager=
+XPCOM_NS_GetComponentManager_0=
+
+XPCOM_NS_GetServiceManager=
+XPCOM_NS_GetServiceManager_0=
+
+XPCOM_NS_InitEmbedding=
+XPCOM_NS_InitEmbedding_0=
+XPCOM_NS_InitEmbedding_1=
+
+XPCOM_NS_NewLocalFile=
+XPCOM_NS_NewLocalFile_0=
+XPCOM_NS_NewLocalFile_1=
+XPCOM_NS_NewLocalFile_2=
+
+XPCOM_NS_TermEmbedding=
+
+XPCOM_PR_Free=
+XPCOM_PR_Free_0=
+
+XPCOM_PR_Malloc=
+XPCOM_PR_Malloc_0=
+
+XPCOM_VtblCall__II=
+XPCOM_VtblCall__II_0=
+XPCOM_VtblCall__II_1=
+
+XPCOM_VtblCall__IIF=
+XPCOM_VtblCall__IIF_0=
+XPCOM_VtblCall__IIF_1=
+XPCOM_VtblCall__IIF_2=
+
+XPCOM_VtblCall__III=
+XPCOM_VtblCall__III_0=
+XPCOM_VtblCall__III_1=
+XPCOM_VtblCall__III_2=
+
+XPCOM_VtblCall__IIII=
+XPCOM_VtblCall__IIII_0=
+XPCOM_VtblCall__IIII_1=
+XPCOM_VtblCall__IIII_2=
+XPCOM_VtblCall__IIII_3=
+
+XPCOM_VtblCall__IIIII=
+XPCOM_VtblCall__IIIII_0=
+XPCOM_VtblCall__IIIII_1=
+XPCOM_VtblCall__IIIII_2=
+XPCOM_VtblCall__IIIII_3=
+XPCOM_VtblCall__IIIII_4=
+
+XPCOM_VtblCall__IIIIII=
+XPCOM_VtblCall__IIIIII_0=
+XPCOM_VtblCall__IIIIII_1=
+XPCOM_VtblCall__IIIIII_2=
+XPCOM_VtblCall__IIIIII_3=
+XPCOM_VtblCall__IIIIII_4=
+XPCOM_VtblCall__IIIIII_5=
+
+XPCOM_VtblCall__IIIIIII=
+XPCOM_VtblCall__IIIIIII_0=
+XPCOM_VtblCall__IIIIIII_1=
+XPCOM_VtblCall__IIIIIII_2=
+XPCOM_VtblCall__IIIIIII_3=
+XPCOM_VtblCall__IIIIIII_4=
+XPCOM_VtblCall__IIIIIII_5=
+XPCOM_VtblCall__IIIIIII_6=
+
+XPCOM_VtblCall__IIIIIIII=
+XPCOM_VtblCall__IIIIIIII_0=
+XPCOM_VtblCall__IIIIIIII_1=
+XPCOM_VtblCall__IIIIIIII_2=
+XPCOM_VtblCall__IIIIIIII_3=
+XPCOM_VtblCall__IIIIIIII_4=
+XPCOM_VtblCall__IIIIIIII_5=
+XPCOM_VtblCall__IIIIIIII_6=
+XPCOM_VtblCall__IIIIIIII_7=
+
+XPCOM_VtblCall__IIIIIIZ=
+XPCOM_VtblCall__IIIIIIZ_0=
+XPCOM_VtblCall__IIIIIIZ_1=
+XPCOM_VtblCall__IIIIIIZ_2=
+XPCOM_VtblCall__IIIIIIZ_3=
+XPCOM_VtblCall__IIIIIIZ_4=
+XPCOM_VtblCall__IIIIIIZ_5=
+XPCOM_VtblCall__IIIIIIZ_6=
+
+XPCOM_VtblCall__IIIIIZ=
+XPCOM_VtblCall__IIIIIZ_0=
+XPCOM_VtblCall__IIIIIZ_1=
+XPCOM_VtblCall__IIIIIZ_2=
+XPCOM_VtblCall__IIIIIZ_3=
+XPCOM_VtblCall__IIIIIZ_4=
+XPCOM_VtblCall__IIIIIZ_5=
+
+XPCOM_VtblCall__IIIIIZ_3CIIIIZ_3I_3I=
+XPCOM_VtblCall__IIIIIZ_3CIIIIZ_3I_3I_0=
+XPCOM_VtblCall__IIIIIZ_3CIIIIZ_3I_3I_1=
+XPCOM_VtblCall__IIIIIZ_3CIIIIZ_3I_3I_2=
+XPCOM_VtblCall__IIIIIZ_3CIIIIZ_3I_3I_3=
+XPCOM_VtblCall__IIIIIZ_3CIIIIZ_3I_3I_4=
+XPCOM_VtblCall__IIIIIZ_3CIIIIZ_3I_3I_5=
+XPCOM_VtblCall__IIIIIZ_3CIIIIZ_3I_3I_6=
+XPCOM_VtblCall__IIIIIZ_3CIIIIZ_3I_3I_7=
+XPCOM_VtblCall__IIIIIZ_3CIIIIZ_3I_3I_8=
+XPCOM_VtblCall__IIIIIZ_3CIIIIZ_3I_3I_9=
+XPCOM_VtblCall__IIIIIZ_3CIIIIZ_3I_3I_10=
+XPCOM_VtblCall__IIIIIZ_3CIIIIZ_3I_3I_11=
+XPCOM_VtblCall__IIIIIZ_3CIIIIZ_3I_3I_12=
+XPCOM_VtblCall__IIIIIZ_3CIIIIZ_3I_3I_13=
+
+XPCOM_VtblCall__IIIII_3C=
+XPCOM_VtblCall__IIIII_3C_0=
+XPCOM_VtblCall__IIIII_3C_1=
+XPCOM_VtblCall__IIIII_3C_2=
+XPCOM_VtblCall__IIIII_3C_3=
+XPCOM_VtblCall__IIIII_3C_4=
+XPCOM_VtblCall__IIIII_3C_5=
+
+XPCOM_VtblCall__IIIII_3I=
+XPCOM_VtblCall__IIIII_3I_0=
+XPCOM_VtblCall__IIIII_3I_1=
+XPCOM_VtblCall__IIIII_3I_2=
+XPCOM_VtblCall__IIIII_3I_3=
+XPCOM_VtblCall__IIIII_3I_4=
+XPCOM_VtblCall__IIIII_3I_5=
+
+XPCOM_VtblCall__IIIIJZ=
+XPCOM_VtblCall__IIIIJZ_0=
+XPCOM_VtblCall__IIIIJZ_1=
+XPCOM_VtblCall__IIIIJZ_2=
+XPCOM_VtblCall__IIIIJZ_3=
+XPCOM_VtblCall__IIIIJZ_4=
+XPCOM_VtblCall__IIIIJZ_5=
+
+XPCOM_VtblCall__IIIIZ=
+XPCOM_VtblCall__IIIIZ_0=
+XPCOM_VtblCall__IIIIZ_1=
+XPCOM_VtblCall__IIIIZ_2=
+XPCOM_VtblCall__IIIIZ_3=
+XPCOM_VtblCall__IIIIZ_4=
+
+XPCOM_VtblCall__IIII_3C=
+XPCOM_VtblCall__IIII_3C_0=
+XPCOM_VtblCall__IIII_3C_1=
+XPCOM_VtblCall__IIII_3C_2=
+XPCOM_VtblCall__IIII_3C_3=
+XPCOM_VtblCall__IIII_3C_4=
+
+XPCOM_VtblCall__IIII_3CIJI=
+XPCOM_VtblCall__IIII_3CIJI_0=
+XPCOM_VtblCall__IIII_3CIJI_1=
+XPCOM_VtblCall__IIII_3CIJI_2=
+XPCOM_VtblCall__IIII_3CIJI_3=
+XPCOM_VtblCall__IIII_3CIJI_4=
+XPCOM_VtblCall__IIII_3CIJI_5=
+XPCOM_VtblCall__IIII_3CIJI_6=
+XPCOM_VtblCall__IIII_3CIJI_7=
+
+XPCOM_VtblCall__IIII_3I=
+XPCOM_VtblCall__IIII_3I_0=
+XPCOM_VtblCall__IIII_3I_1=
+XPCOM_VtblCall__IIII_3I_2=
+XPCOM_VtblCall__IIII_3I_3=
+XPCOM_VtblCall__IIII_3I_4=
+
+XPCOM_VtblCall__IIII_3J=
+XPCOM_VtblCall__IIII_3J_0=
+XPCOM_VtblCall__IIII_3J_1=
+XPCOM_VtblCall__IIII_3J_2=
+XPCOM_VtblCall__IIII_3J_3=
+XPCOM_VtblCall__IIII_3J_4=
+
+XPCOM_VtblCall__IIIJJ=
+XPCOM_VtblCall__IIIJJ_0=
+XPCOM_VtblCall__IIIJJ_1=
+XPCOM_VtblCall__IIIJJ_2=
+XPCOM_VtblCall__IIIJJ_3=
+XPCOM_VtblCall__IIIJJ_4=
+
+XPCOM_VtblCall__IIILorg_eclipse_swt_internal_mozilla_nsID_2=
+XPCOM_VtblCall__IIILorg_eclipse_swt_internal_mozilla_nsID_2_0=
+XPCOM_VtblCall__IIILorg_eclipse_swt_internal_mozilla_nsID_2_1=
+XPCOM_VtblCall__IIILorg_eclipse_swt_internal_mozilla_nsID_2_2=
+XPCOM_VtblCall__IIILorg_eclipse_swt_internal_mozilla_nsID_2_3=
+
+XPCOM_VtblCall__IIILorg_eclipse_swt_internal_mozilla_nsID_2_3I=
+XPCOM_VtblCall__IIILorg_eclipse_swt_internal_mozilla_nsID_2_3I_0=
+XPCOM_VtblCall__IIILorg_eclipse_swt_internal_mozilla_nsID_2_3I_1=
+XPCOM_VtblCall__IIILorg_eclipse_swt_internal_mozilla_nsID_2_3I_2=
+XPCOM_VtblCall__IIILorg_eclipse_swt_internal_mozilla_nsID_2_3I_3=
+XPCOM_VtblCall__IIILorg_eclipse_swt_internal_mozilla_nsID_2_3I_4=
+
+XPCOM_VtblCall__IIIZ=
+XPCOM_VtblCall__IIIZ_0=
+XPCOM_VtblCall__IIIZ_1=
+XPCOM_VtblCall__IIIZ_2=
+XPCOM_VtblCall__IIIZ_3=
+
+XPCOM_VtblCall__IIIZZ=
+XPCOM_VtblCall__IIIZZ_0=
+XPCOM_VtblCall__IIIZZ_1=
+XPCOM_VtblCall__IIIZZ_2=
+XPCOM_VtblCall__IIIZZ_3=
+XPCOM_VtblCall__IIIZZ_4=
+
+XPCOM_VtblCall__IIIZZII=
+XPCOM_VtblCall__IIIZZII_0=
+XPCOM_VtblCall__IIIZZII_1=
+XPCOM_VtblCall__IIIZZII_2=
+XPCOM_VtblCall__IIIZZII_3=
+XPCOM_VtblCall__IIIZZII_4=
+XPCOM_VtblCall__IIIZZII_5=
+XPCOM_VtblCall__IIIZZII_6=
+
+XPCOM_VtblCall__IIIZZIIIIIIZZZZSI=
+XPCOM_VtblCall__IIIZZIIIIIIZZZZSI_0=
+XPCOM_VtblCall__IIIZZIIIIIIZZZZSI_1=
+XPCOM_VtblCall__IIIZZIIIIIIZZZZSI_2=
+XPCOM_VtblCall__IIIZZIIIIIIZZZZSI_3=
+XPCOM_VtblCall__IIIZZIIIIIIZZZZSI_4=
+XPCOM_VtblCall__IIIZZIIIIIIZZZZSI_5=
+XPCOM_VtblCall__IIIZZIIIIIIZZZZSI_6=
+XPCOM_VtblCall__IIIZZIIIIIIZZZZSI_7=
+XPCOM_VtblCall__IIIZZIIIIIIZZZZSI_8=
+XPCOM_VtblCall__IIIZZIIIIIIZZZZSI_9=
+XPCOM_VtblCall__IIIZZIIIIIIZZZZSI_10=
+XPCOM_VtblCall__IIIZZIIIIIIZZZZSI_11=
+XPCOM_VtblCall__IIIZZIIIIIIZZZZSI_12=
+XPCOM_VtblCall__IIIZZIIIIIIZZZZSI_13=
+XPCOM_VtblCall__IIIZZIIIIIIZZZZSI_14=
+XPCOM_VtblCall__IIIZZIIIIIIZZZZSI_15=
+XPCOM_VtblCall__IIIZZIIIIIIZZZZSI_16=
+
+XPCOM_VtblCall__IIIZ_3Z=
+XPCOM_VtblCall__IIIZ_3Z_0=
+XPCOM_VtblCall__IIIZ_3Z_1=
+XPCOM_VtblCall__IIIZ_3Z_2=
+XPCOM_VtblCall__IIIZ_3Z_3=
+XPCOM_VtblCall__IIIZ_3Z_4=
+
+XPCOM_VtblCall__III_3BI_3I=
+XPCOM_VtblCall__III_3BI_3I_0=
+XPCOM_VtblCall__III_3BI_3I_1=
+XPCOM_VtblCall__III_3BI_3I_2=
+XPCOM_VtblCall__III_3BI_3I_3=
+XPCOM_VtblCall__III_3BI_3I_4=
+XPCOM_VtblCall__III_3BI_3I_5=
+
+XPCOM_VtblCall__III_3B_3B_3BI_3I=
+XPCOM_VtblCall__III_3B_3B_3BI_3I_0=
+XPCOM_VtblCall__III_3B_3B_3BI_3I_1=
+XPCOM_VtblCall__III_3B_3B_3BI_3I_2=
+XPCOM_VtblCall__III_3B_3B_3BI_3I_3=
+XPCOM_VtblCall__III_3B_3B_3BI_3I_4=
+XPCOM_VtblCall__III_3B_3B_3BI_3I_5=
+XPCOM_VtblCall__III_3B_3B_3BI_3I_6=
+XPCOM_VtblCall__III_3B_3B_3BI_3I_7=
+
+XPCOM_VtblCall__III_3B_3Z=
+XPCOM_VtblCall__III_3B_3Z_0=
+XPCOM_VtblCall__III_3B_3Z_1=
+XPCOM_VtblCall__III_3B_3Z_2=
+XPCOM_VtblCall__III_3B_3Z_3=
+XPCOM_VtblCall__III_3B_3Z_4=
+
+XPCOM_VtblCall__III_3C=
+XPCOM_VtblCall__III_3C_0=
+XPCOM_VtblCall__III_3C_1=
+XPCOM_VtblCall__III_3C_2=
+XPCOM_VtblCall__III_3C_3=
+
+XPCOM_VtblCall__III_3CI=
+XPCOM_VtblCall__III_3CI_0=
+XPCOM_VtblCall__III_3CI_1=
+XPCOM_VtblCall__III_3CI_2=
+XPCOM_VtblCall__III_3CI_3=
+XPCOM_VtblCall__III_3CI_4=
+
+XPCOM_VtblCall__III_3C_3C=
+XPCOM_VtblCall__III_3C_3C_0=
+XPCOM_VtblCall__III_3C_3C_1=
+XPCOM_VtblCall__III_3C_3C_2=
+XPCOM_VtblCall__III_3C_3C_3=
+XPCOM_VtblCall__III_3C_3C_4=
+
+XPCOM_VtblCall__III_3C_3CI_3C_3C_3C_3C_3Z_3I=
+XPCOM_VtblCall__III_3C_3CI_3C_3C_3C_3C_3Z_3I_0=
+XPCOM_VtblCall__III_3C_3CI_3C_3C_3C_3C_3Z_3I_1=
+XPCOM_VtblCall__III_3C_3CI_3C_3C_3C_3C_3Z_3I_2=
+XPCOM_VtblCall__III_3C_3CI_3C_3C_3C_3C_3Z_3I_3=
+XPCOM_VtblCall__III_3C_3CI_3C_3C_3C_3C_3Z_3I_4=
+XPCOM_VtblCall__III_3C_3CI_3C_3C_3C_3C_3Z_3I_5=
+XPCOM_VtblCall__III_3C_3CI_3C_3C_3C_3C_3Z_3I_6=
+XPCOM_VtblCall__III_3C_3CI_3C_3C_3C_3C_3Z_3I_7=
+XPCOM_VtblCall__III_3C_3CI_3C_3C_3C_3C_3Z_3I_8=
+XPCOM_VtblCall__III_3C_3CI_3C_3C_3C_3C_3Z_3I_9=
+XPCOM_VtblCall__III_3C_3CI_3C_3C_3C_3C_3Z_3I_10=
+XPCOM_VtblCall__III_3C_3CI_3C_3C_3C_3C_3Z_3I_11=
+
+XPCOM_VtblCall__III_3C_3CI_3I_3I_3Z=
+XPCOM_VtblCall__III_3C_3CI_3I_3I_3Z_0=
+XPCOM_VtblCall__III_3C_3CI_3I_3I_3Z_1=
+XPCOM_VtblCall__III_3C_3CI_3I_3I_3Z_2=
+XPCOM_VtblCall__III_3C_3CI_3I_3I_3Z_3=
+XPCOM_VtblCall__III_3C_3CI_3I_3I_3Z_4=
+XPCOM_VtblCall__III_3C_3CI_3I_3I_3Z_5=
+XPCOM_VtblCall__III_3C_3CI_3I_3I_3Z_6=
+XPCOM_VtblCall__III_3C_3CI_3I_3I_3Z_7=
+XPCOM_VtblCall__III_3C_3CI_3I_3I_3Z_8=
+
+XPCOM_VtblCall__III_3C_3C_3C_3Z=
+XPCOM_VtblCall__III_3C_3C_3C_3Z_0=
+XPCOM_VtblCall__III_3C_3C_3C_3Z_1=
+XPCOM_VtblCall__III_3C_3C_3C_3Z_2=
+XPCOM_VtblCall__III_3C_3C_3C_3Z_3=
+XPCOM_VtblCall__III_3C_3C_3C_3Z_4=
+XPCOM_VtblCall__III_3C_3C_3C_3Z_5=
+XPCOM_VtblCall__III_3C_3C_3C_3Z_6=
+
+XPCOM_VtblCall__III_3C_3C_3C_3Z_3Z=
+XPCOM_VtblCall__III_3C_3C_3C_3Z_3Z_0=
+XPCOM_VtblCall__III_3C_3C_3C_3Z_3Z_1=
+XPCOM_VtblCall__III_3C_3C_3C_3Z_3Z_2=
+XPCOM_VtblCall__III_3C_3C_3C_3Z_3Z_3=
+XPCOM_VtblCall__III_3C_3C_3C_3Z_3Z_4=
+XPCOM_VtblCall__III_3C_3C_3C_3Z_3Z_5=
+XPCOM_VtblCall__III_3C_3C_3C_3Z_3Z_6=
+XPCOM_VtblCall__III_3C_3C_3C_3Z_3Z_7=
+
+XPCOM_VtblCall__III_3C_3C_3I=
+XPCOM_VtblCall__III_3C_3C_3I_0=
+XPCOM_VtblCall__III_3C_3C_3I_1=
+XPCOM_VtblCall__III_3C_3C_3I_2=
+XPCOM_VtblCall__III_3C_3C_3I_3=
+XPCOM_VtblCall__III_3C_3C_3I_4=
+XPCOM_VtblCall__III_3C_3C_3I_5=
+
+XPCOM_VtblCall__III_3C_3C_3I_3C_3Z_3Z=
+XPCOM_VtblCall__III_3C_3C_3I_3C_3Z_3Z_0=
+XPCOM_VtblCall__III_3C_3C_3I_3C_3Z_3Z_1=
+XPCOM_VtblCall__III_3C_3C_3I_3C_3Z_3Z_2=
+XPCOM_VtblCall__III_3C_3C_3I_3C_3Z_3Z_3=
+XPCOM_VtblCall__III_3C_3C_3I_3C_3Z_3Z_4=
+XPCOM_VtblCall__III_3C_3C_3I_3C_3Z_3Z_5=
+XPCOM_VtblCall__III_3C_3C_3I_3C_3Z_3Z_6=
+XPCOM_VtblCall__III_3C_3C_3I_3C_3Z_3Z_7=
+XPCOM_VtblCall__III_3C_3C_3I_3C_3Z_3Z_8=
+
+XPCOM_VtblCall__III_3C_3C_3I_3I_3C_3Z_3Z=
+XPCOM_VtblCall__III_3C_3C_3I_3I_3C_3Z_3Z_0=
+XPCOM_VtblCall__III_3C_3C_3I_3I_3C_3Z_3Z_1=
+XPCOM_VtblCall__III_3C_3C_3I_3I_3C_3Z_3Z_2=
+XPCOM_VtblCall__III_3C_3C_3I_3I_3C_3Z_3Z_3=
+XPCOM_VtblCall__III_3C_3C_3I_3I_3C_3Z_3Z_4=
+XPCOM_VtblCall__III_3C_3C_3I_3I_3C_3Z_3Z_5=
+XPCOM_VtblCall__III_3C_3C_3I_3I_3C_3Z_3Z_6=
+XPCOM_VtblCall__III_3C_3C_3I_3I_3C_3Z_3Z_7=
+XPCOM_VtblCall__III_3C_3C_3I_3I_3C_3Z_3Z_8=
+XPCOM_VtblCall__III_3C_3C_3I_3I_3C_3Z_3Z_9=
+
+XPCOM_VtblCall__III_3C_3C_3Z=
+XPCOM_VtblCall__III_3C_3C_3Z_0=
+XPCOM_VtblCall__III_3C_3C_3Z_1=
+XPCOM_VtblCall__III_3C_3C_3Z_2=
+XPCOM_VtblCall__III_3C_3C_3Z_3=
+XPCOM_VtblCall__III_3C_3C_3Z_4=
+XPCOM_VtblCall__III_3C_3C_3Z_5=
+
+XPCOM_VtblCall__III_3I=
+XPCOM_VtblCall__III_3I_0=
+XPCOM_VtblCall__III_3I_1=
+XPCOM_VtblCall__III_3I_2=
+XPCOM_VtblCall__III_3I_3=
+
+XPCOM_VtblCall__III_3I_3I_3I_3I=
+XPCOM_VtblCall__III_3I_3I_3I_3I_0=
+XPCOM_VtblCall__III_3I_3I_3I_3I_1=
+XPCOM_VtblCall__III_3I_3I_3I_3I_2=
+XPCOM_VtblCall__III_3I_3I_3I_3I_3=
+XPCOM_VtblCall__III_3I_3I_3I_3I_4=
+XPCOM_VtblCall__III_3I_3I_3I_3I_5=
+XPCOM_VtblCall__III_3I_3I_3I_3I_6=
+
+XPCOM_VtblCall__III_3Z=
+XPCOM_VtblCall__III_3Z_0=
+XPCOM_VtblCall__III_3Z_1=
+XPCOM_VtblCall__III_3Z_2=
+XPCOM_VtblCall__III_3Z_3=
+
+XPCOM_VtblCall__IIJ=
+XPCOM_VtblCall__IIJ_0=
+XPCOM_VtblCall__IIJ_1=
+XPCOM_VtblCall__IIJ_2=
+
+XPCOM_VtblCall__IIJI=
+XPCOM_VtblCall__IIJI_0=
+XPCOM_VtblCall__IIJI_1=
+XPCOM_VtblCall__IIJI_2=
+XPCOM_VtblCall__IIJI_3=
+
+XPCOM_VtblCall__IIJJ=
+XPCOM_VtblCall__IIJJ_0=
+XPCOM_VtblCall__IIJJ_1=
+XPCOM_VtblCall__IIJJ_2=
+XPCOM_VtblCall__IIJJ_3=
+
+XPCOM_VtblCall__IIJJI=
+XPCOM_VtblCall__IIJJI_0=
+XPCOM_VtblCall__IIJJI_1=
+XPCOM_VtblCall__IIJJI_2=
+XPCOM_VtblCall__IIJJI_3=
+XPCOM_VtblCall__IIJJI_4=
+
+XPCOM_VtblCall__IIJJJJJ=
+XPCOM_VtblCall__IIJJJJJ_0=
+XPCOM_VtblCall__IIJJJJJ_1=
+XPCOM_VtblCall__IIJJJJJ_2=
+XPCOM_VtblCall__IIJJJJJ_3=
+XPCOM_VtblCall__IIJJJJJ_4=
+XPCOM_VtblCall__IIJJJJJ_5=
+XPCOM_VtblCall__IIJJJJJ_6=
+
+XPCOM_VtblCall__IILorg_eclipse_swt_internal_mozilla_nsID_2I=
+XPCOM_VtblCall__IILorg_eclipse_swt_internal_mozilla_nsID_2I_0=
+XPCOM_VtblCall__IILorg_eclipse_swt_internal_mozilla_nsID_2I_1=
+XPCOM_VtblCall__IILorg_eclipse_swt_internal_mozilla_nsID_2I_2=
+XPCOM_VtblCall__IILorg_eclipse_swt_internal_mozilla_nsID_2I_3=
+
+XPCOM_VtblCall__IILorg_eclipse_swt_internal_mozilla_nsID_2ILorg_eclipse_swt_internal_mozilla_nsID_2_3I=
+XPCOM_VtblCall__IILorg_eclipse_swt_internal_mozilla_nsID_2ILorg_eclipse_swt_internal_mozilla_nsID_2_3I_0=
+XPCOM_VtblCall__IILorg_eclipse_swt_internal_mozilla_nsID_2ILorg_eclipse_swt_internal_mozilla_nsID_2_3I_1=
+XPCOM_VtblCall__IILorg_eclipse_swt_internal_mozilla_nsID_2ILorg_eclipse_swt_internal_mozilla_nsID_2_3I_2=
+XPCOM_VtblCall__IILorg_eclipse_swt_internal_mozilla_nsID_2ILorg_eclipse_swt_internal_mozilla_nsID_2_3I_3=
+XPCOM_VtblCall__IILorg_eclipse_swt_internal_mozilla_nsID_2ILorg_eclipse_swt_internal_mozilla_nsID_2_3I_4=
+XPCOM_VtblCall__IILorg_eclipse_swt_internal_mozilla_nsID_2ILorg_eclipse_swt_internal_mozilla_nsID_2_3I_5=
+
+XPCOM_VtblCall__IILorg_eclipse_swt_internal_mozilla_nsID_2Lorg_eclipse_swt_internal_mozilla_nsID_2_3I=
+XPCOM_VtblCall__IILorg_eclipse_swt_internal_mozilla_nsID_2Lorg_eclipse_swt_internal_mozilla_nsID_2_3I_0=
+XPCOM_VtblCall__IILorg_eclipse_swt_internal_mozilla_nsID_2Lorg_eclipse_swt_internal_mozilla_nsID_2_3I_1=
+XPCOM_VtblCall__IILorg_eclipse_swt_internal_mozilla_nsID_2Lorg_eclipse_swt_internal_mozilla_nsID_2_3I_2=
+XPCOM_VtblCall__IILorg_eclipse_swt_internal_mozilla_nsID_2Lorg_eclipse_swt_internal_mozilla_nsID_2_3I_3=
+XPCOM_VtblCall__IILorg_eclipse_swt_internal_mozilla_nsID_2Lorg_eclipse_swt_internal_mozilla_nsID_2_3I_4=
+
+XPCOM_VtblCall__IILorg_eclipse_swt_internal_mozilla_nsID_2Lorg_eclipse_swt_internal_mozilla_nsID_2_3Z=
+XPCOM_VtblCall__IILorg_eclipse_swt_internal_mozilla_nsID_2Lorg_eclipse_swt_internal_mozilla_nsID_2_3Z_0=
+XPCOM_VtblCall__IILorg_eclipse_swt_internal_mozilla_nsID_2Lorg_eclipse_swt_internal_mozilla_nsID_2_3Z_1=
+XPCOM_VtblCall__IILorg_eclipse_swt_internal_mozilla_nsID_2Lorg_eclipse_swt_internal_mozilla_nsID_2_3Z_2=
+XPCOM_VtblCall__IILorg_eclipse_swt_internal_mozilla_nsID_2Lorg_eclipse_swt_internal_mozilla_nsID_2_3Z_3=
+XPCOM_VtblCall__IILorg_eclipse_swt_internal_mozilla_nsID_2Lorg_eclipse_swt_internal_mozilla_nsID_2_3Z_4=
+
+XPCOM_VtblCall__IILorg_eclipse_swt_internal_mozilla_nsID_2_3B_3BI=
+XPCOM_VtblCall__IILorg_eclipse_swt_internal_mozilla_nsID_2_3B_3BI_0=
+XPCOM_VtblCall__IILorg_eclipse_swt_internal_mozilla_nsID_2_3B_3BI_1=
+XPCOM_VtblCall__IILorg_eclipse_swt_internal_mozilla_nsID_2_3B_3BI_2=
+XPCOM_VtblCall__IILorg_eclipse_swt_internal_mozilla_nsID_2_3B_3BI_3=
+XPCOM_VtblCall__IILorg_eclipse_swt_internal_mozilla_nsID_2_3B_3BI_4=
+XPCOM_VtblCall__IILorg_eclipse_swt_internal_mozilla_nsID_2_3B_3BI_5=
+
+XPCOM_VtblCall__IILorg_eclipse_swt_internal_mozilla_nsID_2_3B_3BI_3B_3B=
+XPCOM_VtblCall__IILorg_eclipse_swt_internal_mozilla_nsID_2_3B_3BI_3B_3B_0=
+XPCOM_VtblCall__IILorg_eclipse_swt_internal_mozilla_nsID_2_3B_3BI_3B_3B_1=
+XPCOM_VtblCall__IILorg_eclipse_swt_internal_mozilla_nsID_2_3B_3BI_3B_3B_2=
+XPCOM_VtblCall__IILorg_eclipse_swt_internal_mozilla_nsID_2_3B_3BI_3B_3B_3=
+XPCOM_VtblCall__IILorg_eclipse_swt_internal_mozilla_nsID_2_3B_3BI_3B_3B_4=
+XPCOM_VtblCall__IILorg_eclipse_swt_internal_mozilla_nsID_2_3B_3BI_3B_3B_5=
+XPCOM_VtblCall__IILorg_eclipse_swt_internal_mozilla_nsID_2_3B_3BI_3B_3B_6=
+XPCOM_VtblCall__IILorg_eclipse_swt_internal_mozilla_nsID_2_3B_3BI_3B_3B_7=
+
+XPCOM_VtblCall__IILorg_eclipse_swt_internal_mozilla_nsID_2_3I=
+XPCOM_VtblCall__IILorg_eclipse_swt_internal_mozilla_nsID_2_3I_0=
+XPCOM_VtblCall__IILorg_eclipse_swt_internal_mozilla_nsID_2_3I_1=
+XPCOM_VtblCall__IILorg_eclipse_swt_internal_mozilla_nsID_2_3I_2=
+XPCOM_VtblCall__IILorg_eclipse_swt_internal_mozilla_nsID_2_3I_3=
+
+XPCOM_VtblCall__IILorg_eclipse_swt_internal_mozilla_nsID_2_3Z=
+XPCOM_VtblCall__IILorg_eclipse_swt_internal_mozilla_nsID_2_3Z_0=
+XPCOM_VtblCall__IILorg_eclipse_swt_internal_mozilla_nsID_2_3Z_1=
+XPCOM_VtblCall__IILorg_eclipse_swt_internal_mozilla_nsID_2_3Z_2=
+XPCOM_VtblCall__IILorg_eclipse_swt_internal_mozilla_nsID_2_3Z_3=
+
+XPCOM_VtblCall__IIZ=
+XPCOM_VtblCall__IIZ_0=
+XPCOM_VtblCall__IIZ_1=
+XPCOM_VtblCall__IIZ_2=
+
+XPCOM_VtblCall__IIZI=
+XPCOM_VtblCall__IIZI_0=
+XPCOM_VtblCall__IIZI_1=
+XPCOM_VtblCall__IIZI_2=
+XPCOM_VtblCall__IIZI_3=
+
+XPCOM_VtblCall__IIZ_3Z=
+XPCOM_VtblCall__IIZ_3Z_0=
+XPCOM_VtblCall__IIZ_3Z_1=
+XPCOM_VtblCall__IIZ_3Z_2=
+XPCOM_VtblCall__IIZ_3Z_3=
+
+XPCOM_VtblCall__II_3B=
+XPCOM_VtblCall__II_3B_0=
+XPCOM_VtblCall__II_3B_1=
+XPCOM_VtblCall__II_3B_2=
+
+XPCOM_VtblCall__II_3BI=
+XPCOM_VtblCall__II_3BI_0=
+XPCOM_VtblCall__II_3BI_1=
+XPCOM_VtblCall__II_3BI_2=
+XPCOM_VtblCall__II_3BI_3=
+
+XPCOM_VtblCall__II_3BILorg_eclipse_swt_internal_mozilla_nsID_2_3I=
+XPCOM_VtblCall__II_3BILorg_eclipse_swt_internal_mozilla_nsID_2_3I_0=
+XPCOM_VtblCall__II_3BILorg_eclipse_swt_internal_mozilla_nsID_2_3I_1=
+XPCOM_VtblCall__II_3BILorg_eclipse_swt_internal_mozilla_nsID_2_3I_2=
+XPCOM_VtblCall__II_3BILorg_eclipse_swt_internal_mozilla_nsID_2_3I_3=
+XPCOM_VtblCall__II_3BILorg_eclipse_swt_internal_mozilla_nsID_2_3I_4=
+XPCOM_VtblCall__II_3BILorg_eclipse_swt_internal_mozilla_nsID_2_3I_5=
+
+XPCOM_VtblCall__II_3BI_3I=
+XPCOM_VtblCall__II_3BI_3I_0=
+XPCOM_VtblCall__II_3BI_3I_1=
+XPCOM_VtblCall__II_3BI_3I_2=
+XPCOM_VtblCall__II_3BI_3I_3=
+XPCOM_VtblCall__II_3BI_3I_4=
+
+XPCOM_VtblCall__II_3BJ=
+XPCOM_VtblCall__II_3BJ_0=
+XPCOM_VtblCall__II_3BJ_1=
+XPCOM_VtblCall__II_3BJ_2=
+XPCOM_VtblCall__II_3BJ_3=
+
+XPCOM_VtblCall__II_3BLorg_eclipse_swt_internal_mozilla_nsID_2I=
+XPCOM_VtblCall__II_3BLorg_eclipse_swt_internal_mozilla_nsID_2I_0=
+XPCOM_VtblCall__II_3BLorg_eclipse_swt_internal_mozilla_nsID_2I_1=
+XPCOM_VtblCall__II_3BLorg_eclipse_swt_internal_mozilla_nsID_2I_2=
+XPCOM_VtblCall__II_3BLorg_eclipse_swt_internal_mozilla_nsID_2I_3=
+XPCOM_VtblCall__II_3BLorg_eclipse_swt_internal_mozilla_nsID_2I_4=
+
+XPCOM_VtblCall__II_3BLorg_eclipse_swt_internal_mozilla_nsID_2_3I=
+XPCOM_VtblCall__II_3BLorg_eclipse_swt_internal_mozilla_nsID_2_3I_0=
+XPCOM_VtblCall__II_3BLorg_eclipse_swt_internal_mozilla_nsID_2_3I_1=
+XPCOM_VtblCall__II_3BLorg_eclipse_swt_internal_mozilla_nsID_2_3I_2=
+XPCOM_VtblCall__II_3BLorg_eclipse_swt_internal_mozilla_nsID_2_3I_3=
+XPCOM_VtblCall__II_3BLorg_eclipse_swt_internal_mozilla_nsID_2_3I_4=
+
+XPCOM_VtblCall__II_3BLorg_eclipse_swt_internal_mozilla_nsID_2_3Z=
+XPCOM_VtblCall__II_3BLorg_eclipse_swt_internal_mozilla_nsID_2_3Z_0=
+XPCOM_VtblCall__II_3BLorg_eclipse_swt_internal_mozilla_nsID_2_3Z_1=
+XPCOM_VtblCall__II_3BLorg_eclipse_swt_internal_mozilla_nsID_2_3Z_2=
+XPCOM_VtblCall__II_3BLorg_eclipse_swt_internal_mozilla_nsID_2_3Z_3=
+XPCOM_VtblCall__II_3BLorg_eclipse_swt_internal_mozilla_nsID_2_3Z_4=
+
+XPCOM_VtblCall__II_3BZI_3I_3Z=
+XPCOM_VtblCall__II_3BZI_3I_3Z_0=
+XPCOM_VtblCall__II_3BZI_3I_3Z_1=
+XPCOM_VtblCall__II_3BZI_3I_3Z_2=
+XPCOM_VtblCall__II_3BZI_3I_3Z_3=
+XPCOM_VtblCall__II_3BZI_3I_3Z_4=
+XPCOM_VtblCall__II_3BZI_3I_3Z_5=
+XPCOM_VtblCall__II_3BZI_3I_3Z_6=
+
+XPCOM_VtblCall__II_3BZ_3I_3Z=
+XPCOM_VtblCall__II_3BZ_3I_3Z_0=
+XPCOM_VtblCall__II_3BZ_3I_3Z_1=
+XPCOM_VtblCall__II_3BZ_3I_3Z_2=
+XPCOM_VtblCall__II_3BZ_3I_3Z_3=
+XPCOM_VtblCall__II_3BZ_3I_3Z_4=
+XPCOM_VtblCall__II_3BZ_3I_3Z_5=
+
+XPCOM_VtblCall__II_3B_3B=
+XPCOM_VtblCall__II_3B_3B_0=
+XPCOM_VtblCall__II_3B_3B_1=
+XPCOM_VtblCall__II_3B_3B_2=
+XPCOM_VtblCall__II_3B_3B_3=
+
+XPCOM_VtblCall__II_3B_3BZ=
+XPCOM_VtblCall__II_3B_3BZ_0=
+XPCOM_VtblCall__II_3B_3BZ_1=
+XPCOM_VtblCall__II_3B_3BZ_2=
+XPCOM_VtblCall__II_3B_3BZ_3=
+XPCOM_VtblCall__II_3B_3BZ_4=
+
+XPCOM_VtblCall__II_3B_3B_3BZZ_3I=
+XPCOM_VtblCall__II_3B_3B_3BZZ_3I_0=
+XPCOM_VtblCall__II_3B_3B_3BZZ_3I_1=
+XPCOM_VtblCall__II_3B_3B_3BZZ_3I_2=
+XPCOM_VtblCall__II_3B_3B_3BZZ_3I_3=
+XPCOM_VtblCall__II_3B_3B_3BZZ_3I_4=
+XPCOM_VtblCall__II_3B_3B_3BZZ_3I_5=
+XPCOM_VtblCall__II_3B_3B_3BZZ_3I_6=
+XPCOM_VtblCall__II_3B_3B_3BZZ_3I_7=
+
+XPCOM_VtblCall__II_3B_3B_3I=
+XPCOM_VtblCall__II_3B_3B_3I_0=
+XPCOM_VtblCall__II_3B_3B_3I_1=
+XPCOM_VtblCall__II_3B_3B_3I_2=
+XPCOM_VtblCall__II_3B_3B_3I_3=
+XPCOM_VtblCall__II_3B_3B_3I_4=
+
+XPCOM_VtblCall__II_3B_3I=
+XPCOM_VtblCall__II_3B_3I_0=
+XPCOM_VtblCall__II_3B_3I_1=
+XPCOM_VtblCall__II_3B_3I_2=
+XPCOM_VtblCall__II_3B_3I_3=
+
+XPCOM_VtblCall__II_3B_3I_3I=
+XPCOM_VtblCall__II_3B_3I_3I_0=
+XPCOM_VtblCall__II_3B_3I_3I_1=
+XPCOM_VtblCall__II_3B_3I_3I_2=
+XPCOM_VtblCall__II_3B_3I_3I_3=
+XPCOM_VtblCall__II_3B_3I_3I_4=
+
+XPCOM_VtblCall__II_3B_3I_3Z=
+XPCOM_VtblCall__II_3B_3I_3Z_0=
+XPCOM_VtblCall__II_3B_3I_3Z_1=
+XPCOM_VtblCall__II_3B_3I_3Z_2=
+XPCOM_VtblCall__II_3B_3I_3Z_3=
+XPCOM_VtblCall__II_3B_3I_3Z_4=
+
+XPCOM_VtblCall__II_3B_3J=
+XPCOM_VtblCall__II_3B_3J_0=
+XPCOM_VtblCall__II_3B_3J_1=
+XPCOM_VtblCall__II_3B_3J_2=
+XPCOM_VtblCall__II_3B_3J_3=
+
+XPCOM_VtblCall__II_3B_3Z=
+XPCOM_VtblCall__II_3B_3Z_0=
+XPCOM_VtblCall__II_3B_3Z_1=
+XPCOM_VtblCall__II_3B_3Z_2=
+XPCOM_VtblCall__II_3B_3Z_3=
+
+XPCOM_VtblCall__II_3B_3Z_3I=
+XPCOM_VtblCall__II_3B_3Z_3I_0=
+XPCOM_VtblCall__II_3B_3Z_3I_1=
+XPCOM_VtblCall__II_3B_3Z_3I_2=
+XPCOM_VtblCall__II_3B_3Z_3I_3=
+XPCOM_VtblCall__II_3B_3Z_3I_4=
+
+XPCOM_VtblCall__II_3C=
+XPCOM_VtblCall__II_3C_0=
+XPCOM_VtblCall__II_3C_1=
+XPCOM_VtblCall__II_3C_2=
+
+XPCOM_VtblCall__II_3CIIII=
+XPCOM_VtblCall__II_3CIIII_0=
+XPCOM_VtblCall__II_3CIIII_1=
+XPCOM_VtblCall__II_3CIIII_2=
+XPCOM_VtblCall__II_3CIIII_3=
+XPCOM_VtblCall__II_3CIIII_4=
+XPCOM_VtblCall__II_3CIIII_5=
+XPCOM_VtblCall__II_3CIIII_6=
+
+XPCOM_VtblCall__II_3CI_3I=
+XPCOM_VtblCall__II_3CI_3I_0=
+XPCOM_VtblCall__II_3CI_3I_1=
+XPCOM_VtblCall__II_3CI_3I_2=
+XPCOM_VtblCall__II_3CI_3I_3=
+XPCOM_VtblCall__II_3CI_3I_4=
+
+XPCOM_VtblCall__II_3CZ=
+XPCOM_VtblCall__II_3CZ_0=
+XPCOM_VtblCall__II_3CZ_1=
+XPCOM_VtblCall__II_3CZ_2=
+XPCOM_VtblCall__II_3CZ_3=
+
+XPCOM_VtblCall__II_3C_3C=
+XPCOM_VtblCall__II_3C_3C_0=
+XPCOM_VtblCall__II_3C_3C_1=
+XPCOM_VtblCall__II_3C_3C_2=
+XPCOM_VtblCall__II_3C_3C_3=
+
+XPCOM_VtblCall__II_3C_3C_3CZ=
+XPCOM_VtblCall__II_3C_3C_3CZ_0=
+XPCOM_VtblCall__II_3C_3C_3CZ_1=
+XPCOM_VtblCall__II_3C_3C_3CZ_2=
+XPCOM_VtblCall__II_3C_3C_3CZ_3=
+XPCOM_VtblCall__II_3C_3C_3CZ_4=
+XPCOM_VtblCall__II_3C_3C_3CZ_5=
+
+XPCOM_VtblCall__II_3C_3Z=
+XPCOM_VtblCall__II_3C_3Z_0=
+XPCOM_VtblCall__II_3C_3Z_1=
+XPCOM_VtblCall__II_3C_3Z_2=
+XPCOM_VtblCall__II_3C_3Z_3=
+
+XPCOM_VtblCall__II_3F=
+XPCOM_VtblCall__II_3F_0=
+XPCOM_VtblCall__II_3F_1=
+XPCOM_VtblCall__II_3F_2=
+
+XPCOM_VtblCall__II_3I=
+XPCOM_VtblCall__II_3I_0=
+XPCOM_VtblCall__II_3I_1=
+XPCOM_VtblCall__II_3I_2=
+
+XPCOM_VtblCall__II_3I_3I=
+XPCOM_VtblCall__II_3I_3I_0=
+XPCOM_VtblCall__II_3I_3I_1=
+XPCOM_VtblCall__II_3I_3I_2=
+XPCOM_VtblCall__II_3I_3I_3=
+
+XPCOM_VtblCall__II_3I_3I_3I=
+XPCOM_VtblCall__II_3I_3I_3I_0=
+XPCOM_VtblCall__II_3I_3I_3I_1=
+XPCOM_VtblCall__II_3I_3I_3I_2=
+XPCOM_VtblCall__II_3I_3I_3I_3=
+XPCOM_VtblCall__II_3I_3I_3I_4=
+
+XPCOM_VtblCall__II_3I_3I_3I_3I=
+XPCOM_VtblCall__II_3I_3I_3I_3I_0=
+XPCOM_VtblCall__II_3I_3I_3I_3I_1=
+XPCOM_VtblCall__II_3I_3I_3I_3I_2=
+XPCOM_VtblCall__II_3I_3I_3I_3I_3=
+XPCOM_VtblCall__II_3I_3I_3I_3I_4=
+XPCOM_VtblCall__II_3I_3I_3I_3I_5=
+
+XPCOM_VtblCall__II_3I_3J=
+XPCOM_VtblCall__II_3I_3J_0=
+XPCOM_VtblCall__II_3I_3J_1=
+XPCOM_VtblCall__II_3I_3J_2=
+XPCOM_VtblCall__II_3I_3J_3=
+
+XPCOM_VtblCall__II_3I_3J_3I=
+XPCOM_VtblCall__II_3I_3J_3I_0=
+XPCOM_VtblCall__II_3I_3J_3I_1=
+XPCOM_VtblCall__II_3I_3J_3I_2=
+XPCOM_VtblCall__II_3I_3J_3I_3=
+XPCOM_VtblCall__II_3I_3J_3I_4=
+
+XPCOM_VtblCall__II_3J=
+XPCOM_VtblCall__II_3J_0=
+XPCOM_VtblCall__II_3J_1=
+XPCOM_VtblCall__II_3J_2=
+
+XPCOM_VtblCall__II_3S=
+XPCOM_VtblCall__II_3S_0=
+XPCOM_VtblCall__II_3S_1=
+XPCOM_VtblCall__II_3S_2=
+
+XPCOM_VtblCall__II_3Z=
+XPCOM_VtblCall__II_3Z_0=
+XPCOM_VtblCall__II_3Z_1=
+XPCOM_VtblCall__II_3Z_2=
+
+XPCOM_memmove__ILorg_eclipse_swt_internal_mozilla_nsID_2I=
+XPCOM_memmove__ILorg_eclipse_swt_internal_mozilla_nsID_2I_0=
+XPCOM_memmove__ILorg_eclipse_swt_internal_mozilla_nsID_2I_1=
+XPCOM_memmove__ILorg_eclipse_swt_internal_mozilla_nsID_2I_2=
+
+XPCOM_memmove__I_3BI=
+XPCOM_memmove__I_3BI_0=
+XPCOM_memmove__I_3BI_1=
+XPCOM_memmove__I_3BI_2=
+
+XPCOM_memmove__I_3CI=
+XPCOM_memmove__I_3CI_0=
+XPCOM_memmove__I_3CI_1=
+XPCOM_memmove__I_3CI_2=
+
+XPCOM_memmove__I_3II=
+XPCOM_memmove__I_3II_0=
+XPCOM_memmove__I_3II_1=
+XPCOM_memmove__I_3II_2=
+
+XPCOM_memmove__I_3JI=
+XPCOM_memmove__I_3JI_0=
+XPCOM_memmove__I_3JI_1=
+XPCOM_memmove__I_3JI_2=
+
+XPCOM_memmove__Lorg_eclipse_swt_internal_mozilla_nsID_2II=
+XPCOM_memmove__Lorg_eclipse_swt_internal_mozilla_nsID_2II_0=
+XPCOM_memmove__Lorg_eclipse_swt_internal_mozilla_nsID_2II_1=
+XPCOM_memmove__Lorg_eclipse_swt_internal_mozilla_nsID_2II_2=
+
+XPCOM_memmove___3BII=
+XPCOM_memmove___3BII_0=
+XPCOM_memmove___3BII_1=
+XPCOM_memmove___3BII_2=
+
+XPCOM_memmove___3B_3CI=
+XPCOM_memmove___3B_3CI_0=
+XPCOM_memmove___3B_3CI_1=
+XPCOM_memmove___3B_3CI_2=
+
+XPCOM_memmove___3CII=
+XPCOM_memmove___3CII_0=
+XPCOM_memmove___3CII_1=
+XPCOM_memmove___3CII_2=
+
+XPCOM_memmove___3III=
+XPCOM_memmove___3III_0=
+XPCOM_memmove___3III_1=
+XPCOM_memmove___3III_2=
+
+XPCOM_memmove___3JII=
+XPCOM_memmove___3JII_0=
+XPCOM_memmove___3JII_1=
+XPCOM_memmove___3JII_2=
+
+XPCOM_nsEmbedCString_Length=
+XPCOM_nsEmbedCString_Length_0=
+
+XPCOM_nsEmbedCString_delete=
+XPCOM_nsEmbedCString_delete_0=
+
+XPCOM_nsEmbedCString_get=
+XPCOM_nsEmbedCString_get_0=
+
+XPCOM_nsEmbedCString_1new__=
+
+XPCOM_nsEmbedCString_1new___3BI=
+XPCOM_nsEmbedCString_1new___3BI_0=
+XPCOM_nsEmbedCString_1new___3BI_1=
+
+XPCOM_nsEmbedString_Length=
+XPCOM_nsEmbedString_Length_0=
+
+XPCOM_nsEmbedString_delete=
+XPCOM_nsEmbedString_delete_0=
+
+XPCOM_nsEmbedString_get=
+XPCOM_nsEmbedString_get_0=
+
+XPCOM_nsEmbedString_1new__=
+
+XPCOM_nsEmbedString_1new___3C=
+XPCOM_nsEmbedString_1new___3C_0=
+
+XPCOM_nsID_Equals=
+XPCOM_nsID_Equals_0=
+XPCOM_nsID_Equals_1=
+
+XPCOM_nsID_Parse=
+XPCOM_nsID_Parse_0=
+XPCOM_nsID_Parse_1=
+
+XPCOM_nsID_delete=
+XPCOM_nsID_delete_0=
+
+XPCOM_nsID_new=
+
+XPCOM_strlen=
+XPCOM_strlen_0=
+
+XPCOM_strlen_PRUnichar=
+XPCOM_strlen_PRUnichar_0=
+
+
+org_eclipse_swt_internal_mozilla_XPCOMObject=flags=no_gen
+
+org_eclipse_swt_internal_mozilla_XPCOM_1PROFILE=flags=cpp
+XPCOM_PROFILE_NS_NewProfileDirServiceProvider=
+XPCOM_PROFILE_NS_NewProfileDirServiceProvider_0=
+XPCOM_PROFILE_NS_NewProfileDirServiceProvider_1=cast=(nsProfileDirServiceProvider**)
+
+XPCOM_PROFILE_ProfileDirServiceProvider_Register=flags=cpp
+XPCOM_PROFILE_ProfileDirServiceProvider_Register_0=cast=(nsProfileDirServiceProvider *)
+
+XPCOM_PROFILE_ProfileDirServiceProvider_SetProfileDir=flags=cpp
+XPCOM_PROFILE_ProfileDirServiceProvider_SetProfileDir_0=cast=(nsProfileDirServiceProvider *)
+XPCOM_PROFILE_ProfileDirServiceProvider_SetProfileDir_1=cast=(nsIFile *)
+
+XPCOM_PROFILE_ProfileDirServiceProvider_Shutdown=flags=cpp
+XPCOM_PROFILE_ProfileDirServiceProvider_Shutdown_0=cast=(nsProfileDirServiceProvider *)
+
+
+org_eclipse_swt_internal_mozilla_nsEmbedString=flags=no_gen
+
+org_eclipse_swt_internal_mozilla_nsIAppShell=flags=no_gen
+
+org_eclipse_swt_internal_mozilla_nsIBaseWindow=flags=no_gen
+
+org_eclipse_swt_internal_mozilla_nsICategoryManager=flags=no_gen
+
+org_eclipse_swt_internal_mozilla_nsIComponentManager=flags=no_gen
+
+org_eclipse_swt_internal_mozilla_nsIComponentRegistrar=flags=no_gen
+
+org_eclipse_swt_internal_mozilla_nsIContextMenuListener=flags=no_gen
+
+org_eclipse_swt_internal_mozilla_nsICookie=flags=no_gen
+
+org_eclipse_swt_internal_mozilla_nsICookieManager=flags=no_gen
+
+org_eclipse_swt_internal_mozilla_nsID=flags=no_gen
+nsID_m0=
+nsID_m1=
+nsID_m2=
+nsID_m3=
+
+org_eclipse_swt_internal_mozilla_nsIDOMEvent=flags=no_gen
+
+org_eclipse_swt_internal_mozilla_nsIDOMMouseEvent=flags=no_gen
+
+org_eclipse_swt_internal_mozilla_nsIDOMUIEvent=flags=no_gen
+
+org_eclipse_swt_internal_mozilla_nsIDOMWindow=flags=no_gen
+
+org_eclipse_swt_internal_mozilla_nsIDirectoryService=flags=no_gen
+
+org_eclipse_swt_internal_mozilla_nsIDirectoryServiceProvider=flags=no_gen
+
+org_eclipse_swt_internal_mozilla_nsIDirectoryServiceProvider2=flags=no_gen
+
+org_eclipse_swt_internal_mozilla_nsIDocShell=flags=no_gen
+
+org_eclipse_swt_internal_mozilla_nsIDownload=flags=no_gen
+
+org_eclipse_swt_internal_mozilla_nsIEmbeddingSiteWindow=flags=no_gen
+
+org_eclipse_swt_internal_mozilla_nsIFactory=flags=no_gen
+
+org_eclipse_swt_internal_mozilla_nsIFile=flags=no_gen
+
+org_eclipse_swt_internal_mozilla_nsIFilePicker=flags=no_gen
+
+org_eclipse_swt_internal_mozilla_nsIHelperAppLauncher=flags=no_gen
+
+org_eclipse_swt_internal_mozilla_nsIHelperAppLauncherDialog=flags=no_gen
+
+org_eclipse_swt_internal_mozilla_nsIIOService=flags=no_gen
+
+org_eclipse_swt_internal_mozilla_nsIInputStream=flags=no_gen
+
+org_eclipse_swt_internal_mozilla_nsIInterfaceRequestor=flags=no_gen
+
+org_eclipse_swt_internal_mozilla_nsILocalFile=flags=no_gen
+
+org_eclipse_swt_internal_mozilla_nsIMemory=flags=no_gen
+
+org_eclipse_swt_internal_mozilla_nsIPrefBranch=flags=no_gen
+
+org_eclipse_swt_internal_mozilla_nsIPrefLocalizedString=flags=no_gen
+
+org_eclipse_swt_internal_mozilla_nsIPrefService=flags=no_gen
+
+org_eclipse_swt_internal_mozilla_nsIProfile=flags=no_gen
+
+org_eclipse_swt_internal_mozilla_nsIProgressDialog=flags=no_gen
+
+org_eclipse_swt_internal_mozilla_nsIPromptService=flags=no_gen
+
+org_eclipse_swt_internal_mozilla_nsIProperties=flags=no_gen
+
+org_eclipse_swt_internal_mozilla_nsIRequest=flags=no_gen
+
+org_eclipse_swt_internal_mozilla_nsIServiceManager=flags=no_gen
+
+org_eclipse_swt_internal_mozilla_nsISimpleEnumerator=flags=no_gen
+
+org_eclipse_swt_internal_mozilla_nsISupports=flags=no_gen
+
+org_eclipse_swt_internal_mozilla_nsISupportsWeakReference=flags=no_gen
+
+org_eclipse_swt_internal_mozilla_nsITooltipListener=flags=no_gen
+
+org_eclipse_swt_internal_mozilla_nsIURI=flags=no_gen
+
+org_eclipse_swt_internal_mozilla_nsIURIContentListener=flags=no_gen
+
+org_eclipse_swt_internal_mozilla_nsIWeakReference=flags=no_gen
+
+org_eclipse_swt_internal_mozilla_nsIWebBrowser=flags=no_gen
+
+org_eclipse_swt_internal_mozilla_nsIWebBrowserChrome=flags=no_gen
+
+org_eclipse_swt_internal_mozilla_nsIWebBrowserChromeFocus=flags=no_gen
+
+org_eclipse_swt_internal_mozilla_nsIWebBrowserFocus=flags=no_gen
+
+org_eclipse_swt_internal_mozilla_nsIWebBrowserStream=flags=no_gen
+
+org_eclipse_swt_internal_mozilla_nsIWebNavigation=flags=no_gen
+
+org_eclipse_swt_internal_mozilla_nsIWebProgress=flags=no_gen
+
+org_eclipse_swt_internal_mozilla_nsIWebProgressListener=flags=no_gen
+
+org_eclipse_swt_internal_mozilla_nsIWindowCreator=flags=no_gen
+
+org_eclipse_swt_internal_mozilla_nsIWindowWatcher=flags=no_gen
+
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/library/xpcom_profile.cpp b/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/library/xpcom_profile.cpp
new file mode 100644
index 0000000000..8861f51104
--- /dev/null
+++ b/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/library/xpcom_profile.cpp
@@ -0,0 +1,89 @@
+/* ***** BEGIN LICENSE BLOCK *****
+ * Version: MPL 1.1
+ *
+ * The contents of this file are subject to the Mozilla Public License Version
+ * 1.1 (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ * http://www.mozilla.org/MPL/
+ *
+ * Software distributed under the License is distributed on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
+ * for the specific language governing rights and limitations under the
+ * License.
+ *
+ * The Original Code is Mozilla Communicator client code, released March 31, 1998.
+ *
+ * The Initial Developer of the Original Code is
+ * Netscape Communications Corporation.
+ * Portions created by Netscape are Copyright (C) 1998-1999
+ * Netscape Communications Corporation. All Rights Reserved.
+ *
+ * Contributor(s):
+ *
+ * IBM
+ * - Binding to permit interfacing between Mozilla and SWT
+ * - Copyright (C) 2004, 2006 IBM Corp. All Rights Reserved.
+ *
+ * ***** END LICENSE BLOCK ***** */
+
+#include "swt.h"
+#include "xpcom_profile_structs.h"
+#include "xpcom_profile_stats.h"
+
+extern "C" {
+
+#define XPCOM_PROFILE_NATIVE(func) Java_org_eclipse_swt_internal_mozilla_XPCOM_1PROFILE_##func
+
+#ifndef NO_NS_1NewProfileDirServiceProvider
+JNIEXPORT jint JNICALL XPCOM_PROFILE_NATIVE(NS_1NewProfileDirServiceProvider)
+ (JNIEnv *env, jclass that, jboolean arg0, jintArray arg1)
+{
+ jint *lparg1=NULL;
+ jint rc = 0;
+ XPCOM_PROFILE_NATIVE_ENTER(env, that, NS_1NewProfileDirServiceProvider_FUNC);
+ if (arg1) if ((lparg1 = env->GetIntArrayElements(arg1, NULL)) == NULL) goto fail;
+ rc = (jint)NS_NewProfileDirServiceProvider(arg0, (nsProfileDirServiceProvider**)lparg1);
+fail:
+ if (arg1 && lparg1) env->ReleaseIntArrayElements(arg1, lparg1, 0);
+ XPCOM_PROFILE_NATIVE_EXIT(env, that, NS_1NewProfileDirServiceProvider_FUNC);
+ return rc;
+}
+#endif
+
+#ifndef NO_ProfileDirServiceProvider_1Register
+JNIEXPORT jint JNICALL XPCOM_PROFILE_NATIVE(ProfileDirServiceProvider_1Register)
+ (JNIEnv *env, jclass that, jint arg0)
+{
+ jint rc = 0;
+ XPCOM_PROFILE_NATIVE_ENTER(env, that, ProfileDirServiceProvider_1Register_FUNC);
+ rc = (jint)((nsProfileDirServiceProvider *)arg0)->Register();
+ XPCOM_PROFILE_NATIVE_EXIT(env, that, ProfileDirServiceProvider_1Register_FUNC);
+ return rc;
+}
+#endif
+
+#ifndef NO_ProfileDirServiceProvider_1SetProfileDir
+JNIEXPORT jint JNICALL XPCOM_PROFILE_NATIVE(ProfileDirServiceProvider_1SetProfileDir)
+ (JNIEnv *env, jclass that, jint arg0, jint arg1)
+{
+ jint rc = 0;
+ XPCOM_PROFILE_NATIVE_ENTER(env, that, ProfileDirServiceProvider_1SetProfileDir_FUNC);
+ rc = (jint)((nsProfileDirServiceProvider *)arg0)->SetProfileDir((nsIFile *)arg1);
+ XPCOM_PROFILE_NATIVE_EXIT(env, that, ProfileDirServiceProvider_1SetProfileDir_FUNC);
+ return rc;
+}
+#endif
+
+#ifndef NO_ProfileDirServiceProvider_1Shutdown
+JNIEXPORT jint JNICALL XPCOM_PROFILE_NATIVE(ProfileDirServiceProvider_1Shutdown)
+ (JNIEnv *env, jclass that, jint arg0)
+{
+ jint rc = 0;
+ XPCOM_PROFILE_NATIVE_ENTER(env, that, ProfileDirServiceProvider_1Shutdown_FUNC);
+ rc = (jint)((nsProfileDirServiceProvider *)arg0)->Shutdown();
+ XPCOM_PROFILE_NATIVE_EXIT(env, that, ProfileDirServiceProvider_1Shutdown_FUNC);
+ return rc;
+}
+#endif
+
+}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/library/xpcom_profile.h b/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/library/xpcom_profile.h
new file mode 100755
index 0000000000..40fc120351
--- /dev/null
+++ b/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/library/xpcom_profile.h
@@ -0,0 +1,38 @@
+/* ***** BEGIN LICENSE BLOCK *****
+* Version: MPL 1.1
+*
+* The contents of this file are subject to the Mozilla Public License Version
+* 1.1 (the "License"); you may not use this file except in compliance with
+* the License. You may obtain a copy of the License at
+* http://www.mozilla.org/MPL/
+*
+* Software distributed under the License is distributed on an "AS IS" basis,
+* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
+* for the specific language governing rights and limitations under the
+* License.
+*
+* The Original Code is Mozilla Communicator client code, released March 31, 1998.
+*
+* The Initial Developer of the Original Code is
+* Netscape Communications Corporation.
+* Portions created by Netscape are Copyright (C) 1998-1999
+* Netscape Communications Corporation. All Rights Reserved.
+*
+* Contributor(s):
+*
+* IBM
+* - Binding to permit interfacing between Mozilla and SWT
+* - Copyright (C) 2004, 2006 IBM Corp. All Rights Reserved.
+*
+* ***** END LICENSE BLOCK ***** */
+
+#ifndef INC_xpcom_profile_H
+#define INC_xpcom_profile_H
+
+#define NDEBUG
+
+#include "nsCOMPtr.h"
+#include "nsProfileDirServiceProvider.h"
+#include "xpcom_stats.h"
+
+#endif /* INC_xpcom_profile_H */
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/library/xpcom_profile_stats.cpp b/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/library/xpcom_profile_stats.cpp
new file mode 100644
index 0000000000..a2a08ccda2
--- /dev/null
+++ b/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/library/xpcom_profile_stats.cpp
@@ -0,0 +1,63 @@
+/* ***** BEGIN LICENSE BLOCK *****
+ * Version: MPL 1.1
+ *
+ * The contents of this file are subject to the Mozilla Public License Version
+ * 1.1 (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ * http://www.mozilla.org/MPL/
+ *
+ * Software distributed under the License is distributed on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
+ * for the specific language governing rights and limitations under the
+ * License.
+ *
+ * The Original Code is Mozilla Communicator client code, released March 31, 1998.
+ *
+ * The Initial Developer of the Original Code is
+ * Netscape Communications Corporation.
+ * Portions created by Netscape are Copyright (C) 1998-1999
+ * Netscape Communications Corporation. All Rights Reserved.
+ *
+ * Contributor(s):
+ *
+ * IBM
+ * - Binding to permit interfacing between Mozilla and SWT
+ * - Copyright (C) 2004, 2006 IBM Corp. All Rights Reserved.
+ *
+ * ***** END LICENSE BLOCK ***** */
+
+#include "swt.h"
+#include "xpcom_profile_stats.h"
+
+#ifdef NATIVE_STATS
+
+int XPCOM_PROFILE_nativeFunctionCount = 4;
+int XPCOM_PROFILE_nativeFunctionCallCount[4];
+char * XPCOM_PROFILE_nativeFunctionNames[] = {
+ "NS_1NewProfileDirServiceProvider",
+ "ProfileDirServiceProvider_1Register",
+ "ProfileDirServiceProvider_1SetProfileDir",
+ "ProfileDirServiceProvider_1Shutdown",
+};
+
+#define STATS_NATIVE(func) Java_org_eclipse_swt_tools_internal_NativeStats_##func
+
+JNIEXPORT jint JNICALL STATS_NATIVE(XPCOM_1PROFILE_1GetFunctionCount)
+ (JNIEnv *env, jclass that)
+{
+ return XPCOM_PROFILE_nativeFunctionCount;
+}
+
+JNIEXPORT jstring JNICALL STATS_NATIVE(XPCOM_1PROFILE_1GetFunctionName)
+ (JNIEnv *env, jclass that, jint index)
+{
+ return env->NewStringUTF(XPCOM_PROFILE_nativeFunctionNames[index]);
+}
+
+JNIEXPORT jint JNICALL STATS_NATIVE(XPCOM_1PROFILE_1GetFunctionCallCount)
+ (JNIEnv *env, jclass that, jint index)
+{
+ return XPCOM_PROFILE_nativeFunctionCallCount[index];
+}
+
+#endif
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/library/xpcom_profile_stats.h b/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/library/xpcom_profile_stats.h
new file mode 100644
index 0000000000..142836a627
--- /dev/null
+++ b/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/library/xpcom_profile_stats.h
@@ -0,0 +1,45 @@
+/* ***** BEGIN LICENSE BLOCK *****
+ * Version: MPL 1.1
+ *
+ * The contents of this file are subject to the Mozilla Public License Version
+ * 1.1 (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ * http://www.mozilla.org/MPL/
+ *
+ * Software distributed under the License is distributed on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
+ * for the specific language governing rights and limitations under the
+ * License.
+ *
+ * The Original Code is Mozilla Communicator client code, released March 31, 1998.
+ *
+ * The Initial Developer of the Original Code is
+ * Netscape Communications Corporation.
+ * Portions created by Netscape are Copyright (C) 1998-1999
+ * Netscape Communications Corporation. All Rights Reserved.
+ *
+ * Contributor(s):
+ *
+ * IBM
+ * - Binding to permit interfacing between Mozilla and SWT
+ * - Copyright (C) 2004, 2006 IBM Corp. All Rights Reserved.
+ *
+ * ***** END LICENSE BLOCK ***** */
+
+#ifdef NATIVE_STATS
+extern int XPCOM_PROFILE_nativeFunctionCount;
+extern int XPCOM_PROFILE_nativeFunctionCallCount[];
+extern char* XPCOM_PROFILE_nativeFunctionNames[];
+#define XPCOM_PROFILE_NATIVE_ENTER(env, that, func) XPCOM_PROFILE_nativeFunctionCallCount[func]++;
+#define XPCOM_PROFILE_NATIVE_EXIT(env, that, func)
+#else
+#define XPCOM_PROFILE_NATIVE_ENTER(env, that, func)
+#define XPCOM_PROFILE_NATIVE_EXIT(env, that, func)
+#endif
+
+typedef enum {
+ NS_1NewProfileDirServiceProvider_FUNC,
+ ProfileDirServiceProvider_1Register_FUNC,
+ ProfileDirServiceProvider_1SetProfileDir_FUNC,
+ ProfileDirServiceProvider_1Shutdown_FUNC,
+} XPCOM_PROFILE_FUNCS;
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/library/xpcom_profile_structs.c b/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/library/xpcom_profile_structs.c
new file mode 100644
index 0000000000..3d3e42be2e
--- /dev/null
+++ b/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/library/xpcom_profile_structs.c
@@ -0,0 +1,31 @@
+/* ***** BEGIN LICENSE BLOCK *****
+ * Version: MPL 1.1
+ *
+ * The contents of this file are subject to the Mozilla Public License Version
+ * 1.1 (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ * http://www.mozilla.org/MPL/
+ *
+ * Software distributed under the License is distributed on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
+ * for the specific language governing rights and limitations under the
+ * License.
+ *
+ * The Original Code is Mozilla Communicator client code, released March 31, 1998.
+ *
+ * The Initial Developer of the Original Code is
+ * Netscape Communications Corporation.
+ * Portions created by Netscape are Copyright (C) 1998-1999
+ * Netscape Communications Corporation. All Rights Reserved.
+ *
+ * Contributor(s):
+ *
+ * IBM
+ * - Binding to permit interfacing between Mozilla and SWT
+ * - Copyright (C) 2004, 2006 IBM Corp. All Rights Reserved.
+ *
+ * ***** END LICENSE BLOCK ***** */
+
+#include "swt.h"
+#include "xpcom_profile_structs.h"
+
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/library/xpcom_profile_structs.h b/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/library/xpcom_profile_structs.h
new file mode 100644
index 0000000000..f314d45b24
--- /dev/null
+++ b/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/library/xpcom_profile_structs.h
@@ -0,0 +1,30 @@
+/* ***** BEGIN LICENSE BLOCK *****
+ * Version: MPL 1.1
+ *
+ * The contents of this file are subject to the Mozilla Public License Version
+ * 1.1 (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ * http://www.mozilla.org/MPL/
+ *
+ * Software distributed under the License is distributed on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
+ * for the specific language governing rights and limitations under the
+ * License.
+ *
+ * The Original Code is Mozilla Communicator client code, released March 31, 1998.
+ *
+ * The Initial Developer of the Original Code is
+ * Netscape Communications Corporation.
+ * Portions created by Netscape are Copyright (C) 1998-1999
+ * Netscape Communications Corporation. All Rights Reserved.
+ *
+ * Contributor(s):
+ *
+ * IBM
+ * - Binding to permit interfacing between Mozilla and SWT
+ * - Copyright (C) 2004, 2006 IBM Corp. All Rights Reserved.
+ *
+ * ***** END LICENSE BLOCK ***** */
+
+#include "xpcom_profile.h"
+
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/internal/mozilla/XPCOM_PROFILE.java b/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/internal/mozilla/XPCOM_PROFILE.java
new file mode 100644
index 0000000000..8a42cdd1c7
--- /dev/null
+++ b/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/internal/mozilla/XPCOM_PROFILE.java
@@ -0,0 +1,37 @@
+/* ***** BEGIN LICENSE BLOCK *****
+ * Version: MPL 1.1
+ *
+ * The contents of this file are subject to the Mozilla Public License Version
+ * 1.1 (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ * http://www.mozilla.org/MPL/
+ *
+ * Software distributed under the License is distributed on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
+ * for the specific language governing rights and limitations under the
+ * License.
+ *
+ * The Original Code is Mozilla Communicator client code, released March 31, 1998.
+ *
+ * The Initial Developer of the Original Code is
+ * Netscape Communications Corporation.
+ * Portions created by Netscape are Copyright (C) 1998-1999
+ * Netscape Communications Corporation. All Rights Reserved.
+ *
+ * Contributor(s):
+ *
+ * IBM
+ * - Binding to permit interfacing between Mozilla and SWT
+ * - Copyright (C) 2003, 2006 IBM Corp. All Rights Reserved.
+ *
+ * ***** END LICENSE BLOCK ***** */
+package org.eclipse.swt.internal.mozilla;
+
+import org.eclipse.swt.internal.*;
+
+public class XPCOM_PROFILE extends Platform {
+ public static final native int NS_NewProfileDirServiceProvider (boolean aNotifyObservers, int /*long*/[] result);
+ public static final native int ProfileDirServiceProvider_Register(int /*long*/ ptr);
+ public static final native int ProfileDirServiceProvider_SetProfileDir(int /*long*/ ptr, int /*long*/ aProfileDir);
+ public static final native int ProfileDirServiceProvider_Shutdown(int /*long*/ ptr);
+}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/internal/mozilla/nsIDirectoryService.java b/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/internal/mozilla/nsIDirectoryService.java
new file mode 100644
index 0000000000..58aef5f984
--- /dev/null
+++ b/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/internal/mozilla/nsIDirectoryService.java
@@ -0,0 +1,55 @@
+/* ***** BEGIN LICENSE BLOCK *****
+ * Version: MPL 1.1
+ *
+ * The contents of this file are subject to the Mozilla Public License Version
+ * 1.1 (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ * http://www.mozilla.org/MPL/
+ *
+ * Software distributed under the License is distributed on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
+ * for the specific language governing rights and limitations under the
+ * License.
+ *
+ * The Original Code is Mozilla Communicator client code, released March 31, 1998.
+ *
+ * The Initial Developer of the Original Code is
+ * Netscape Communications Corporation.
+ * Portions created by Netscape are Copyright (C) 1998-1999
+ * Netscape Communications Corporation. All Rights Reserved.
+ *
+ * Contributor(s):
+ *
+ * IBM
+ * - Binding to permit interfacing between Mozilla and SWT
+ * - Copyright (C) 2003 IBM Corp. All Rights Reserved.
+ *
+ * ***** END LICENSE BLOCK ***** */
+package org.eclipse.swt.internal.mozilla;
+
+public class nsIDirectoryService extends nsISupports {
+
+ static final int LAST_METHOD_ID = nsISupports.LAST_METHOD_ID + 3;
+
+ public static final String NS_IDIRECTORYSERVICE_IID_STR =
+ "57a66a60-d43a-11d3-8cc2-00609792278c";
+
+ public static final nsID NS_IDIRECTORYSERVICE_IID =
+ new nsID(NS_IDIRECTORYSERVICE_IID_STR);
+
+ public nsIDirectoryService(int /*long*/ address) {
+ super(address);
+ }
+
+ public int Init() {
+ return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 1, getAddress());
+ }
+
+ public int RegisterProvider(int /*long*/ prov) {
+ return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 2, getAddress(), prov);
+ }
+
+ public int UnregisterProvider(int /*long*/ prov) {
+ return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 3, getAddress(), prov);
+ }
+}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/internal/mozilla/nsIDirectoryServiceProvider.java b/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/internal/mozilla/nsIDirectoryServiceProvider.java
new file mode 100644
index 0000000000..97c34c96f1
--- /dev/null
+++ b/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/internal/mozilla/nsIDirectoryServiceProvider.java
@@ -0,0 +1,47 @@
+/* ***** BEGIN LICENSE BLOCK *****
+ * Version: MPL 1.1
+ *
+ * The contents of this file are subject to the Mozilla Public License Version
+ * 1.1 (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ * http://www.mozilla.org/MPL/
+ *
+ * Software distributed under the License is distributed on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
+ * for the specific language governing rights and limitations under the
+ * License.
+ *
+ * The Original Code is Mozilla Communicator client code, released March 31, 1998.
+ *
+ * The Initial Developer of the Original Code is
+ * Netscape Communications Corporation.
+ * Portions created by Netscape are Copyright (C) 1998-1999
+ * Netscape Communications Corporation. All Rights Reserved.
+ *
+ * Contributor(s):
+ *
+ * IBM
+ * - Binding to permit interfacing between Mozilla and SWT
+ * - Copyright (C) 2003 IBM Corp. All Rights Reserved.
+ *
+ * ***** END LICENSE BLOCK ***** */
+package org.eclipse.swt.internal.mozilla;
+
+public class nsIDirectoryServiceProvider extends nsISupports {
+
+ static final int LAST_METHOD_ID = nsISupports.LAST_METHOD_ID + 1;
+
+ public static final String NS_IDIRECTORYSERVICEPROVIDER_IID_STR =
+ "bbf8cab0-d43a-11d3-8cc2-00609792278c";
+
+ public static final nsID NS_IDIRECTORYSERVICEPROVIDER_IID =
+ new nsID(NS_IDIRECTORYSERVICEPROVIDER_IID_STR);
+
+ public nsIDirectoryServiceProvider(int /*long*/ address) {
+ super(address);
+ }
+
+ public int GetFile(byte[] prop, boolean[] persistent, int /*long*/[] _retval) {
+ return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 1, getAddress(), prop, persistent, _retval);
+ }
+}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/internal/mozilla/nsIDirectoryServiceProvider2.java b/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/internal/mozilla/nsIDirectoryServiceProvider2.java
new file mode 100644
index 0000000000..b1cf5c4443
--- /dev/null
+++ b/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/internal/mozilla/nsIDirectoryServiceProvider2.java
@@ -0,0 +1,47 @@
+/* ***** BEGIN LICENSE BLOCK *****
+ * Version: MPL 1.1
+ *
+ * The contents of this file are subject to the Mozilla Public License Version
+ * 1.1 (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ * http://www.mozilla.org/MPL/
+ *
+ * Software distributed under the License is distributed on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
+ * for the specific language governing rights and limitations under the
+ * License.
+ *
+ * The Original Code is Mozilla Communicator client code, released March 31, 1998.
+ *
+ * The Initial Developer of the Original Code is
+ * Netscape Communications Corporation.
+ * Portions created by Netscape are Copyright (C) 1998-1999
+ * Netscape Communications Corporation. All Rights Reserved.
+ *
+ * Contributor(s):
+ *
+ * IBM
+ * - Binding to permit interfacing between Mozilla and SWT
+ * - Copyright (C) 2003 IBM Corp. All Rights Reserved.
+ *
+ * ***** END LICENSE BLOCK ***** */
+package org.eclipse.swt.internal.mozilla;
+
+public class nsIDirectoryServiceProvider2 extends nsIDirectoryServiceProvider {
+
+ static final int LAST_METHOD_ID = nsIDirectoryServiceProvider.LAST_METHOD_ID + 1;
+
+ public static final String NS_IDIRECTORYSERVICEPROVIDER2_IID_STR =
+ "2f977d4b-5485-11d4-87e2-0010a4e75ef2";
+
+ public static final nsID NS_IDIRECTORYSERVICEPROVIDER2_IID =
+ new nsID(NS_IDIRECTORYSERVICEPROVIDER2_IID_STR);
+
+ public nsIDirectoryServiceProvider2(int /*long*/ address) {
+ super(address);
+ }
+
+ public int GetFiles(byte[] prop, int /*long*/[] _retval) {
+ return XPCOM.VtblCall(nsIDirectoryServiceProvider.LAST_METHOD_ID + 1, getAddress(), prop, _retval);
+ }
+}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/internal/mozilla/nsIProperties.java b/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/internal/mozilla/nsIProperties.java
new file mode 100644
index 0000000000..0e4e345cd5
--- /dev/null
+++ b/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/internal/mozilla/nsIProperties.java
@@ -0,0 +1,63 @@
+/* ***** BEGIN LICENSE BLOCK *****
+ * Version: MPL 1.1
+ *
+ * The contents of this file are subject to the Mozilla Public License Version
+ * 1.1 (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ * http://www.mozilla.org/MPL/
+ *
+ * Software distributed under the License is distributed on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
+ * for the specific language governing rights and limitations under the
+ * License.
+ *
+ * The Original Code is Mozilla Communicator client code, released March 31, 1998.
+ *
+ * The Initial Developer of the Original Code is
+ * Netscape Communications Corporation.
+ * Portions created by Netscape are Copyright (C) 1998-1999
+ * Netscape Communications Corporation. All Rights Reserved.
+ *
+ * Contributor(s):
+ *
+ * IBM
+ * - Binding to permit interfacing between Mozilla and SWT
+ * - Copyright (C) 2003 IBM Corp. All Rights Reserved.
+ *
+ * ***** END LICENSE BLOCK ***** */
+package org.eclipse.swt.internal.mozilla;
+
+public class nsIProperties extends nsISupports {
+
+ static final int LAST_METHOD_ID = nsISupports.LAST_METHOD_ID + 5;
+
+ public static final String NS_IPROPERTIES_IID_STR =
+ "78650582-4e93-4b60-8e85-26ebd3eb14ca";
+
+ public static final nsID NS_IPROPERTIES_IID =
+ new nsID(NS_IPROPERTIES_IID_STR);
+
+ public nsIProperties(int /*long*/ address) {
+ super(address);
+ }
+
+ public int Get(byte[] prop, nsID iid, int /*long*/[] result) {
+ return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 1, getAddress(), prop, iid, result);
+ }
+
+ public int Set(byte[] prop, int /*long*/ value) {
+ return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 2, getAddress(), prop, value);
+ }
+
+ public int Has(byte[] prop, boolean[] _retval) {
+ return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 3, getAddress(), prop, _retval);
+ }
+
+ public int Undefine(byte[] prop) {
+ return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 4, getAddress(), prop);
+ }
+
+ public int GetKeys(int[] count, int /*long*/[] keys) {
+ return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 5, getAddress(), count, keys);
+ }
+}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/cairo/org/eclipse/swt/internal/cairo/cairo_text_extents_t.java b/bundles/org.eclipse.swt/Eclipse SWT PI/cairo/org/eclipse/swt/internal/cairo/cairo_text_extents_t.java
new file mode 100644
index 0000000000..f57b0540cb
--- /dev/null
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/cairo/org/eclipse/swt/internal/cairo/cairo_text_extents_t.java
@@ -0,0 +1,32 @@
+/* ***** BEGIN LICENSE BLOCK *****
+ * Version: MPL 1.1
+ *
+ * The contents of this file are subject to the Mozilla Public License Version
+ * 1.1 (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ * http://www.mozilla.org/MPL/
+ *
+ * Software distributed under the License is distributed on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
+ * for the specific language governing rights and limitations under the
+ * License.
+ *
+ * Contributor(s):
+ *
+ * IBM
+ * - Binding to permit interfacing between Cairo and SWT
+ * - Copyright (C) 2005 IBM Corp. All Rights Reserved.
+ *
+ * ***** END LICENSE BLOCK ***** */
+package org.eclipse.swt.internal.cairo;
+
+
+public class cairo_text_extents_t {
+ public double x_bearing;
+ public double y_bearing;
+ public double width;
+ public double height;
+ public double x_advance;
+ public double y_advance;
+ public static final int sizeof = Cairo.cairo_text_extents_t_sizeof();
+}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/win32/org/eclipse/swt/internal/win32/SCRIPT_DIGITSUBSTITUTE.java b/bundles/org.eclipse.swt/Eclipse SWT PI/win32/org/eclipse/swt/internal/win32/SCRIPT_DIGITSUBSTITUTE.java
new file mode 100644
index 0000000000..0a3dc0a2f1
--- /dev/null
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/win32/org/eclipse/swt/internal/win32/SCRIPT_DIGITSUBSTITUTE.java
@@ -0,0 +1,19 @@
+/*******************************************************************************
+ * Copyright (c) 2000, 2006 IBM Corporation and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * IBM Corporation - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.swt.internal.win32;
+
+public class SCRIPT_DIGITSUBSTITUTE {
+ public short NationalDigitLanguage;
+ public short TraditionalDigitLanguage;
+ public byte DigitSubstitute;
+ public int dwReserved;
+ public static final int sizeof = 12;
+}
diff --git a/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet195.java b/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet195.java
new file mode 100644
index 0000000000..82fcfc58f6
--- /dev/null
+++ b/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet195.java
@@ -0,0 +1,134 @@
+/*******************************************************************************
+ * Copyright (c) 2000, 2005 IBM Corporation and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * IBM Corporation - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.swt.snippets;
+
+/*
+ * SWT OpenGL snippet: use LWJGL to draw to an SWT GLCanvas
+ *
+ * For a list of all SWT example snippets see
+ * http://www.eclipse.org/swt/snippets/
+ *
+ * @since 3.2
+ */
+import org.eclipse.swt.*;
+import org.eclipse.swt.layout.*;
+import org.eclipse.swt.widgets.*;
+import org.eclipse.swt.graphics.*;
+import org.eclipse.swt.opengl.GLCanvas;
+import org.eclipse.swt.opengl.GLData;
+import org.lwjgl.opengl.GL11;
+import org.lwjgl.opengl.GLContext;
+import org.lwjgl.opengl.glu.GLU;
+import org.lwjgl.LWJGLException;
+
+public class Snippet195 {
+ static void drawTorus(float r, float R, int nsides, int rings) {
+ float ringDelta = 2.0f * (float) Math.PI / rings;
+ float sideDelta = 2.0f * (float) Math.PI / nsides;
+ float theta = 0.0f, cosTheta = 1.0f, sinTheta = 0.0f;
+ for (int i = rings - 1; i >= 0; i--) {
+ float theta1 = theta + ringDelta;
+ float cosTheta1 = (float) Math.cos(theta1);
+ float sinTheta1 = (float) Math.sin(theta1);
+ GL11.glBegin(GL11.GL_QUAD_STRIP);
+ float phi = 0.0f;
+ for (int j = nsides; j >= 0; j--) {
+ phi += sideDelta;
+ float cosPhi = (float) Math.cos(phi);
+ float sinPhi = (float) Math.sin(phi);
+ float dist = R + r * cosPhi;
+ GL11.glNormal3f(cosTheta1 * cosPhi, -sinTheta1 * cosPhi, sinPhi);
+ GL11.glVertex3f(cosTheta1 * dist, -sinTheta1 * dist, r * sinPhi);
+ GL11.glNormal3f(cosTheta * cosPhi, -sinTheta * cosPhi, sinPhi);
+ GL11.glVertex3f(cosTheta * dist, -sinTheta * dist, r * sinPhi);
+ }
+ GL11.glEnd();
+ theta = theta1;
+ cosTheta = cosTheta1;
+ sinTheta = sinTheta1;
+ }
+ }
+
+ public static void main(String [] args) {
+ final Display display = new Display();
+ Shell shell = new Shell(display);
+ shell.setLayout(new FillLayout());
+ Composite comp = new Composite(shell, SWT.NONE);
+ comp.setLayout(new FillLayout());
+ GLData data = new GLData ();
+ data.doubleBuffer = true;
+ final GLCanvas canvas = new GLCanvas(comp, SWT.NONE, data);
+
+ canvas.setCurrent();
+ try {
+ GLContext.useContext(canvas);
+ } catch(LWJGLException e) { e.printStackTrace(); }
+
+ canvas.addListener(SWT.Resize, new Listener() {
+ public void handleEvent(Event event) {
+ Rectangle bounds = canvas.getBounds();
+ float fAspect = (float) bounds.width / (float) bounds.height;
+ canvas.setCurrent();
+ try {
+ GLContext.useContext(canvas);
+ } catch(LWJGLException e) { e.printStackTrace(); }
+ GL11.glViewport(0, 0, bounds.width, bounds.height);
+ GL11.glMatrixMode(GL11.GL_PROJECTION);
+ GL11.glLoadIdentity();
+ GLU.gluPerspective(45.0f, fAspect, 0.5f, 400.0f);
+ GL11.glMatrixMode(GL11.GL_MODELVIEW);
+ GL11.glLoadIdentity();
+ }
+ });
+
+ GL11.glClearColor(1.0f, 1.0f, 1.0f, 1.0f);
+ GL11.glColor3f(1.0f, 0.0f, 0.0f);
+ GL11.glHint(GL11.GL_PERSPECTIVE_CORRECTION_HINT, GL11.GL_NICEST);
+ GL11.glClearDepth(1.0);
+ GL11.glLineWidth(2);
+ GL11.glEnable(GL11.GL_DEPTH_TEST);
+
+ shell.setText("SWT/LWJGL Example");
+ shell.setSize(640, 480);
+ shell.open();
+
+ display.asyncExec(new Runnable() {
+ int rot = 0;
+ public void run() {
+ if (!canvas.isDisposed()) {
+ canvas.setCurrent();
+ try {
+ GLContext.useContext(canvas);
+ } catch(LWJGLException e) { e.printStackTrace(); }
+ GL11.glClear(GL11.GL_COLOR_BUFFER_BIT | GL11.GL_DEPTH_BUFFER_BIT);
+ GL11.glClearColor(.3f, .5f, .8f, 1.0f);
+ GL11.glLoadIdentity();
+ GL11.glTranslatef(0.0f, 0.0f, -10.0f);
+ float frot = rot;
+ GL11.glRotatef(0.15f * rot, 2.0f * frot, 10.0f * frot, 1.0f);
+ GL11.glRotatef(0.3f * rot, 3.0f * frot, 1.0f * frot, 1.0f);
+ rot++;
+ GL11.glPolygonMode(GL11.GL_FRONT_AND_BACK, GL11.GL_LINE);
+ GL11.glColor3f(0.9f, 0.9f, 0.9f);
+ drawTorus(1, 1.9f + ((float) Math.sin((0.004f * frot))), 15, 15);
+ canvas.swapBuffers();
+ display.asyncExec(this);
+ }
+ }
+ });
+
+ while (!shell.isDisposed()) {
+ if (!display.readAndDispatch())
+ display.sleep();
+ }
+ display.dispose();
+ }
+}
diff --git a/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet244.java b/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet244.java
new file mode 100644
index 0000000000..617dfe9389
--- /dev/null
+++ b/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet244.java
@@ -0,0 +1,55 @@
+/*******************************************************************************
+ * Copyright (c) 2000, 2006 IBM Corporation and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * IBM Corporation - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.swt.snippets;
+
+/*
+ * StyledText snippet: Draw a box around text.
+ *
+ * For a list of all SWT example snippets see
+ * http://www.eclipse.org/swt/snippets/
+ */
+
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.custom.StyledText;
+import org.eclipse.swt.graphics.*;
+import org.eclipse.swt.widgets.*;
+
+public class Snippet244 {
+ static String SEARCH_STRING = "box";
+ public static void main(String[] args) {
+ final Display display = new Display();
+ final Color RED = display.getSystemColor(SWT.COLOR_RED);
+ Shell shell = new Shell(display);
+ shell.setBounds(10,10,250,250);
+ final StyledText text = new StyledText(shell, SWT.NONE);
+ text.setBounds(10,10,200,200);
+ text.addListener(SWT.Paint, new Listener() {
+ public void handleEvent(Event event) {
+ String contents = text.getText();
+ int stringWidth = event.gc.stringExtent(SEARCH_STRING).x;
+ int lineHeight = text.getLineHeight();
+ event.gc.setForeground(RED);
+ int index = contents.indexOf(SEARCH_STRING);
+ while (index != -1) {
+ Point topLeft = text.getLocationAtOffset(index);
+ event.gc.drawRectangle(topLeft.x - 1, topLeft.y, stringWidth + 1, lineHeight - 1);
+ index = contents.indexOf(SEARCH_STRING, index + 1);
+ }
+ }
+ });
+ text.setText("This demonstrates drawing a box\naround every occurrence of the word\nbox in the StyledText");
+ shell.open();
+ while (!shell.isDisposed()) {
+ if (!display.readAndDispatch()) display.sleep();
+ }
+ display.dispose();
+ }
+}
diff --git a/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet245.java b/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet245.java
new file mode 100644
index 0000000000..00b842515a
--- /dev/null
+++ b/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet245.java
@@ -0,0 +1,42 @@
+/*******************************************************************************
+ * Copyright (c) 2000, 2006 IBM Corporation and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * IBM Corporation - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.swt.snippets;
+
+/*
+ * Canvas snippet: paint a circle in a canvas
+ *
+ * For a list of all SWT example snippets see
+ * http://www.eclipse.org/swt/snippets/
+ */
+
+import org.eclipse.swt.graphics.*;
+import org.eclipse.swt.widgets.*;
+import org.eclipse.swt.events.*;
+
+public class Snippet245 {
+
+public static void main(String [] args) {
+ final Display display = new Display();
+ final Shell shell = new Shell(display);
+ shell.addPaintListener(new PaintListener() {
+ public void paintControl(PaintEvent event) {
+ Rectangle rect = shell.getClientArea();
+ event.gc.drawOval(0, 0, rect.width - 1, rect.height - 1);
+ }
+ });
+ shell.setBounds(10, 10, 200, 200);
+ shell.open ();
+ while (!shell.isDisposed()) {
+ if (!display.readAndDispatch()) display.sleep();
+ }
+ display.dispose();
+}
+}

Back to the top