Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEd Merks2019-09-25 06:58:25 -0400
committerEd Merks2019-09-25 07:55:03 -0400
commit4612f71d7cfcb1171a36dc49b3eec1bfc8b94218 (patch)
tree13643ddc20437b414d59cc146ca252af3862e6bd
parent2822ec713a601487babebbb3950746a13446ca61 (diff)
downloadeclipse.platform.swt-4612f71d7cfcb1171a36dc49b3eec1bfc8b94218.tar.gz
eclipse.platform.swt-4612f71d7cfcb1171a36dc49b3eec1bfc8b94218.tar.xz
eclipse.platform.swt-4612f71d7cfcb1171a36dc49b3eec1bfc8b94218.zip
Bug 551438 - Fix files that have ended up with CRLF in the git
repository Change-Id: I0b73a52d66fc55656971ed0e78bd436d3e0bdecf Signed-off-by: Ed Merks <ed.merks@gmail.com>
-rw-r--r--bundles/org.eclipse.swt.tools.base/.project44
-rw-r--r--bundles/org.eclipse.swt.tools.base/META-INF/MANIFEST.MF2
-rw-r--r--bundles/org.eclipse.swt.tools.base/pom.xml2
-rw-r--r--bundles/org.eclipse.swt.tools.spies/.project56
-rw-r--r--bundles/org.eclipse.swt/.settings/org.eclipse.jdt.ui.prefs128
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/win32/library/javaw.exe.manifest66
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/common_j2se/org/eclipse/swt/internal/SWTMessages_lv._properties244
-rw-r--r--examples/org.eclipse.swt.snippets/.settings/org.eclipse.jdt.core.prefs212
-rw-r--r--examples/org.eclipse.swt.snippets/.settings/org.eclipse.jdt.ui.prefs128
-rw-r--r--tests/org.eclipse.swt.tests.cocoa/.settings/org.eclipse.m2e.core.prefs8
-rw-r--r--tests/org.eclipse.swt.tests.gtk/.settings/org.eclipse.m2e.core.prefs8
-rw-r--r--tests/org.eclipse.swt.tests.gtk/ManualTests/org/eclipse/swt/tests/gtk/snippets/Bug547093_LogoffStuck.java112
-rw-r--r--tests/org.eclipse.swt.tests.win32/ManualTests/org/eclipse/swt/tests/win32/snippets/Bug543747_JvmCrash_Msctf.java286
-rw-r--r--tests/org.eclipse.swt.tests/ManualTests/org/eclipse/swt/tests/manual/Bug548982_TreeAddRemoveMany.java316
14 files changed, 806 insertions, 806 deletions
diff --git a/bundles/org.eclipse.swt.tools.base/.project b/bundles/org.eclipse.swt.tools.base/.project
index e8f1538351..20345e1686 100644
--- a/bundles/org.eclipse.swt.tools.base/.project
+++ b/bundles/org.eclipse.swt.tools.base/.project
@@ -1,22 +1,22 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.eclipse.swt.tools.base</name>
- <comment></comment>
- <projects>
- </projects>
- <buildSpec>
- <buildCommand>
- <name>org.eclipse.pde.ManifestBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.pde.SchemaBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- </buildSpec>
- <natures>
- <nature>org.eclipse.pde.PluginNature</nature>
- </natures>
-</projectDescription>
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.eclipse.swt.tools.base</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.SchemaBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ </natures>
+</projectDescription>
diff --git a/bundles/org.eclipse.swt.tools.base/META-INF/MANIFEST.MF b/bundles/org.eclipse.swt.tools.base/META-INF/MANIFEST.MF
index 5d72de7648..37f24c445d 100644
--- a/bundles/org.eclipse.swt.tools.base/META-INF/MANIFEST.MF
+++ b/bundles/org.eclipse.swt.tools.base/META-INF/MANIFEST.MF
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-Name: %pluginName
Bundle-Vendor: %providerName
Bundle-SymbolicName: org.eclipse.swt.tools.base;singleton:=true
-Bundle-Version: 3.107.200.qualifier
+Bundle-Version: 3.107.300.qualifier
Bundle-ManifestVersion: 2
Bundle-ActivationPolicy: lazy
Bundle-Localization: plugin
diff --git a/bundles/org.eclipse.swt.tools.base/pom.xml b/bundles/org.eclipse.swt.tools.base/pom.xml
index 92b67d0864..3b56b557f9 100644
--- a/bundles/org.eclipse.swt.tools.base/pom.xml
+++ b/bundles/org.eclipse.swt.tools.base/pom.xml
@@ -19,6 +19,6 @@
</parent>
<groupId>org.eclipse.swt</groupId>
<artifactId>org.eclipse.swt.tools.base</artifactId>
- <version>3.107.200-SNAPSHOT</version>
+ <version>3.107.300-SNAPSHOT</version>
<packaging>eclipse-plugin</packaging>
</project>
diff --git a/bundles/org.eclipse.swt.tools.spies/.project b/bundles/org.eclipse.swt.tools.spies/.project
index e6501742a7..41790f2b0f 100644
--- a/bundles/org.eclipse.swt.tools.spies/.project
+++ b/bundles/org.eclipse.swt.tools.spies/.project
@@ -1,28 +1,28 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.eclipse.swt.tools.spies</name>
- <comment></comment>
- <projects>
- </projects>
- <buildSpec>
- <buildCommand>
- <name>org.eclipse.jdt.core.javabuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.pde.ManifestBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.pde.SchemaBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- </buildSpec>
- <natures>
- <nature>org.eclipse.pde.PluginNature</nature>
- <nature>org.eclipse.jdt.core.javanature</nature>
- </natures>
-</projectDescription>
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.eclipse.swt.tools.spies</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.SchemaBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
diff --git a/bundles/org.eclipse.swt/.settings/org.eclipse.jdt.ui.prefs b/bundles/org.eclipse.swt/.settings/org.eclipse.jdt.ui.prefs
index dc92561f1e..f49cccd431 100644
--- a/bundles/org.eclipse.swt/.settings/org.eclipse.jdt.ui.prefs
+++ b/bundles/org.eclipse.swt/.settings/org.eclipse.jdt.ui.prefs
@@ -1,64 +1,64 @@
-eclipse.preferences.version=1
-editor_save_participant_org.eclipse.jdt.ui.postsavelistener.cleanup=true
-org.eclipse.jdt.ui.ignorelowercasenames=true
-org.eclipse.jdt.ui.importorder=java;javax;org;com;
-org.eclipse.jdt.ui.ondemandthreshold=1
-org.eclipse.jdt.ui.staticondemandthreshold=3
-sp_cleanup.add_default_serial_version_id=true
-sp_cleanup.add_generated_serial_version_id=false
-sp_cleanup.add_missing_annotations=true
-sp_cleanup.add_missing_deprecated_annotations=true
-sp_cleanup.add_missing_methods=false
-sp_cleanup.add_missing_nls_tags=false
-sp_cleanup.add_missing_override_annotations=true
-sp_cleanup.add_missing_override_annotations_interface_methods=true
-sp_cleanup.add_serial_version_id=false
-sp_cleanup.always_use_blocks=true
-sp_cleanup.always_use_parentheses_in_expressions=false
-sp_cleanup.always_use_this_for_non_static_field_access=false
-sp_cleanup.always_use_this_for_non_static_method_access=false
-sp_cleanup.convert_functional_interfaces=true
-sp_cleanup.convert_to_enhanced_for_loop=false
-sp_cleanup.correct_indentation=false
-sp_cleanup.format_source_code=false
-sp_cleanup.format_source_code_changes_only=false
-sp_cleanup.insert_inferred_type_arguments=false
-sp_cleanup.make_local_variable_final=true
-sp_cleanup.make_parameters_final=false
-sp_cleanup.make_private_fields_final=true
-sp_cleanup.make_type_abstract_if_missing_method=false
-sp_cleanup.make_variable_declarations_final=false
-sp_cleanup.never_use_blocks=false
-sp_cleanup.never_use_parentheses_in_expressions=true
-sp_cleanup.on_save_use_additional_actions=true
-sp_cleanup.organize_imports=true
-sp_cleanup.qualify_static_field_accesses_with_declaring_class=false
-sp_cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true
-sp_cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true
-sp_cleanup.qualify_static_member_accesses_with_declaring_class=false
-sp_cleanup.qualify_static_method_accesses_with_declaring_class=false
-sp_cleanup.remove_private_constructors=true
-sp_cleanup.remove_redundant_type_arguments=true
-sp_cleanup.remove_trailing_whitespaces=true
-sp_cleanup.remove_trailing_whitespaces_all=true
-sp_cleanup.remove_trailing_whitespaces_ignore_empty=false
-sp_cleanup.remove_unnecessary_casts=false
-sp_cleanup.remove_unnecessary_nls_tags=false
-sp_cleanup.remove_unused_imports=false
-sp_cleanup.remove_unused_local_variables=false
-sp_cleanup.remove_unused_private_fields=true
-sp_cleanup.remove_unused_private_members=false
-sp_cleanup.remove_unused_private_methods=true
-sp_cleanup.remove_unused_private_types=true
-sp_cleanup.sort_members=false
-sp_cleanup.sort_members_all=false
-sp_cleanup.use_anonymous_class_creation=false
-sp_cleanup.use_blocks=false
-sp_cleanup.use_blocks_only_for_return_and_throw=false
-sp_cleanup.use_lambda=true
-sp_cleanup.use_parentheses_in_expressions=false
-sp_cleanup.use_this_for_non_static_field_access=false
-sp_cleanup.use_this_for_non_static_field_access_only_if_necessary=true
-sp_cleanup.use_this_for_non_static_method_access=false
-sp_cleanup.use_this_for_non_static_method_access_only_if_necessary=true
-sp_cleanup.use_type_arguments=false
+eclipse.preferences.version=1
+editor_save_participant_org.eclipse.jdt.ui.postsavelistener.cleanup=true
+org.eclipse.jdt.ui.ignorelowercasenames=true
+org.eclipse.jdt.ui.importorder=java;javax;org;com;
+org.eclipse.jdt.ui.ondemandthreshold=1
+org.eclipse.jdt.ui.staticondemandthreshold=3
+sp_cleanup.add_default_serial_version_id=true
+sp_cleanup.add_generated_serial_version_id=false
+sp_cleanup.add_missing_annotations=true
+sp_cleanup.add_missing_deprecated_annotations=true
+sp_cleanup.add_missing_methods=false
+sp_cleanup.add_missing_nls_tags=false
+sp_cleanup.add_missing_override_annotations=true
+sp_cleanup.add_missing_override_annotations_interface_methods=true
+sp_cleanup.add_serial_version_id=false
+sp_cleanup.always_use_blocks=true
+sp_cleanup.always_use_parentheses_in_expressions=false
+sp_cleanup.always_use_this_for_non_static_field_access=false
+sp_cleanup.always_use_this_for_non_static_method_access=false
+sp_cleanup.convert_functional_interfaces=true
+sp_cleanup.convert_to_enhanced_for_loop=false
+sp_cleanup.correct_indentation=false
+sp_cleanup.format_source_code=false
+sp_cleanup.format_source_code_changes_only=false
+sp_cleanup.insert_inferred_type_arguments=false
+sp_cleanup.make_local_variable_final=true
+sp_cleanup.make_parameters_final=false
+sp_cleanup.make_private_fields_final=true
+sp_cleanup.make_type_abstract_if_missing_method=false
+sp_cleanup.make_variable_declarations_final=false
+sp_cleanup.never_use_blocks=false
+sp_cleanup.never_use_parentheses_in_expressions=true
+sp_cleanup.on_save_use_additional_actions=true
+sp_cleanup.organize_imports=true
+sp_cleanup.qualify_static_field_accesses_with_declaring_class=false
+sp_cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true
+sp_cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true
+sp_cleanup.qualify_static_member_accesses_with_declaring_class=false
+sp_cleanup.qualify_static_method_accesses_with_declaring_class=false
+sp_cleanup.remove_private_constructors=true
+sp_cleanup.remove_redundant_type_arguments=true
+sp_cleanup.remove_trailing_whitespaces=true
+sp_cleanup.remove_trailing_whitespaces_all=true
+sp_cleanup.remove_trailing_whitespaces_ignore_empty=false
+sp_cleanup.remove_unnecessary_casts=false
+sp_cleanup.remove_unnecessary_nls_tags=false
+sp_cleanup.remove_unused_imports=false
+sp_cleanup.remove_unused_local_variables=false
+sp_cleanup.remove_unused_private_fields=true
+sp_cleanup.remove_unused_private_members=false
+sp_cleanup.remove_unused_private_methods=true
+sp_cleanup.remove_unused_private_types=true
+sp_cleanup.sort_members=false
+sp_cleanup.sort_members_all=false
+sp_cleanup.use_anonymous_class_creation=false
+sp_cleanup.use_blocks=false
+sp_cleanup.use_blocks_only_for_return_and_throw=false
+sp_cleanup.use_lambda=true
+sp_cleanup.use_parentheses_in_expressions=false
+sp_cleanup.use_this_for_non_static_field_access=false
+sp_cleanup.use_this_for_non_static_field_access_only_if_necessary=true
+sp_cleanup.use_this_for_non_static_method_access=false
+sp_cleanup.use_this_for_non_static_method_access_only_if_necessary=true
+sp_cleanup.use_type_arguments=false
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/win32/library/javaw.exe.manifest b/bundles/org.eclipse.swt/Eclipse SWT PI/win32/library/javaw.exe.manifest
index 20c6887e2e..2778a89b49 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/win32/library/javaw.exe.manifest
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/win32/library/javaw.exe.manifest
@@ -1,34 +1,34 @@
-<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
-<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
- <assemblyIdentity version="1.0.0.0" processorArchitecture="*" name="SWT.javaw" type="win32" />
- <description>Standard Widget Toolkit</description>
- <dependency>
- <dependentAssembly>
- <assemblyIdentity type="win32" name="Microsoft.Windows.Common-Controls" version="6.0.0.0" processorArchitecture="*" publicKeyToken="6595b64144ccf1df" language="*" />
- </dependentAssembly>
- </dependency>
- <application xmlns="urn:schemas-microsoft-com:asm.v3">
- <windowsSettings>
- <dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true/pm</dpiAware>
- <dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">PerMonitorV2, PerMonitor</dpiAwareness>
- <!-- Un-comment the line below to enable GDI-scaling in this project. This will enable text -->
- <!-- to render crisply in DPI-unaware content -->
- <!--<gdiScaling xmlns="http://schemas.microsoft.com/SMI/2017/WindowsSettings">true</gdiScaling>-->
- </windowsSettings>
- </application>
- <!--Specifically targeting your application for Windows 8.1 or Windows 10: https://msdn.microsoft.com/en-us/library/windows/desktop/dn481241(v=vs.85).aspx -->
- <compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
- <application>
- <!-- Windows 10 -->
- <supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}"/>
- <!-- Windows 8.1 -->
- <supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}"/>
- <!-- Windows Vista -->
- <supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}"/>
- <!-- Windows 7 -->
- <supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}"/>
- <!-- Windows 8 -->
- <supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}"/>
- </application>
- </compatibility>
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
+ <assemblyIdentity version="1.0.0.0" processorArchitecture="*" name="SWT.javaw" type="win32" />
+ <description>Standard Widget Toolkit</description>
+ <dependency>
+ <dependentAssembly>
+ <assemblyIdentity type="win32" name="Microsoft.Windows.Common-Controls" version="6.0.0.0" processorArchitecture="*" publicKeyToken="6595b64144ccf1df" language="*" />
+ </dependentAssembly>
+ </dependency>
+ <application xmlns="urn:schemas-microsoft-com:asm.v3">
+ <windowsSettings>
+ <dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true/pm</dpiAware>
+ <dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">PerMonitorV2, PerMonitor</dpiAwareness>
+ <!-- Un-comment the line below to enable GDI-scaling in this project. This will enable text -->
+ <!-- to render crisply in DPI-unaware content -->
+ <!--<gdiScaling xmlns="http://schemas.microsoft.com/SMI/2017/WindowsSettings">true</gdiScaling>-->
+ </windowsSettings>
+ </application>
+ <!--Specifically targeting your application for Windows 8.1 or Windows 10: https://msdn.microsoft.com/en-us/library/windows/desktop/dn481241(v=vs.85).aspx -->
+ <compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
+ <application>
+ <!-- Windows 10 -->
+ <supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}"/>
+ <!-- Windows 8.1 -->
+ <supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}"/>
+ <!-- Windows Vista -->
+ <supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}"/>
+ <!-- Windows 7 -->
+ <supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}"/>
+ <!-- Windows 8 -->
+ <supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}"/>
+ </application>
+ </compatibility>
</assembly> \ No newline at end of file
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/common_j2se/org/eclipse/swt/internal/SWTMessages_lv._properties b/bundles/org.eclipse.swt/Eclipse SWT/common_j2se/org/eclipse/swt/internal/SWTMessages_lv._properties
index dc0c8b2d5f..ffb577c97f 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/common_j2se/org/eclipse/swt/internal/SWTMessages_lv._properties
+++ b/bundles/org.eclipse.swt/Eclipse SWT/common_j2se/org/eclipse/swt/internal/SWTMessages_lv._properties
@@ -1,125 +1,125 @@
-###############################################################################
-# Copyright (c) 2000, 2013 IBM Corporation and others.
+###############################################################################
+# Copyright (c) 2000, 2013 IBM Corporation and others.
#
-# This program and the accompanying materials
-# are made available under the terms of the Eclipse Public License 2.0
-# which accompanies this distribution, and is available at
+# This program and the accompanying materials
+# are made available under the terms of the Eclipse Public License 2.0
+# which accompanies this distribution, and is available at
# https://www.eclipse.org/legal/epl-2.0/
#
-# SPDX-License-Identifier: EPL-2.0
-#
-# Contributors:
-# IBM Corporation - initial API and implementation
-###############################################################################
-# NLS_ENCODING=UNICODE
-# NLS_MARKUP=IBMNJDK2
-# NLS_MESSAGEFORMAT_VAR
-
-SWT_Yes=J\u0101
-SWT_No=N\u0113
-SWT_OK=Labi
-SWT_Cancel=Atcelt
-SWT_Help=Pal\u012bdz\u012bba
-SWT_Abort=Priek\u0161laikus p\u0101rtraukt
-SWT_Retry=M\u0113\u0123in\u0101t v\u0113lreiz
-SWT_Ignore=Ignor\u0113t
-SWT_Sample=Paraugs
-SWT_A_Sample_Text=Parauga teksts
-SWT_Selection=Atlase
-SWT_Current_Selection=Pa\u0161reiz\u0113j\u0101 atlase
-SWT_Font=Fonts
-SWT_Color=Kr\u0101sa
-SWT_Extended_style=Papla\u0161in\u0101ts stils
-SWT_Size=Izm\u0113rs
-SWT_Style=Stils
-SWT_Save=Saglab\u0101t
-SWT_Character_set=Rakstz\u012bmju kopa
-SWT_ColorDialog_Title=Kr\u0101sas
-SWT_FontDialog_Title=Fonti
-SWT_FontSet=Fontu kopa
-SWT_NewFont=Jauns fonts
-SWT_Remove=No\u0146emt
-SWT_Up=Uz aug\u0161u
-SWT_Down=Uz leju
-SWT_Charset_Western=rietumu
-SWT_Charset_EastEuropean=austrumu
-SWT_Charset_SouthEuropean=dienvidu
-SWT_Charset_NorthEuropean=zieme\u013cu
-SWT_Charset_Cyrillic=kirilica
-SWT_Charset_Arabic=ar\u0101bu
-SWT_Charset_Greek=grie\u0137u
-SWT_Charset_Hebrew=ebreju
-SWT_Charset_Turkish=turku
-SWT_Charset_Nordic=nordic
-SWT_Charset_Thai=taju
-SWT_Charset_BalticRim=baltic rim
-SWT_Charset_Celtic=\u0137eltu
-SWT_Charset_Euro=euro
-SWT_Charset_Romanian=rum\u0101\u0146u
-SWT_Charset_SimplifiedChinese=vienk.\u0137\u012bnie\u0161u
-SWT_Charset_TraditionalChinese=trad. \u0137\u012bnie\u0161u
-SWT_Charset_Japanese=jap\u0101\u0146u
-SWT_Charset_Korean=korejie\u0161u
-SWT_Charset_Unicode=unikods
-SWT_Charset_ASCII=ASCII
-SWT_InputMethods=Ievades metodes
-SWT_Password=Parole:
-SWT_Username=Lietot\u0101jv\u0101rds:
-SWT_Switch=P\u0101rsl\u0113gt
-SWT_Press=Nospiest
-SWT_Open=Atv\u0113rt
-SWT_Close=Aizv\u0113rt
-SWT_Minimize=Minimiz\u0113t
-SWT_Maximize=Maksimiz\u0113t
-SWT_Restore=Atjaunot
-SWT_ShowList=R\u0101d\u012bt sarakstu
-SWT_Page_Mnemonic=Alt+{0}
-SWT_SwitchPage_Shortcut=Ctrl+PageDown
-SWT_FileDownload=Faila lejupiel\u0101de
-SWT_Download_Error=Rad\u0101s k\u013c\u016bda, lejupiel\u0101de netika pabeigta
-SWT_Download_File=Lejupiel\u0101de: {0}
-SWT_Download_Location=Saglab\u0101 {0} no {1}
-SWT_Download_Started=Lejupiel\u0101d\u0113...
-SWT_Download_Status=Lejupiel\u0101de: {0,number,integer} KB no {1,number,integer} KB
-SWT_Authentication_Required=Nepiecie\u0161ama autentific\u0113\u0161ana
-SWT_Enter_Username_and_Password=Ievadiet lietot\u0101jv\u0101rdu un paroli {0} lauk\u0101 {1}
-SWT_Page_Load_Failed=Lapas iel\u0101de neizdev\u0101s, jo rad\u0101s k\u013c\u016bda: {0}
-SWT_InvalidCert_Title=Neder\u012bgs sertifik\u0101ts
-SWT_InvalidCert_Message=Dro\u0161\u012bbas sertifik\u0101tam, ko iesniedza "{0}", ir probl\u0113ma(s).
-SWT_InvalidCert_InvalidName=Sertifik\u0101ta nosaukums ir neder\u012bgs vai neatbilst vietnes nosaukumam. Sertifik\u0101ts izsniegts: "{0}".
-SWT_InvalidCert_NotValid=Sertifik\u0101ts pa\u0161laik nav der\u012bgs. Der\u012bgo datumu diapazons: "{0}".
-SWT_InvalidCert_NotTrusted=Sertifik\u0101tu nav izsniegusi uzticama iest\u0101de. Sertifik\u0101ta izsniedz\u0113js: "{0}".
-SWT_InvalidCert_Connect=Vai vienalga v\u0113laties turpin\u0101t?
-SWT_OnBeforeUnload_Message1=Vai tie\u0161\u0101m v\u0113laties atst\u0101t \u0161o lapu?
-SWT_OnBeforeUnload_Message2=Noklik\u0161\u0137iniet uz Labi, lai turpin\u0101tu, vai uz Atcelt, lai paliktu \u0161aj\u0101 lap\u0101.
-SWT_ViewCertificate=Skat\u012bt sertifik\u0101tu
-SWT_Certificate=Sertifik\u0101ts
-SWT_Controlled_By=kontrol\u0113:
-SWT_Controller_For=kontrolleris paredz\u0113ts:
-SWT_Described_By=aprakst\u012bjis:
-SWT_Description_For=apraksts paredz\u0113ts:
-SWT_Embedded_By=iegul\u0161anu veica:
-SWT_Embeds=iegul\u0161ana
-SWT_Flows_From=pl\u016bsmas no
-SWT_Flows_To=pl\u016bsmas uz
-SWT_Label_For=eti\u0137ete paredz\u0113ta:
-SWT_Labelled_By=eti\u0137eti piestiprin\u0101ja:
-SWT_Member_Of=dal\u012bbnieks
-SWT_Node_Child_Of=mezgla atvase
-SWT_Parent_Window_Of=galvenais logs
-SWT_Popup_For=uznirsto\u0161ais logs
-SWT_Subwindow_Of=apak\u0161logs
-SWT_Continue=Turpin\u0101t
-SWT_IssuedTo=Izsniegts:\t{0}
-SWT_IssuedFrom=Izsniedzis: \t{0}
-SWT_Issuer=Izsniedz\u0113js
-SWT_General=Visp\u0101r\u012bgi
-SWT_Details=Dati
-SWT_Field=Lauks
-SWT_Value=V\u0113rt\u012bba
-SWT_Version=Versija
-SWT_ValidFrom=Sp\u0113k\u0101 no
-SWT_ValidTo=Sp\u0113k\u0101 l\u012bdz
-SWT_ValidFromTo=Sp\u0113k\u0101 no: {0} l\u012bdz: {1}
-SWT_Subject=Temats
-SWT_SerialNumber=S\u0113rijas numurs
+# SPDX-License-Identifier: EPL-2.0
+#
+# Contributors:
+# IBM Corporation - initial API and implementation
+###############################################################################
+# NLS_ENCODING=UNICODE
+# NLS_MARKUP=IBMNJDK2
+# NLS_MESSAGEFORMAT_VAR
+
+SWT_Yes=J\u0101
+SWT_No=N\u0113
+SWT_OK=Labi
+SWT_Cancel=Atcelt
+SWT_Help=Pal\u012bdz\u012bba
+SWT_Abort=Priek\u0161laikus p\u0101rtraukt
+SWT_Retry=M\u0113\u0123in\u0101t v\u0113lreiz
+SWT_Ignore=Ignor\u0113t
+SWT_Sample=Paraugs
+SWT_A_Sample_Text=Parauga teksts
+SWT_Selection=Atlase
+SWT_Current_Selection=Pa\u0161reiz\u0113j\u0101 atlase
+SWT_Font=Fonts
+SWT_Color=Kr\u0101sa
+SWT_Extended_style=Papla\u0161in\u0101ts stils
+SWT_Size=Izm\u0113rs
+SWT_Style=Stils
+SWT_Save=Saglab\u0101t
+SWT_Character_set=Rakstz\u012bmju kopa
+SWT_ColorDialog_Title=Kr\u0101sas
+SWT_FontDialog_Title=Fonti
+SWT_FontSet=Fontu kopa
+SWT_NewFont=Jauns fonts
+SWT_Remove=No\u0146emt
+SWT_Up=Uz aug\u0161u
+SWT_Down=Uz leju
+SWT_Charset_Western=rietumu
+SWT_Charset_EastEuropean=austrumu
+SWT_Charset_SouthEuropean=dienvidu
+SWT_Charset_NorthEuropean=zieme\u013cu
+SWT_Charset_Cyrillic=kirilica
+SWT_Charset_Arabic=ar\u0101bu
+SWT_Charset_Greek=grie\u0137u
+SWT_Charset_Hebrew=ebreju
+SWT_Charset_Turkish=turku
+SWT_Charset_Nordic=nordic
+SWT_Charset_Thai=taju
+SWT_Charset_BalticRim=baltic rim
+SWT_Charset_Celtic=\u0137eltu
+SWT_Charset_Euro=euro
+SWT_Charset_Romanian=rum\u0101\u0146u
+SWT_Charset_SimplifiedChinese=vienk.\u0137\u012bnie\u0161u
+SWT_Charset_TraditionalChinese=trad. \u0137\u012bnie\u0161u
+SWT_Charset_Japanese=jap\u0101\u0146u
+SWT_Charset_Korean=korejie\u0161u
+SWT_Charset_Unicode=unikods
+SWT_Charset_ASCII=ASCII
+SWT_InputMethods=Ievades metodes
+SWT_Password=Parole:
+SWT_Username=Lietot\u0101jv\u0101rds:
+SWT_Switch=P\u0101rsl\u0113gt
+SWT_Press=Nospiest
+SWT_Open=Atv\u0113rt
+SWT_Close=Aizv\u0113rt
+SWT_Minimize=Minimiz\u0113t
+SWT_Maximize=Maksimiz\u0113t
+SWT_Restore=Atjaunot
+SWT_ShowList=R\u0101d\u012bt sarakstu
+SWT_Page_Mnemonic=Alt+{0}
+SWT_SwitchPage_Shortcut=Ctrl+PageDown
+SWT_FileDownload=Faila lejupiel\u0101de
+SWT_Download_Error=Rad\u0101s k\u013c\u016bda, lejupiel\u0101de netika pabeigta
+SWT_Download_File=Lejupiel\u0101de: {0}
+SWT_Download_Location=Saglab\u0101 {0} no {1}
+SWT_Download_Started=Lejupiel\u0101d\u0113...
+SWT_Download_Status=Lejupiel\u0101de: {0,number,integer} KB no {1,number,integer} KB
+SWT_Authentication_Required=Nepiecie\u0161ama autentific\u0113\u0161ana
+SWT_Enter_Username_and_Password=Ievadiet lietot\u0101jv\u0101rdu un paroli {0} lauk\u0101 {1}
+SWT_Page_Load_Failed=Lapas iel\u0101de neizdev\u0101s, jo rad\u0101s k\u013c\u016bda: {0}
+SWT_InvalidCert_Title=Neder\u012bgs sertifik\u0101ts
+SWT_InvalidCert_Message=Dro\u0161\u012bbas sertifik\u0101tam, ko iesniedza "{0}", ir probl\u0113ma(s).
+SWT_InvalidCert_InvalidName=Sertifik\u0101ta nosaukums ir neder\u012bgs vai neatbilst vietnes nosaukumam. Sertifik\u0101ts izsniegts: "{0}".
+SWT_InvalidCert_NotValid=Sertifik\u0101ts pa\u0161laik nav der\u012bgs. Der\u012bgo datumu diapazons: "{0}".
+SWT_InvalidCert_NotTrusted=Sertifik\u0101tu nav izsniegusi uzticama iest\u0101de. Sertifik\u0101ta izsniedz\u0113js: "{0}".
+SWT_InvalidCert_Connect=Vai vienalga v\u0113laties turpin\u0101t?
+SWT_OnBeforeUnload_Message1=Vai tie\u0161\u0101m v\u0113laties atst\u0101t \u0161o lapu?
+SWT_OnBeforeUnload_Message2=Noklik\u0161\u0137iniet uz Labi, lai turpin\u0101tu, vai uz Atcelt, lai paliktu \u0161aj\u0101 lap\u0101.
+SWT_ViewCertificate=Skat\u012bt sertifik\u0101tu
+SWT_Certificate=Sertifik\u0101ts
+SWT_Controlled_By=kontrol\u0113:
+SWT_Controller_For=kontrolleris paredz\u0113ts:
+SWT_Described_By=aprakst\u012bjis:
+SWT_Description_For=apraksts paredz\u0113ts:
+SWT_Embedded_By=iegul\u0161anu veica:
+SWT_Embeds=iegul\u0161ana
+SWT_Flows_From=pl\u016bsmas no
+SWT_Flows_To=pl\u016bsmas uz
+SWT_Label_For=eti\u0137ete paredz\u0113ta:
+SWT_Labelled_By=eti\u0137eti piestiprin\u0101ja:
+SWT_Member_Of=dal\u012bbnieks
+SWT_Node_Child_Of=mezgla atvase
+SWT_Parent_Window_Of=galvenais logs
+SWT_Popup_For=uznirsto\u0161ais logs
+SWT_Subwindow_Of=apak\u0161logs
+SWT_Continue=Turpin\u0101t
+SWT_IssuedTo=Izsniegts:\t{0}
+SWT_IssuedFrom=Izsniedzis: \t{0}
+SWT_Issuer=Izsniedz\u0113js
+SWT_General=Visp\u0101r\u012bgi
+SWT_Details=Dati
+SWT_Field=Lauks
+SWT_Value=V\u0113rt\u012bba
+SWT_Version=Versija
+SWT_ValidFrom=Sp\u0113k\u0101 no
+SWT_ValidTo=Sp\u0113k\u0101 l\u012bdz
+SWT_ValidFromTo=Sp\u0113k\u0101 no: {0} l\u012bdz: {1}
+SWT_Subject=Temats
+SWT_SerialNumber=S\u0113rijas numurs
diff --git a/examples/org.eclipse.swt.snippets/.settings/org.eclipse.jdt.core.prefs b/examples/org.eclipse.swt.snippets/.settings/org.eclipse.jdt.core.prefs
index 839fadaa2d..d6208c31d5 100644
--- a/examples/org.eclipse.swt.snippets/.settings/org.eclipse.jdt.core.prefs
+++ b/examples/org.eclipse.swt.snippets/.settings/org.eclipse.jdt.core.prefs
@@ -1,106 +1,106 @@
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.annotation.inheritNullAnnotations=disabled
-org.eclipse.jdt.core.compiler.annotation.missingNonNullByDefaultAnnotation=ignore
-org.eclipse.jdt.core.compiler.annotation.nonnull=org.eclipse.jdt.annotation.NonNull
-org.eclipse.jdt.core.compiler.annotation.nonnull.secondary=
-org.eclipse.jdt.core.compiler.annotation.nonnullbydefault=org.eclipse.jdt.annotation.NonNullByDefault
-org.eclipse.jdt.core.compiler.annotation.nonnullbydefault.secondary=
-org.eclipse.jdt.core.compiler.annotation.nullable=org.eclipse.jdt.annotation.Nullable
-org.eclipse.jdt.core.compiler.annotation.nullable.secondary=
-org.eclipse.jdt.core.compiler.annotation.nullanalysis=disabled
-org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
-org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
-org.eclipse.jdt.core.compiler.compliance=1.8
-org.eclipse.jdt.core.compiler.debug.lineNumber=generate
-org.eclipse.jdt.core.compiler.debug.localVariable=generate
-org.eclipse.jdt.core.compiler.debug.sourceFile=generate
-org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.autoboxing=ignore
-org.eclipse.jdt.core.compiler.problem.comparingIdentical=warning
-org.eclipse.jdt.core.compiler.problem.deadCode=warning
-org.eclipse.jdt.core.compiler.problem.deprecation=warning
-org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=disabled
-org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=disabled
-org.eclipse.jdt.core.compiler.problem.discouragedReference=warning
-org.eclipse.jdt.core.compiler.problem.emptyStatement=ignore
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.problem.explicitlyClosedAutoCloseable=warning
-org.eclipse.jdt.core.compiler.problem.fallthroughCase=ignore
-org.eclipse.jdt.core.compiler.problem.fatalOptionalError=disabled
-org.eclipse.jdt.core.compiler.problem.fieldHiding=ignore
-org.eclipse.jdt.core.compiler.problem.finalParameterBound=warning
-org.eclipse.jdt.core.compiler.problem.finallyBlockNotCompletingNormally=warning
-org.eclipse.jdt.core.compiler.problem.forbiddenReference=error
-org.eclipse.jdt.core.compiler.problem.hiddenCatchBlock=warning
-org.eclipse.jdt.core.compiler.problem.includeNullInfoFromAsserts=disabled
-org.eclipse.jdt.core.compiler.problem.incompatibleNonInheritedInterfaceMethod=warning
-org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=warning
-org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=ignore
-org.eclipse.jdt.core.compiler.problem.localVariableHiding=ignore
-org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=warning
-org.eclipse.jdt.core.compiler.problem.missingDefaultCase=ignore
-org.eclipse.jdt.core.compiler.problem.missingDeprecatedAnnotation=ignore
-org.eclipse.jdt.core.compiler.problem.missingEnumCaseDespiteDefault=disabled
-org.eclipse.jdt.core.compiler.problem.missingHashCodeMethod=ignore
-org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=warning
-org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotationForInterfaceMethodImplementation=enabled
-org.eclipse.jdt.core.compiler.problem.missingSerialVersion=warning
-org.eclipse.jdt.core.compiler.problem.missingSynchronizedOnInheritedMethod=ignore
-org.eclipse.jdt.core.compiler.problem.noEffectAssignment=warning
-org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=warning
-org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=ignore
-org.eclipse.jdt.core.compiler.problem.nonnullParameterAnnotationDropped=warning
-org.eclipse.jdt.core.compiler.problem.nonnullTypeVariableFromLegacyInvocation=warning
-org.eclipse.jdt.core.compiler.problem.nullAnnotationInferenceConflict=error
-org.eclipse.jdt.core.compiler.problem.nullReference=warning
-org.eclipse.jdt.core.compiler.problem.nullSpecViolation=error
-org.eclipse.jdt.core.compiler.problem.nullUncheckedConversion=warning
-org.eclipse.jdt.core.compiler.problem.overridingPackageDefaultMethod=warning
-org.eclipse.jdt.core.compiler.problem.parameterAssignment=ignore
-org.eclipse.jdt.core.compiler.problem.pessimisticNullAnalysisForFreeTypeVariables=warning
-org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=ignore
-org.eclipse.jdt.core.compiler.problem.potentialNullReference=ignore
-org.eclipse.jdt.core.compiler.problem.potentiallyUnclosedCloseable=ignore
-org.eclipse.jdt.core.compiler.problem.rawTypeReference=warning
-org.eclipse.jdt.core.compiler.problem.redundantNullAnnotation=warning
-org.eclipse.jdt.core.compiler.problem.redundantNullCheck=ignore
-org.eclipse.jdt.core.compiler.problem.redundantSpecificationOfTypeArguments=warning
-org.eclipse.jdt.core.compiler.problem.redundantSuperinterface=ignore
-org.eclipse.jdt.core.compiler.problem.reportMethodCanBePotentiallyStatic=ignore
-org.eclipse.jdt.core.compiler.problem.reportMethodCanBeStatic=ignore
-org.eclipse.jdt.core.compiler.problem.specialParameterHidingField=disabled
-org.eclipse.jdt.core.compiler.problem.staticAccessReceiver=warning
-org.eclipse.jdt.core.compiler.problem.suppressOptionalErrors=disabled
-org.eclipse.jdt.core.compiler.problem.suppressWarnings=enabled
-org.eclipse.jdt.core.compiler.problem.syntacticNullAnalysisForFields=disabled
-org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=ignore
-org.eclipse.jdt.core.compiler.problem.typeParameterHiding=warning
-org.eclipse.jdt.core.compiler.problem.unavoidableGenericTypeProblems=enabled
-org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation=warning
-org.eclipse.jdt.core.compiler.problem.unclosedCloseable=warning
-org.eclipse.jdt.core.compiler.problem.undocumentedEmptyBlock=ignore
-org.eclipse.jdt.core.compiler.problem.unhandledWarningToken=warning
-org.eclipse.jdt.core.compiler.problem.unnecessaryElse=ignore
-org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=ignore
-org.eclipse.jdt.core.compiler.problem.unqualifiedFieldAccess=ignore
-org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=ignore
-org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionExemptExceptionAndThrowable=enabled
-org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionIncludeDocCommentReference=enabled
-org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverriding=disabled
-org.eclipse.jdt.core.compiler.problem.unusedExceptionParameter=ignore
-org.eclipse.jdt.core.compiler.problem.unusedImport=error
-org.eclipse.jdt.core.compiler.problem.unusedLabel=warning
-org.eclipse.jdt.core.compiler.problem.unusedLocal=error
-org.eclipse.jdt.core.compiler.problem.unusedObjectAllocation=ignore
-org.eclipse.jdt.core.compiler.problem.unusedParameter=ignore
-org.eclipse.jdt.core.compiler.problem.unusedParameterIncludeDocCommentReference=enabled
-org.eclipse.jdt.core.compiler.problem.unusedParameterWhenImplementingAbstract=disabled
-org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disabled
-org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=error
-org.eclipse.jdt.core.compiler.problem.unusedTypeParameter=ignore
-org.eclipse.jdt.core.compiler.problem.unusedWarningToken=warning
-org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning
-org.eclipse.jdt.core.compiler.source=1.8
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.annotation.inheritNullAnnotations=disabled
+org.eclipse.jdt.core.compiler.annotation.missingNonNullByDefaultAnnotation=ignore
+org.eclipse.jdt.core.compiler.annotation.nonnull=org.eclipse.jdt.annotation.NonNull
+org.eclipse.jdt.core.compiler.annotation.nonnull.secondary=
+org.eclipse.jdt.core.compiler.annotation.nonnullbydefault=org.eclipse.jdt.annotation.NonNullByDefault
+org.eclipse.jdt.core.compiler.annotation.nonnullbydefault.secondary=
+org.eclipse.jdt.core.compiler.annotation.nullable=org.eclipse.jdt.annotation.Nullable
+org.eclipse.jdt.core.compiler.annotation.nullable.secondary=
+org.eclipse.jdt.core.compiler.annotation.nullanalysis=disabled
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
+org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
+org.eclipse.jdt.core.compiler.compliance=1.8
+org.eclipse.jdt.core.compiler.debug.lineNumber=generate
+org.eclipse.jdt.core.compiler.debug.localVariable=generate
+org.eclipse.jdt.core.compiler.debug.sourceFile=generate
+org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.autoboxing=ignore
+org.eclipse.jdt.core.compiler.problem.comparingIdentical=warning
+org.eclipse.jdt.core.compiler.problem.deadCode=warning
+org.eclipse.jdt.core.compiler.problem.deprecation=warning
+org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=disabled
+org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=disabled
+org.eclipse.jdt.core.compiler.problem.discouragedReference=warning
+org.eclipse.jdt.core.compiler.problem.emptyStatement=ignore
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.problem.explicitlyClosedAutoCloseable=warning
+org.eclipse.jdt.core.compiler.problem.fallthroughCase=ignore
+org.eclipse.jdt.core.compiler.problem.fatalOptionalError=disabled
+org.eclipse.jdt.core.compiler.problem.fieldHiding=ignore
+org.eclipse.jdt.core.compiler.problem.finalParameterBound=warning
+org.eclipse.jdt.core.compiler.problem.finallyBlockNotCompletingNormally=warning
+org.eclipse.jdt.core.compiler.problem.forbiddenReference=error
+org.eclipse.jdt.core.compiler.problem.hiddenCatchBlock=warning
+org.eclipse.jdt.core.compiler.problem.includeNullInfoFromAsserts=disabled
+org.eclipse.jdt.core.compiler.problem.incompatibleNonInheritedInterfaceMethod=warning
+org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=warning
+org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=ignore
+org.eclipse.jdt.core.compiler.problem.localVariableHiding=ignore
+org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=warning
+org.eclipse.jdt.core.compiler.problem.missingDefaultCase=ignore
+org.eclipse.jdt.core.compiler.problem.missingDeprecatedAnnotation=ignore
+org.eclipse.jdt.core.compiler.problem.missingEnumCaseDespiteDefault=disabled
+org.eclipse.jdt.core.compiler.problem.missingHashCodeMethod=ignore
+org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=warning
+org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotationForInterfaceMethodImplementation=enabled
+org.eclipse.jdt.core.compiler.problem.missingSerialVersion=warning
+org.eclipse.jdt.core.compiler.problem.missingSynchronizedOnInheritedMethod=ignore
+org.eclipse.jdt.core.compiler.problem.noEffectAssignment=warning
+org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=warning
+org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=ignore
+org.eclipse.jdt.core.compiler.problem.nonnullParameterAnnotationDropped=warning
+org.eclipse.jdt.core.compiler.problem.nonnullTypeVariableFromLegacyInvocation=warning
+org.eclipse.jdt.core.compiler.problem.nullAnnotationInferenceConflict=error
+org.eclipse.jdt.core.compiler.problem.nullReference=warning
+org.eclipse.jdt.core.compiler.problem.nullSpecViolation=error
+org.eclipse.jdt.core.compiler.problem.nullUncheckedConversion=warning
+org.eclipse.jdt.core.compiler.problem.overridingPackageDefaultMethod=warning
+org.eclipse.jdt.core.compiler.problem.parameterAssignment=ignore
+org.eclipse.jdt.core.compiler.problem.pessimisticNullAnalysisForFreeTypeVariables=warning
+org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=ignore
+org.eclipse.jdt.core.compiler.problem.potentialNullReference=ignore
+org.eclipse.jdt.core.compiler.problem.potentiallyUnclosedCloseable=ignore
+org.eclipse.jdt.core.compiler.problem.rawTypeReference=warning
+org.eclipse.jdt.core.compiler.problem.redundantNullAnnotation=warning
+org.eclipse.jdt.core.compiler.problem.redundantNullCheck=ignore
+org.eclipse.jdt.core.compiler.problem.redundantSpecificationOfTypeArguments=warning
+org.eclipse.jdt.core.compiler.problem.redundantSuperinterface=ignore
+org.eclipse.jdt.core.compiler.problem.reportMethodCanBePotentiallyStatic=ignore
+org.eclipse.jdt.core.compiler.problem.reportMethodCanBeStatic=ignore
+org.eclipse.jdt.core.compiler.problem.specialParameterHidingField=disabled
+org.eclipse.jdt.core.compiler.problem.staticAccessReceiver=warning
+org.eclipse.jdt.core.compiler.problem.suppressOptionalErrors=disabled
+org.eclipse.jdt.core.compiler.problem.suppressWarnings=enabled
+org.eclipse.jdt.core.compiler.problem.syntacticNullAnalysisForFields=disabled
+org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=ignore
+org.eclipse.jdt.core.compiler.problem.typeParameterHiding=warning
+org.eclipse.jdt.core.compiler.problem.unavoidableGenericTypeProblems=enabled
+org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation=warning
+org.eclipse.jdt.core.compiler.problem.unclosedCloseable=warning
+org.eclipse.jdt.core.compiler.problem.undocumentedEmptyBlock=ignore
+org.eclipse.jdt.core.compiler.problem.unhandledWarningToken=warning
+org.eclipse.jdt.core.compiler.problem.unnecessaryElse=ignore
+org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=ignore
+org.eclipse.jdt.core.compiler.problem.unqualifiedFieldAccess=ignore
+org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=ignore
+org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionExemptExceptionAndThrowable=enabled
+org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionIncludeDocCommentReference=enabled
+org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverriding=disabled
+org.eclipse.jdt.core.compiler.problem.unusedExceptionParameter=ignore
+org.eclipse.jdt.core.compiler.problem.unusedImport=error
+org.eclipse.jdt.core.compiler.problem.unusedLabel=warning
+org.eclipse.jdt.core.compiler.problem.unusedLocal=error
+org.eclipse.jdt.core.compiler.problem.unusedObjectAllocation=ignore
+org.eclipse.jdt.core.compiler.problem.unusedParameter=ignore
+org.eclipse.jdt.core.compiler.problem.unusedParameterIncludeDocCommentReference=enabled
+org.eclipse.jdt.core.compiler.problem.unusedParameterWhenImplementingAbstract=disabled
+org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disabled
+org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=error
+org.eclipse.jdt.core.compiler.problem.unusedTypeParameter=ignore
+org.eclipse.jdt.core.compiler.problem.unusedWarningToken=warning
+org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning
+org.eclipse.jdt.core.compiler.source=1.8
diff --git a/examples/org.eclipse.swt.snippets/.settings/org.eclipse.jdt.ui.prefs b/examples/org.eclipse.swt.snippets/.settings/org.eclipse.jdt.ui.prefs
index f328572e95..93cdf40a89 100644
--- a/examples/org.eclipse.swt.snippets/.settings/org.eclipse.jdt.ui.prefs
+++ b/examples/org.eclipse.swt.snippets/.settings/org.eclipse.jdt.ui.prefs
@@ -1,64 +1,64 @@
-eclipse.preferences.version=1
-editor_save_participant_org.eclipse.jdt.ui.postsavelistener.cleanup=true
-org.eclipse.jdt.ui.ignorelowercasenames=true
-org.eclipse.jdt.ui.importorder=java;javax;org;com;
-org.eclipse.jdt.ui.ondemandthreshold=1
-org.eclipse.jdt.ui.staticondemandthreshold=1
-sp_cleanup.add_default_serial_version_id=true
-sp_cleanup.add_generated_serial_version_id=false
-sp_cleanup.add_missing_annotations=true
-sp_cleanup.add_missing_deprecated_annotations=true
-sp_cleanup.add_missing_methods=false
-sp_cleanup.add_missing_nls_tags=false
-sp_cleanup.add_missing_override_annotations=true
-sp_cleanup.add_missing_override_annotations_interface_methods=true
-sp_cleanup.add_serial_version_id=false
-sp_cleanup.always_use_blocks=true
-sp_cleanup.always_use_parentheses_in_expressions=false
-sp_cleanup.always_use_this_for_non_static_field_access=false
-sp_cleanup.always_use_this_for_non_static_method_access=false
-sp_cleanup.convert_functional_interfaces=false
-sp_cleanup.convert_to_enhanced_for_loop=false
-sp_cleanup.correct_indentation=false
-sp_cleanup.format_source_code=false
-sp_cleanup.format_source_code_changes_only=false
-sp_cleanup.insert_inferred_type_arguments=false
-sp_cleanup.make_local_variable_final=true
-sp_cleanup.make_parameters_final=false
-sp_cleanup.make_private_fields_final=true
-sp_cleanup.make_type_abstract_if_missing_method=false
-sp_cleanup.make_variable_declarations_final=false
-sp_cleanup.never_use_blocks=false
-sp_cleanup.never_use_parentheses_in_expressions=true
-sp_cleanup.on_save_use_additional_actions=true
-sp_cleanup.organize_imports=true
-sp_cleanup.qualify_static_field_accesses_with_declaring_class=false
-sp_cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true
-sp_cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true
-sp_cleanup.qualify_static_member_accesses_with_declaring_class=false
-sp_cleanup.qualify_static_method_accesses_with_declaring_class=false
-sp_cleanup.remove_private_constructors=true
-sp_cleanup.remove_redundant_type_arguments=true
-sp_cleanup.remove_trailing_whitespaces=true
-sp_cleanup.remove_trailing_whitespaces_all=true
-sp_cleanup.remove_trailing_whitespaces_ignore_empty=false
-sp_cleanup.remove_unnecessary_casts=true
-sp_cleanup.remove_unnecessary_nls_tags=false
-sp_cleanup.remove_unused_imports=false
-sp_cleanup.remove_unused_local_variables=false
-sp_cleanup.remove_unused_private_fields=true
-sp_cleanup.remove_unused_private_members=false
-sp_cleanup.remove_unused_private_methods=true
-sp_cleanup.remove_unused_private_types=true
-sp_cleanup.sort_members=false
-sp_cleanup.sort_members_all=false
-sp_cleanup.use_anonymous_class_creation=false
-sp_cleanup.use_blocks=false
-sp_cleanup.use_blocks_only_for_return_and_throw=false
-sp_cleanup.use_lambda=true
-sp_cleanup.use_parentheses_in_expressions=false
-sp_cleanup.use_this_for_non_static_field_access=false
-sp_cleanup.use_this_for_non_static_field_access_only_if_necessary=true
-sp_cleanup.use_this_for_non_static_method_access=false
-sp_cleanup.use_this_for_non_static_method_access_only_if_necessary=true
-sp_cleanup.use_type_arguments=false
+eclipse.preferences.version=1
+editor_save_participant_org.eclipse.jdt.ui.postsavelistener.cleanup=true
+org.eclipse.jdt.ui.ignorelowercasenames=true
+org.eclipse.jdt.ui.importorder=java;javax;org;com;
+org.eclipse.jdt.ui.ondemandthreshold=1
+org.eclipse.jdt.ui.staticondemandthreshold=1
+sp_cleanup.add_default_serial_version_id=true
+sp_cleanup.add_generated_serial_version_id=false
+sp_cleanup.add_missing_annotations=true
+sp_cleanup.add_missing_deprecated_annotations=true
+sp_cleanup.add_missing_methods=false
+sp_cleanup.add_missing_nls_tags=false
+sp_cleanup.add_missing_override_annotations=true
+sp_cleanup.add_missing_override_annotations_interface_methods=true
+sp_cleanup.add_serial_version_id=false
+sp_cleanup.always_use_blocks=true
+sp_cleanup.always_use_parentheses_in_expressions=false
+sp_cleanup.always_use_this_for_non_static_field_access=false
+sp_cleanup.always_use_this_for_non_static_method_access=false
+sp_cleanup.convert_functional_interfaces=false
+sp_cleanup.convert_to_enhanced_for_loop=false
+sp_cleanup.correct_indentation=false
+sp_cleanup.format_source_code=false
+sp_cleanup.format_source_code_changes_only=false
+sp_cleanup.insert_inferred_type_arguments=false
+sp_cleanup.make_local_variable_final=true
+sp_cleanup.make_parameters_final=false
+sp_cleanup.make_private_fields_final=true
+sp_cleanup.make_type_abstract_if_missing_method=false
+sp_cleanup.make_variable_declarations_final=false
+sp_cleanup.never_use_blocks=false
+sp_cleanup.never_use_parentheses_in_expressions=true
+sp_cleanup.on_save_use_additional_actions=true
+sp_cleanup.organize_imports=true
+sp_cleanup.qualify_static_field_accesses_with_declaring_class=false
+sp_cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true
+sp_cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true
+sp_cleanup.qualify_static_member_accesses_with_declaring_class=false
+sp_cleanup.qualify_static_method_accesses_with_declaring_class=false
+sp_cleanup.remove_private_constructors=true
+sp_cleanup.remove_redundant_type_arguments=true
+sp_cleanup.remove_trailing_whitespaces=true
+sp_cleanup.remove_trailing_whitespaces_all=true
+sp_cleanup.remove_trailing_whitespaces_ignore_empty=false
+sp_cleanup.remove_unnecessary_casts=true
+sp_cleanup.remove_unnecessary_nls_tags=false
+sp_cleanup.remove_unused_imports=false
+sp_cleanup.remove_unused_local_variables=false
+sp_cleanup.remove_unused_private_fields=true
+sp_cleanup.remove_unused_private_members=false
+sp_cleanup.remove_unused_private_methods=true
+sp_cleanup.remove_unused_private_types=true
+sp_cleanup.sort_members=false
+sp_cleanup.sort_members_all=false
+sp_cleanup.use_anonymous_class_creation=false
+sp_cleanup.use_blocks=false
+sp_cleanup.use_blocks_only_for_return_and_throw=false
+sp_cleanup.use_lambda=true
+sp_cleanup.use_parentheses_in_expressions=false
+sp_cleanup.use_this_for_non_static_field_access=false
+sp_cleanup.use_this_for_non_static_field_access_only_if_necessary=true
+sp_cleanup.use_this_for_non_static_method_access=false
+sp_cleanup.use_this_for_non_static_method_access_only_if_necessary=true
+sp_cleanup.use_type_arguments=false
diff --git a/tests/org.eclipse.swt.tests.cocoa/.settings/org.eclipse.m2e.core.prefs b/tests/org.eclipse.swt.tests.cocoa/.settings/org.eclipse.m2e.core.prefs
index 14b697b7bb..f897a7f1cb 100644
--- a/tests/org.eclipse.swt.tests.cocoa/.settings/org.eclipse.m2e.core.prefs
+++ b/tests/org.eclipse.swt.tests.cocoa/.settings/org.eclipse.m2e.core.prefs
@@ -1,4 +1,4 @@
-activeProfiles=
-eclipse.preferences.version=1
-resolveWorkspaceProjects=true
-version=1
+activeProfiles=
+eclipse.preferences.version=1
+resolveWorkspaceProjects=true
+version=1
diff --git a/tests/org.eclipse.swt.tests.gtk/.settings/org.eclipse.m2e.core.prefs b/tests/org.eclipse.swt.tests.gtk/.settings/org.eclipse.m2e.core.prefs
index 14b697b7bb..f897a7f1cb 100644
--- a/tests/org.eclipse.swt.tests.gtk/.settings/org.eclipse.m2e.core.prefs
+++ b/tests/org.eclipse.swt.tests.gtk/.settings/org.eclipse.m2e.core.prefs
@@ -1,4 +1,4 @@
-activeProfiles=
-eclipse.preferences.version=1
-resolveWorkspaceProjects=true
-version=1
+activeProfiles=
+eclipse.preferences.version=1
+resolveWorkspaceProjects=true
+version=1
diff --git a/tests/org.eclipse.swt.tests.gtk/ManualTests/org/eclipse/swt/tests/gtk/snippets/Bug547093_LogoffStuck.java b/tests/org.eclipse.swt.tests.gtk/ManualTests/org/eclipse/swt/tests/gtk/snippets/Bug547093_LogoffStuck.java
index 9effebffa8..c16a3dd49a 100644
--- a/tests/org.eclipse.swt.tests.gtk/ManualTests/org/eclipse/swt/tests/gtk/snippets/Bug547093_LogoffStuck.java
+++ b/tests/org.eclipse.swt.tests.gtk/ManualTests/org/eclipse/swt/tests/gtk/snippets/Bug547093_LogoffStuck.java
@@ -1,56 +1,56 @@
-/*******************************************************************************
- * Copyright (c) 2019 Syntevo and others. All rights reserved.
- * The contents of this file are made available under the terms
- * of the GNU Lesser General Public License (LGPL) Version 2.1 that
- * accompanies this distribution (lgpl-v21.txt). The LGPL is also
- * available at http://www.gnu.org/licenses/lgpl.html. If the version
- * of the LGPL at http://www.gnu.org is different to the version of
- * the LGPL accompanying this distribution and there is any conflict
- * between the two license versions, the terms of the LGPL accompanying
- * this distribution shall govern.
- *
- * Contributors:
- * Syntevo - initial API and implementation
- *******************************************************************************/
-package org.eclipse.swt.tests.gtk.snippets;
-
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.layout.FillLayout;
-import org.eclipse.swt.widgets.Display;
-import org.eclipse.swt.widgets.Label;
-import org.eclipse.swt.widgets.Shell;
-
-public class Bug547093_LogoffStuck {
- public static void main (String [] args) {
- Display display = new Display ();
-
- Shell shell = new Shell (display);
- shell.setLayout(new FillLayout());
- shell.setSize(300, 200);
-
- display.addListener(SWT.Dispose, event -> {
- /*
- * System.exit() prevents org.eclipse.swt.internal.SessionManagerDBus
- * from sending reply to session manager and it gets stuck waiting for
- * that reply.
- */
- System.exit(0);
- });
-
- final Label label = new Label(shell, SWT.WRAP | SWT.CENTER);
- label.setText("\n\n\nWhen you logoff, GNOME session manager will get stuck for 90 seconds");
-
- // Test for deadlock with shutdown hook on regular closing
- shell.addListener(SWT.Close, event -> {
- System.exit(0);
- });
-
- shell.open ();
-
- while (!shell.isDisposed()) {
- if (!display.readAndDispatch ()) display.sleep ();
- }
-
- display.dispose ();
- }
-}
+/*******************************************************************************
+ * Copyright (c) 2019 Syntevo and others. All rights reserved.
+ * The contents of this file are made available under the terms
+ * of the GNU Lesser General Public License (LGPL) Version 2.1 that
+ * accompanies this distribution (lgpl-v21.txt). The LGPL is also
+ * available at http://www.gnu.org/licenses/lgpl.html. If the version
+ * of the LGPL at http://www.gnu.org is different to the version of
+ * the LGPL accompanying this distribution and there is any conflict
+ * between the two license versions, the terms of the LGPL accompanying
+ * this distribution shall govern.
+ *
+ * Contributors:
+ * Syntevo - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.swt.tests.gtk.snippets;
+
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.layout.FillLayout;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.swt.widgets.Label;
+import org.eclipse.swt.widgets.Shell;
+
+public class Bug547093_LogoffStuck {
+ public static void main (String [] args) {
+ Display display = new Display ();
+
+ Shell shell = new Shell (display);
+ shell.setLayout(new FillLayout());
+ shell.setSize(300, 200);
+
+ display.addListener(SWT.Dispose, event -> {
+ /*
+ * System.exit() prevents org.eclipse.swt.internal.SessionManagerDBus
+ * from sending reply to session manager and it gets stuck waiting for
+ * that reply.
+ */
+ System.exit(0);
+ });
+
+ final Label label = new Label(shell, SWT.WRAP | SWT.CENTER);
+ label.setText("\n\n\nWhen you logoff, GNOME session manager will get stuck for 90 seconds");
+
+ // Test for deadlock with shutdown hook on regular closing
+ shell.addListener(SWT.Close, event -> {
+ System.exit(0);
+ });
+
+ shell.open ();
+
+ while (!shell.isDisposed()) {
+ if (!display.readAndDispatch ()) display.sleep ();
+ }
+
+ display.dispose ();
+ }
+}
diff --git a/tests/org.eclipse.swt.tests.win32/ManualTests/org/eclipse/swt/tests/win32/snippets/Bug543747_JvmCrash_Msctf.java b/tests/org.eclipse.swt.tests.win32/ManualTests/org/eclipse/swt/tests/win32/snippets/Bug543747_JvmCrash_Msctf.java
index 7bed16d8ea..9e5f96f168 100644
--- a/tests/org.eclipse.swt.tests.win32/ManualTests/org/eclipse/swt/tests/win32/snippets/Bug543747_JvmCrash_Msctf.java
+++ b/tests/org.eclipse.swt.tests.win32/ManualTests/org/eclipse/swt/tests/win32/snippets/Bug543747_JvmCrash_Msctf.java
@@ -1,143 +1,143 @@
-/*******************************************************************************
- * Copyright (c) 2019 Syntevo and others. All rights reserved.
- * The contents of this file are made available under the terms
- * of the GNU Lesser General Public License (LGPL) Version 2.1 that
- * accompanies this distribution (lgpl-v21.txt). The LGPL is also
- * available at http://www.gnu.org/licenses/lgpl.html. If the version
- * of the LGPL at http://www.gnu.org is different to the version of
- * the LGPL accompanying this distribution and there is any conflict
- * between the two license versions, the terms of the LGPL accompanying
- * this distribution shall govern.
- *
- * Contributors:
- * Syntevo - initial API and implementation
- *******************************************************************************/
-package org.eclipse.swt.tests.win32.snippets;
-
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.layout.*;
-import org.eclipse.swt.widgets.*;
-
-public class Bug543747_JvmCrash_Msctf {
- public static void reproduce526758(Shell parentShell) {
- Shell tempShell = new Shell(parentShell);
-
- // Create something to catch initial focus, so that
- // text.setFocus() does something. This is only to
- // show that .setFocus() is important.
- new Button(tempShell, SWT.PUSH);
-
- // This Text will cause crash.
- Text text = new Text(tempShell, 0);
-
- // Shell must be visible to prevent early return in .setFocus()
- tempShell.setSize(10, 10);
- tempShell.open();
-
- // ImmAssociateContext() itself is lazy.
- // .setFocus() causes it to start up.
- text.setFocus();
-
- // Destroying the shell triggers the bug.
- tempShell.dispose();
-
- // JVM still alive?
- MessageBox msgbox = new MessageBox(parentShell);
- msgbox.setMessage("Crash didn't reproduce");
- msgbox.open();
- }
-
- public static void reproduce543747(Shell parentShell) {
- Shell tempShell = new Shell(parentShell);
-
- // Create something to catch initial focus, so that
- // text.setFocus() does something. This is only to
- // show that .setFocus() is important.
- new Button(tempShell, SWT.PUSH);
-
- // This Text will cause crash.
- // Text needs to have an intermediate parent for this bug.
- Composite composite = new Composite(tempShell, 0);
- Text text = new Text(composite, 0);
-
- // Shell must be visible to prevent early return in .setFocus()
- tempShell.setSize(10, 10);
- tempShell.open();
-
- // ImmAssociateContext() itself is lazy.
- // .setFocus() causes it to start up.
- text.setFocus();
-
- // Destroying the shell triggers the bug.
- tempShell.dispose();
-
- // Give additional instructions
- MessageBox msgbox = new MessageBox(parentShell);
- msgbox.setMessage(
- "Now please do one of:\n" +
- "a) Open Task Manager, go to Users, right-click your user, select Disconnect, log in again\n" +
- "b) Connect Remote Desktop to this machine\n" +
- "\n" +
- "The snippet is expected to crash just after that."
- );
- msgbox.open();
- }
-
- public static void main (String [] args) {
- Display display = new Display ();
-
- Shell shell = new Shell (display);
- RowLayout layout = new RowLayout(SWT.VERTICAL);
- layout.marginHeight = 10;
- layout.marginWidth = 10;
- layout.spacing = 10;
- shell.setLayout(layout);
-
- final Text labelInfo = new Text(shell, SWT.READ_ONLY | SWT.MULTI);
- labelInfo.setText(
- "Both of these crashes are only seen on Win10 1809+\n" +
- "\n" +
- "To reproduce reliably, use Application Verifier:\n" +
- "1) Install Application Verifier:\n" +
- "a) Download Windows SDK:\n" +
- " https://go.microsoft.com/fwlink/p/?LinkID=2033908\n" +
- "b) Install it, selecting Application Verifier. Other components are not required.\n" +
- "\n" +
- "2) Configure Application Verifier\n" +
- "a) Run 'Application Verifier (X64)' from Start menu.\n" +
- "b) Use File | Add application... to add java.exe\n" +
- "c) IMPORTANT: On the right pane, make sure that only 'Basics/Heaps' is selected.\n" +
- " JVM always crashes with 'Basics/Exceptions' and 'Basics/Memory'\n" +
- "d) Click 'Save'. You can close Application Verifier now\n" +
- " It will be active until you explicitly disable it.\n" +
- "e) Restart application once.\n" +
- "f) Note: applications run slower and consume more RAM under Application Verifier.\n" +
- "\n" +
- "3) Reproduce the problem\n" +
- "\n" +
- "4) Disable Application Verifier if you want\n" +
- "a) Keep it enabled it if you're ready to tolerate the slowness, but find more bugs\n" +
- "b) Go to Application Verifier again\n" +
- "c) Delete java.exe from the list.\n" +
- "d) Click Save.\n" +
- "e) There's no need to uninstall Application Verifier, but you can do that if you like."
- );
-
- final Button button526758 = new Button(shell, SWT.PUSH);
- button526758.setText("Reproduce crash 526758");
- button526758.addListener(SWT.Selection, event -> {reproduce526758(shell);});
-
- final Button button543747 = new Button(shell, SWT.PUSH);
- button543747.setText("Reproduce crash 543747");
- button543747.addListener(SWT.Selection, event -> {reproduce543747(shell);});
-
- shell.pack();
- shell.open();
-
- while (!shell.isDisposed()) {
- if (!display.readAndDispatch ()) display.sleep ();
- }
-
- display.dispose ();
- }
-}
+/*******************************************************************************
+ * Copyright (c) 2019 Syntevo and others. All rights reserved.
+ * The contents of this file are made available under the terms
+ * of the GNU Lesser General Public License (LGPL) Version 2.1 that
+ * accompanies this distribution (lgpl-v21.txt). The LGPL is also
+ * available at http://www.gnu.org/licenses/lgpl.html. If the version
+ * of the LGPL at http://www.gnu.org is different to the version of
+ * the LGPL accompanying this distribution and there is any conflict
+ * between the two license versions, the terms of the LGPL accompanying
+ * this distribution shall govern.
+ *
+ * Contributors:
+ * Syntevo - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.swt.tests.win32.snippets;
+
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.layout.*;
+import org.eclipse.swt.widgets.*;
+
+public class Bug543747_JvmCrash_Msctf {
+ public static void reproduce526758(Shell parentShell) {
+ Shell tempShell = new Shell(parentShell);
+
+ // Create something to catch initial focus, so that
+ // text.setFocus() does something. This is only to
+ // show that .setFocus() is important.
+ new Button(tempShell, SWT.PUSH);
+
+ // This Text will cause crash.
+ Text text = new Text(tempShell, 0);
+
+ // Shell must be visible to prevent early return in .setFocus()
+ tempShell.setSize(10, 10);
+ tempShell.open();
+
+ // ImmAssociateContext() itself is lazy.
+ // .setFocus() causes it to start up.
+ text.setFocus();
+
+ // Destroying the shell triggers the bug.
+ tempShell.dispose();
+
+ // JVM still alive?
+ MessageBox msgbox = new MessageBox(parentShell);
+ msgbox.setMessage("Crash didn't reproduce");
+ msgbox.open();
+ }
+
+ public static void reproduce543747(Shell parentShell) {
+ Shell tempShell = new Shell(parentShell);
+
+ // Create something to catch initial focus, so that
+ // text.setFocus() does something. This is only to
+ // show that .setFocus() is important.
+ new Button(tempShell, SWT.PUSH);
+
+ // This Text will cause crash.
+ // Text needs to have an intermediate parent for this bug.
+ Composite composite = new Composite(tempShell, 0);
+ Text text = new Text(composite, 0);
+
+ // Shell must be visible to prevent early return in .setFocus()
+ tempShell.setSize(10, 10);
+ tempShell.open();
+
+ // ImmAssociateContext() itself is lazy.
+ // .setFocus() causes it to start up.
+ text.setFocus();
+
+ // Destroying the shell triggers the bug.
+ tempShell.dispose();
+
+ // Give additional instructions
+ MessageBox msgbox = new MessageBox(parentShell);
+ msgbox.setMessage(
+ "Now please do one of:\n" +
+ "a) Open Task Manager, go to Users, right-click your user, select Disconnect, log in again\n" +
+ "b) Connect Remote Desktop to this machine\n" +
+ "\n" +
+ "The snippet is expected to crash just after that."
+ );
+ msgbox.open();
+ }
+
+ public static void main (String [] args) {
+ Display display = new Display ();
+
+ Shell shell = new Shell (display);
+ RowLayout layout = new RowLayout(SWT.VERTICAL);
+ layout.marginHeight = 10;
+ layout.marginWidth = 10;
+ layout.spacing = 10;
+ shell.setLayout(layout);
+
+ final Text labelInfo = new Text(shell, SWT.READ_ONLY | SWT.MULTI);
+ labelInfo.setText(
+ "Both of these crashes are only seen on Win10 1809+\n" +
+ "\n" +
+ "To reproduce reliably, use Application Verifier:\n" +
+ "1) Install Application Verifier:\n" +
+ "a) Download Windows SDK:\n" +
+ " https://go.microsoft.com/fwlink/p/?LinkID=2033908\n" +
+ "b) Install it, selecting Application Verifier. Other components are not required.\n" +
+ "\n" +
+ "2) Configure Application Verifier\n" +
+ "a) Run 'Application Verifier (X64)' from Start menu.\n" +
+ "b) Use File | Add application... to add java.exe\n" +
+ "c) IMPORTANT: On the right pane, make sure that only 'Basics/Heaps' is selected.\n" +
+ " JVM always crashes with 'Basics/Exceptions' and 'Basics/Memory'\n" +
+ "d) Click 'Save'. You can close Application Verifier now\n" +
+ " It will be active until you explicitly disable it.\n" +
+ "e) Restart application once.\n" +
+ "f) Note: applications run slower and consume more RAM under Application Verifier.\n" +
+ "\n" +
+ "3) Reproduce the problem\n" +
+ "\n" +
+ "4) Disable Application Verifier if you want\n" +
+ "a) Keep it enabled it if you're ready to tolerate the slowness, but find more bugs\n" +
+ "b) Go to Application Verifier again\n" +
+ "c) Delete java.exe from the list.\n" +
+ "d) Click Save.\n" +
+ "e) There's no need to uninstall Application Verifier, but you can do that if you like."
+ );
+
+ final Button button526758 = new Button(shell, SWT.PUSH);
+ button526758.setText("Reproduce crash 526758");
+ button526758.addListener(SWT.Selection, event -> {reproduce526758(shell);});
+
+ final Button button543747 = new Button(shell, SWT.PUSH);
+ button543747.setText("Reproduce crash 543747");
+ button543747.addListener(SWT.Selection, event -> {reproduce543747(shell);});
+
+ shell.pack();
+ shell.open();
+
+ while (!shell.isDisposed()) {
+ if (!display.readAndDispatch ()) display.sleep ();
+ }
+
+ display.dispose ();
+ }
+}
diff --git a/tests/org.eclipse.swt.tests/ManualTests/org/eclipse/swt/tests/manual/Bug548982_TreeAddRemoveMany.java b/tests/org.eclipse.swt.tests/ManualTests/org/eclipse/swt/tests/manual/Bug548982_TreeAddRemoveMany.java
index 16ee502bab..d72f592130 100644
--- a/tests/org.eclipse.swt.tests/ManualTests/org/eclipse/swt/tests/manual/Bug548982_TreeAddRemoveMany.java
+++ b/tests/org.eclipse.swt.tests/ManualTests/org/eclipse/swt/tests/manual/Bug548982_TreeAddRemoveMany.java
@@ -1,159 +1,159 @@
-/*******************************************************************************
- * Copyright (c) 2019 Syntevo and others.
- *
- * This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License 2.0
- * which accompanies this distribution, and is available at
- * https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors:
- * Syntevo - initial API and implementation
- *******************************************************************************/
-package org.eclipse.swt.tests.manual;
-
-import org.eclipse.swt.*;
-import org.eclipse.swt.layout.*;
-import org.eclipse.swt.widgets.*;
-
-public final class Bug548982_TreeAddRemoveMany {
- // Options
- // Java only
- private static boolean CREATE_CTOR_2PARAM = false;
- // Native & Java
- private static boolean LOCK_REDRAW = false;
- private static boolean CREATE_AFTER_EXPAND = false;
- private static boolean CREATE_REVERSE_ORDER = false;
- private static boolean DELETE_PARENT_ITEM = false;
- private static boolean DELETE_AFTER_COLLAPSE = false;
- private static int NUM_ITEMS = 20000;
-
- private static Tree tree;
- private static TreeItem rootItem;
- private static int iteration = 0;
-
- private static void CreateRootItem() {
- rootItem = new TreeItem(tree, SWT.NONE, 0);
- rootItem.setText("Root");
-
- CreateExpanderSubItem();
- }
-
- private static void CreateExpanderSubItem() {
- new TreeItem(rootItem, SWT.NONE);
- }
-
- private static void CreateTreeItems() {
- iteration++;
-
- final long start = System.currentTimeMillis();
-
- if (LOCK_REDRAW) {
- tree.setRedraw(false);
- }
-
- // Delete artificial item from 'CreateExpanderSubItem'
- rootItem.removeAll();
-
- if (CREATE_REVERSE_ORDER) {
- for (int i = NUM_ITEMS - 1; i >= 0; i--) {
- TreeItem child = new TreeItem(rootItem, SWT.NONE, 0);
- child.setText("Item:" + iteration + ":" + i);
- }
- } else {
- for (int i = 0; i < NUM_ITEMS; i++) {
- TreeItem child;
-
- if (CREATE_CTOR_2PARAM)
- child = new TreeItem(rootItem, SWT.NONE);
- else
- child = new TreeItem(rootItem, SWT.NONE, i);
-
- child.setText("Item:" + iteration + ":" + i);
- }
- }
-
- if (LOCK_REDRAW) {
- tree.setRedraw(true);
- }
-
- final long end = System.currentTimeMillis();
- System.out.println("CreateTreeItems: " + (end - start) + " ms");
- }
-
- private static void DeleteTreeItems() {
- final long start = System.currentTimeMillis();
-
- if (LOCK_REDRAW) {
- tree.setRedraw(false);
- }
-
- if (DELETE_PARENT_ITEM) {
- rootItem.dispose();
- CreateRootItem();
- } else {
- rootItem.removeAll();
- CreateExpanderSubItem();
- }
-
- if (LOCK_REDRAW) {
- tree.setRedraw(true);
- }
-
- final long end = System.currentTimeMillis();
- System.out.println("DeleteTreeItems: " + (end - start) + " ms");
- }
-
- public static void main(String[] args) {
- final Display display = new Display();
- final Shell shell = new Shell(display);
- shell.setLayout(new GridLayout());
- shell.setSize(800, 600);
-
- Label lblHint = new Label(shell, 0);
- lblHint.setText("Expand/collapse tree item. Timings will be printed to console. Various options are available in code near // Options.");
-
- tree = new Tree(shell, SWT.BORDER | SWT.VIRTUAL);
- tree.setLayoutData(new GridData(GridData.FILL_HORIZONTAL | GridData.FILL_VERTICAL));
- final TreeColumn col = new TreeColumn(tree, SWT.NONE);
- col.setText("Column 1");
- col.setWidth(400);
-
- tree.addListener(SWT.Collapse, event -> {
- if (!DELETE_AFTER_COLLAPSE) {
- DeleteTreeItems();
- } else {
- display.asyncExec(new Runnable() {
- @Override
- public void run() {
- DeleteTreeItems();
- }
- });
- }
- });
-
- tree.addListener(SWT.Expand, event -> {
- if (!CREATE_AFTER_EXPAND) {
- CreateTreeItems();
- } else {
- display.asyncExec(new Runnable() {
- @Override
- public void run() {
- CreateTreeItems();
- }
- });
- }
- });
-
- CreateRootItem();
-
- shell.open();
- while (!shell.isDisposed()) {
- if (!display.readAndDispatch()) {
- display.sleep();
- }
- }
- display.dispose();
- }
+/*******************************************************************************
+ * Copyright (c) 2019 Syntevo and others.
+ *
+ * This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License 2.0
+ * which accompanies this distribution, and is available at
+ * https://www.eclipse.org/legal/epl-2.0/
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ *
+ * Contributors:
+ * Syntevo - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.swt.tests.manual;
+
+import org.eclipse.swt.*;
+import org.eclipse.swt.layout.*;
+import org.eclipse.swt.widgets.*;
+
+public final class Bug548982_TreeAddRemoveMany {
+ // Options
+ // Java only
+ private static boolean CREATE_CTOR_2PARAM = false;
+ // Native & Java
+ private static boolean LOCK_REDRAW = false;
+ private static boolean CREATE_AFTER_EXPAND = false;
+ private static boolean CREATE_REVERSE_ORDER = false;
+ private static boolean DELETE_PARENT_ITEM = false;
+ private static boolean DELETE_AFTER_COLLAPSE = false;
+ private static int NUM_ITEMS = 20000;
+
+ private static Tree tree;
+ private static TreeItem rootItem;
+ private static int iteration = 0;
+
+ private static void CreateRootItem() {
+ rootItem = new TreeItem(tree, SWT.NONE, 0);
+ rootItem.setText("Root");
+
+ CreateExpanderSubItem();
+ }
+
+ private static void CreateExpanderSubItem() {
+ new TreeItem(rootItem, SWT.NONE);
+ }
+
+ private static void CreateTreeItems() {
+ iteration++;
+
+ final long start = System.currentTimeMillis();
+
+ if (LOCK_REDRAW) {
+ tree.setRedraw(false);
+ }
+
+ // Delete artificial item from 'CreateExpanderSubItem'
+ rootItem.removeAll();
+
+ if (CREATE_REVERSE_ORDER) {
+ for (int i = NUM_ITEMS - 1; i >= 0; i--) {
+ TreeItem child = new TreeItem(rootItem, SWT.NONE, 0);
+ child.setText("Item:" + iteration + ":" + i);
+ }
+ } else {
+ for (int i = 0; i < NUM_ITEMS; i++) {
+ TreeItem child;
+
+ if (CREATE_CTOR_2PARAM)
+ child = new TreeItem(rootItem, SWT.NONE);
+ else
+ child = new TreeItem(rootItem, SWT.NONE, i);
+
+ child.setText("Item:" + iteration + ":" + i);
+ }
+ }
+
+ if (LOCK_REDRAW) {
+ tree.setRedraw(true);
+ }
+
+ final long end = System.currentTimeMillis();
+ System.out.println("CreateTreeItems: " + (end - start) + " ms");
+ }
+
+ private static void DeleteTreeItems() {
+ final long start = System.currentTimeMillis();
+
+ if (LOCK_REDRAW) {
+ tree.setRedraw(false);
+ }
+
+ if (DELETE_PARENT_ITEM) {
+ rootItem.dispose();
+ CreateRootItem();
+ } else {
+ rootItem.removeAll();
+ CreateExpanderSubItem();
+ }
+
+ if (LOCK_REDRAW) {
+ tree.setRedraw(true);
+ }
+
+ final long end = System.currentTimeMillis();
+ System.out.println("DeleteTreeItems: " + (end - start) + " ms");
+ }
+
+ public static void main(String[] args) {
+ final Display display = new Display();
+ final Shell shell = new Shell(display);
+ shell.setLayout(new GridLayout());
+ shell.setSize(800, 600);
+
+ Label lblHint = new Label(shell, 0);
+ lblHint.setText("Expand/collapse tree item. Timings will be printed to console. Various options are available in code near // Options.");
+
+ tree = new Tree(shell, SWT.BORDER | SWT.VIRTUAL);
+ tree.setLayoutData(new GridData(GridData.FILL_HORIZONTAL | GridData.FILL_VERTICAL));
+ final TreeColumn col = new TreeColumn(tree, SWT.NONE);
+ col.setText("Column 1");
+ col.setWidth(400);
+
+ tree.addListener(SWT.Collapse, event -> {
+ if (!DELETE_AFTER_COLLAPSE) {
+ DeleteTreeItems();
+ } else {
+ display.asyncExec(new Runnable() {
+ @Override
+ public void run() {
+ DeleteTreeItems();
+ }
+ });
+ }
+ });
+
+ tree.addListener(SWT.Expand, event -> {
+ if (!CREATE_AFTER_EXPAND) {
+ CreateTreeItems();
+ } else {
+ display.asyncExec(new Runnable() {
+ @Override
+ public void run() {
+ CreateTreeItems();
+ }
+ });
+ }
+ });
+
+ CreateRootItem();
+
+ shell.open();
+ while (!shell.isDisposed()) {
+ if (!display.readAndDispatch()) {
+ display.sleep();
+ }
+ }
+ display.dispose();
+ }
} \ No newline at end of file

Back to the top