diff options
| author | Vikas Chandra | 2021-08-31 11:43:23 +0000 |
|---|---|---|
| committer | Vikas Chandra | 2021-08-31 11:45:28 +0000 |
| commit | 089ced6d0b2efd782dc364014338956926b89279 (patch) | |
| tree | 9329e0cb285e3a46ae503e65fa3de3d84ce62fed | |
| parent | 351ecf63163477c91c81208252425c8a447395ec (diff) | |
| download | eclipse.platform.common-089ced6d0b2efd782dc364014338956926b89279.tar.gz eclipse.platform.common-089ced6d0b2efd782dc364014338956926b89279.tar.xz eclipse.platform.common-089ced6d0b2efd782dc364014338956926b89279.zip | |
Bug 575595 - N&N for 4.21Y20210831-0840I20210831-1800
Change-Id: Ibfeb46bfebf8fc06de739d06ecc5b481609b15bf
Signed-off-by: Vikas Chandra <Vikas.Chandra@in.ibm.com>
Reviewed-on: https://git.eclipse.org/r/c/platform/eclipse.platform.common/+/184804
79 files changed, 272 insertions, 600 deletions
diff --git a/bundles/org.eclipse.jdt.doc.user/topics_WhatsNew.xml b/bundles/org.eclipse.jdt.doc.user/topics_WhatsNew.xml index 96928c66f..0a2a0171b 100644 --- a/bundles/org.eclipse.jdt.doc.user/topics_WhatsNew.xml +++ b/bundles/org.eclipse.jdt.doc.user/topics_WhatsNew.xml @@ -4,10 +4,10 @@ <!-- Define topics for the What's New --> <!-- ================================ --> <toc label="What's New"> - <topic href="whatsNew/jdt_whatsnew.html#Java16" label="Java 16 Support"/> + <!--<topic href="whatsNew/jdt_whatsnew.html#Java16" label="Java 16 Support"/>--> <topic href="whatsNew/jdt_whatsnew.html#JUnit" label="JUnit"/> <topic href="whatsNew/jdt_whatsnew.html#JavaEditor" label="Java Editor"/> - <topic href="whatsNew/jdt_whatsnew.html#JavaViewsAndDialogs" label="Java Views and Dialogs"/> + <topic href="whatsNew/jdt_whatsnew.html#JavaCompiler" label="Java Compiler"/> <!--topic href="whatsNew/jdt_whatsnew.html#JavaFormatter" label="Java Formatter"/--> <topic href="whatsNew/jdt_whatsnew.html#Debug" label="Debug"/> <!--topic href="whatsNew/jdt_whatsnew.html#JDTDev" label="JDT Developers"/--> diff --git a/bundles/org.eclipse.jdt.doc.user/whatsNew/images/add-subtype-to-permitted-types-of-supertype.png b/bundles/org.eclipse.jdt.doc.user/whatsNew/images/add-subtype-to-permitted-types-of-supertype.png Binary files differnew file mode 100644 index 000000000..21c1c5f6d --- /dev/null +++ b/bundles/org.eclipse.jdt.doc.user/whatsNew/images/add-subtype-to-permitted-types-of-supertype.png diff --git a/bundles/org.eclipse.jdt.doc.user/whatsNew/images/array-with-curly-after.png b/bundles/org.eclipse.jdt.doc.user/whatsNew/images/array-with-curly-after.png Binary files differdeleted file mode 100644 index 709bb8c0d..000000000 --- a/bundles/org.eclipse.jdt.doc.user/whatsNew/images/array-with-curly-after.png +++ /dev/null diff --git a/bundles/org.eclipse.jdt.doc.user/whatsNew/images/array-with-curly-before.png b/bundles/org.eclipse.jdt.doc.user/whatsNew/images/array-with-curly-before.png Binary files differdeleted file mode 100644 index 6b40c7b0a..000000000 --- a/bundles/org.eclipse.jdt.doc.user/whatsNew/images/array-with-curly-before.png +++ /dev/null diff --git a/bundles/org.eclipse.jdt.doc.user/whatsNew/images/array-with-curly-preferences.png b/bundles/org.eclipse.jdt.doc.user/whatsNew/images/array-with-curly-preferences.png Binary files differdeleted file mode 100644 index 5c6b0669c..000000000 --- a/bundles/org.eclipse.jdt.doc.user/whatsNew/images/array-with-curly-preferences.png +++ /dev/null diff --git a/bundles/org.eclipse.jdt.doc.user/whatsNew/images/change-compliance-jre-multi-constant-labels.png b/bundles/org.eclipse.jdt.doc.user/whatsNew/images/change-compliance-jre-multi-constant-labels.png Binary files differnew file mode 100644 index 000000000..fb876bf11 --- /dev/null +++ b/bundles/org.eclipse.jdt.doc.user/whatsNew/images/change-compliance-jre-multi-constant-labels.png diff --git a/bundles/org.eclipse.jdt.doc.user/whatsNew/images/cleanup-profile.png b/bundles/org.eclipse.jdt.doc.user/whatsNew/images/cleanup-profile.png Binary files differdeleted file mode 100644 index 2392069a4..000000000 --- a/bundles/org.eclipse.jdt.doc.user/whatsNew/images/cleanup-profile.png +++ /dev/null diff --git a/bundles/org.eclipse.jdt.doc.user/whatsNew/images/configuration-copyjars.png b/bundles/org.eclipse.jdt.doc.user/whatsNew/images/configuration-copyjars.png Binary files differdeleted file mode 100644 index 8fc15e25b..000000000 --- a/bundles/org.eclipse.jdt.doc.user/whatsNew/images/configuration-copyjars.png +++ /dev/null diff --git a/bundles/org.eclipse.jdt.doc.user/whatsNew/images/create-moduleinfo.png b/bundles/org.eclipse.jdt.doc.user/whatsNew/images/create-moduleinfo.png Binary files differdeleted file mode 100644 index 10aea51aa..000000000 --- a/bundles/org.eclipse.jdt.doc.user/whatsNew/images/create-moduleinfo.png +++ /dev/null diff --git a/bundles/org.eclipse.jdt.doc.user/whatsNew/images/debug_eval_intrim_stack.png b/bundles/org.eclipse.jdt.doc.user/whatsNew/images/debug_eval_intrim_stack.png Binary files differnew file mode 100644 index 000000000..36843696a --- /dev/null +++ b/bundles/org.eclipse.jdt.doc.user/whatsNew/images/debug_eval_intrim_stack.png diff --git a/bundles/org.eclipse.jdt.doc.user/whatsNew/images/debug_hover_array_length.png b/bundles/org.eclipse.jdt.doc.user/whatsNew/images/debug_hover_array_length.png Binary files differdeleted file mode 100644 index fe0405665..000000000 --- a/bundles/org.eclipse.jdt.doc.user/whatsNew/images/debug_hover_array_length.png +++ /dev/null diff --git a/bundles/org.eclipse.jdt.doc.user/whatsNew/images/debug_hover_chain_var.png b/bundles/org.eclipse.jdt.doc.user/whatsNew/images/debug_hover_chain_var.png Binary files differdeleted file mode 100644 index a04bc8689..000000000 --- a/bundles/org.eclipse.jdt.doc.user/whatsNew/images/debug_hover_chain_var.png +++ /dev/null diff --git a/bundles/org.eclipse.jdt.doc.user/whatsNew/images/declare-sealed-class-as-super-class.png b/bundles/org.eclipse.jdt.doc.user/whatsNew/images/declare-sealed-class-as-super-class.png Binary files differnew file mode 100644 index 000000000..743a2677f --- /dev/null +++ b/bundles/org.eclipse.jdt.doc.user/whatsNew/images/declare-sealed-class-as-super-class.png diff --git a/bundles/org.eclipse.jdt.doc.user/whatsNew/images/declare-sealed-interface-as-super-interface.png b/bundles/org.eclipse.jdt.doc.user/whatsNew/images/declare-sealed-interface-as-super-interface.png Binary files differnew file mode 100644 index 000000000..d9f0a795d --- /dev/null +++ b/bundles/org.eclipse.jdt.doc.user/whatsNew/images/declare-sealed-interface-as-super-interface.png diff --git a/bundles/org.eclipse.jdt.doc.user/whatsNew/images/default-type-filters.png b/bundles/org.eclipse.jdt.doc.user/whatsNew/images/default-type-filters.png Binary files differnew file mode 100644 index 000000000..91510fbf1 --- /dev/null +++ b/bundles/org.eclipse.jdt.doc.user/whatsNew/images/default-type-filters.png diff --git a/bundles/org.eclipse.jdt.doc.user/whatsNew/images/external_annotations_all_locations.png b/bundles/org.eclipse.jdt.doc.user/whatsNew/images/external_annotations_all_locations.png Binary files differnew file mode 100644 index 000000000..b5e1c37fb --- /dev/null +++ b/bundles/org.eclipse.jdt.doc.user/whatsNew/images/external_annotations_all_locations.png diff --git a/bundles/org.eclipse.jdt.doc.user/whatsNew/images/extract-superclass-original-after.png b/bundles/org.eclipse.jdt.doc.user/whatsNew/images/extract-superclass-original-after.png Binary files differnew file mode 100644 index 000000000..56929d48d --- /dev/null +++ b/bundles/org.eclipse.jdt.doc.user/whatsNew/images/extract-superclass-original-after.png diff --git a/bundles/org.eclipse.jdt.doc.user/whatsNew/images/extract-superclass-original-before.png b/bundles/org.eclipse.jdt.doc.user/whatsNew/images/extract-superclass-original-before.png Binary files differnew file mode 100644 index 000000000..d8379ff6b --- /dev/null +++ b/bundles/org.eclipse.jdt.doc.user/whatsNew/images/extract-superclass-original-before.png diff --git a/bundles/org.eclipse.jdt.doc.user/whatsNew/images/extract-superclass-superclass-after.png b/bundles/org.eclipse.jdt.doc.user/whatsNew/images/extract-superclass-superclass-after.png Binary files differnew file mode 100644 index 000000000..72773a579 --- /dev/null +++ b/bundles/org.eclipse.jdt.doc.user/whatsNew/images/extract-superclass-superclass-after.png diff --git a/bundles/org.eclipse.jdt.doc.user/whatsNew/images/foreach-expression-type-after.png b/bundles/org.eclipse.jdt.doc.user/whatsNew/images/foreach-expression-type-after.png Binary files differdeleted file mode 100644 index a52fd755e..000000000 --- a/bundles/org.eclipse.jdt.doc.user/whatsNew/images/foreach-expression-type-after.png +++ /dev/null diff --git a/bundles/org.eclipse.jdt.doc.user/whatsNew/images/foreach-expression-type-before.png b/bundles/org.eclipse.jdt.doc.user/whatsNew/images/foreach-expression-type-before.png Binary files differdeleted file mode 100644 index f41406b23..000000000 --- a/bundles/org.eclipse.jdt.doc.user/whatsNew/images/foreach-expression-type-before.png +++ /dev/null diff --git a/bundles/org.eclipse.jdt.doc.user/whatsNew/images/implicit-comparator-after.png b/bundles/org.eclipse.jdt.doc.user/whatsNew/images/implicit-comparator-after.png Binary files differdeleted file mode 100644 index 5d84eaa75..000000000 --- a/bundles/org.eclipse.jdt.doc.user/whatsNew/images/implicit-comparator-after.png +++ /dev/null diff --git a/bundles/org.eclipse.jdt.doc.user/whatsNew/images/implicit-comparator-before.png b/bundles/org.eclipse.jdt.doc.user/whatsNew/images/implicit-comparator-before.png Binary files differdeleted file mode 100644 index e6a199afd..000000000 --- a/bundles/org.eclipse.jdt.doc.user/whatsNew/images/implicit-comparator-before.png +++ /dev/null diff --git a/bundles/org.eclipse.jdt.doc.user/whatsNew/images/implicit-comparator-preferences.png b/bundles/org.eclipse.jdt.doc.user/whatsNew/images/implicit-comparator-preferences.png Binary files differdeleted file mode 100644 index a4e24948b..000000000 --- a/bundles/org.eclipse.jdt.doc.user/whatsNew/images/implicit-comparator-preferences.png +++ /dev/null diff --git a/bundles/org.eclipse.jdt.doc.user/whatsNew/images/one-falling-through-if-after.png b/bundles/org.eclipse.jdt.doc.user/whatsNew/images/one-falling-through-if-after.png Binary files differdeleted file mode 100644 index 098ae6c3d..000000000 --- a/bundles/org.eclipse.jdt.doc.user/whatsNew/images/one-falling-through-if-after.png +++ /dev/null diff --git a/bundles/org.eclipse.jdt.doc.user/whatsNew/images/one-falling-through-if-before.png b/bundles/org.eclipse.jdt.doc.user/whatsNew/images/one-falling-through-if-before.png Binary files differdeleted file mode 100644 index 494c15e66..000000000 --- a/bundles/org.eclipse.jdt.doc.user/whatsNew/images/one-falling-through-if-before.png +++ /dev/null diff --git a/bundles/org.eclipse.jdt.doc.user/whatsNew/images/one-falling-through-if-preferences.png b/bundles/org.eclipse.jdt.doc.user/whatsNew/images/one-falling-through-if-preferences.png Binary files differdeleted file mode 100644 index 945a4614e..000000000 --- a/bundles/org.eclipse.jdt.doc.user/whatsNew/images/one-falling-through-if-preferences.png +++ /dev/null diff --git a/bundles/org.eclipse.jdt.doc.user/whatsNew/images/operand-factorization-after.png b/bundles/org.eclipse.jdt.doc.user/whatsNew/images/operand-factorization-after.png Binary files differdeleted file mode 100644 index f4c173d38..000000000 --- a/bundles/org.eclipse.jdt.doc.user/whatsNew/images/operand-factorization-after.png +++ /dev/null diff --git a/bundles/org.eclipse.jdt.doc.user/whatsNew/images/operand-factorization-before.png b/bundles/org.eclipse.jdt.doc.user/whatsNew/images/operand-factorization-before.png Binary files differdeleted file mode 100644 index 1fb2bef7c..000000000 --- a/bundles/org.eclipse.jdt.doc.user/whatsNew/images/operand-factorization-before.png +++ /dev/null diff --git a/bundles/org.eclipse.jdt.doc.user/whatsNew/images/operand-factorization-preferences.png b/bundles/org.eclipse.jdt.doc.user/whatsNew/images/operand-factorization-preferences.png Binary files differdeleted file mode 100644 index 30a1d10ce..000000000 --- a/bundles/org.eclipse.jdt.doc.user/whatsNew/images/operand-factorization-preferences.png +++ /dev/null diff --git a/bundles/org.eclipse.jdt.doc.user/whatsNew/images/primitive-rather-than-wrapper-after.png b/bundles/org.eclipse.jdt.doc.user/whatsNew/images/primitive-rather-than-wrapper-after.png Binary files differdeleted file mode 100644 index 28633ef5d..000000000 --- a/bundles/org.eclipse.jdt.doc.user/whatsNew/images/primitive-rather-than-wrapper-after.png +++ /dev/null diff --git a/bundles/org.eclipse.jdt.doc.user/whatsNew/images/primitive-rather-than-wrapper-before.png b/bundles/org.eclipse.jdt.doc.user/whatsNew/images/primitive-rather-than-wrapper-before.png Binary files differdeleted file mode 100644 index 4169138a1..000000000 --- a/bundles/org.eclipse.jdt.doc.user/whatsNew/images/primitive-rather-than-wrapper-before.png +++ /dev/null diff --git a/bundles/org.eclipse.jdt.doc.user/whatsNew/images/primitive-rather-than-wrapper-preferences.png b/bundles/org.eclipse.jdt.doc.user/whatsNew/images/primitive-rather-than-wrapper-preferences.png Binary files differdeleted file mode 100644 index 4e95f1250..000000000 --- a/bundles/org.eclipse.jdt.doc.user/whatsNew/images/primitive-rather-than-wrapper-preferences.png +++ /dev/null diff --git a/bundles/org.eclipse.jdt.doc.user/whatsNew/images/pull-out-if-after.png b/bundles/org.eclipse.jdt.doc.user/whatsNew/images/pull-out-if-after.png Binary files differdeleted file mode 100644 index 31fbd3e1a..000000000 --- a/bundles/org.eclipse.jdt.doc.user/whatsNew/images/pull-out-if-after.png +++ /dev/null diff --git a/bundles/org.eclipse.jdt.doc.user/whatsNew/images/pull-out-if-before.png b/bundles/org.eclipse.jdt.doc.user/whatsNew/images/pull-out-if-before.png Binary files differdeleted file mode 100644 index 2b9b6553c..000000000 --- a/bundles/org.eclipse.jdt.doc.user/whatsNew/images/pull-out-if-before.png +++ /dev/null diff --git a/bundles/org.eclipse.jdt.doc.user/whatsNew/images/pull-out-if-preferences.png b/bundles/org.eclipse.jdt.doc.user/whatsNew/images/pull-out-if-preferences.png Binary files differdeleted file mode 100644 index 366b05055..000000000 --- a/bundles/org.eclipse.jdt.doc.user/whatsNew/images/pull-out-if-preferences.png +++ /dev/null diff --git a/bundles/org.eclipse.jdt.doc.user/whatsNew/images/redundant-truth-after.png b/bundles/org.eclipse.jdt.doc.user/whatsNew/images/redundant-truth-after.png Binary files differdeleted file mode 100644 index 9f34538c2..000000000 --- a/bundles/org.eclipse.jdt.doc.user/whatsNew/images/redundant-truth-after.png +++ /dev/null diff --git a/bundles/org.eclipse.jdt.doc.user/whatsNew/images/redundant-truth-before.png b/bundles/org.eclipse.jdt.doc.user/whatsNew/images/redundant-truth-before.png Binary files differdeleted file mode 100644 index 7da886524..000000000 --- a/bundles/org.eclipse.jdt.doc.user/whatsNew/images/redundant-truth-before.png +++ /dev/null diff --git a/bundles/org.eclipse.jdt.doc.user/whatsNew/images/redundant-truth-preferences.png b/bundles/org.eclipse.jdt.doc.user/whatsNew/images/redundant-truth-preferences.png Binary files differdeleted file mode 100644 index 8d0548b65..000000000 --- a/bundles/org.eclipse.jdt.doc.user/whatsNew/images/redundant-truth-preferences.png +++ /dev/null diff --git a/bundles/org.eclipse.jdt.doc.user/whatsNew/images/return-without-assignment-after.png b/bundles/org.eclipse.jdt.doc.user/whatsNew/images/return-without-assignment-after.png Binary files differdeleted file mode 100644 index 42883746e..000000000 --- a/bundles/org.eclipse.jdt.doc.user/whatsNew/images/return-without-assignment-after.png +++ /dev/null diff --git a/bundles/org.eclipse.jdt.doc.user/whatsNew/images/return-without-assignment-before.png b/bundles/org.eclipse.jdt.doc.user/whatsNew/images/return-without-assignment-before.png Binary files differdeleted file mode 100644 index 0e5d0e037..000000000 --- a/bundles/org.eclipse.jdt.doc.user/whatsNew/images/return-without-assignment-before.png +++ /dev/null diff --git a/bundles/org.eclipse.jdt.doc.user/whatsNew/images/return-without-assignment-preferences.png b/bundles/org.eclipse.jdt.doc.user/whatsNew/images/return-without-assignment-preferences.png Binary files differdeleted file mode 100644 index aa27e980a..000000000 --- a/bundles/org.eclipse.jdt.doc.user/whatsNew/images/return-without-assignment-preferences.png +++ /dev/null diff --git a/bundles/org.eclipse.jdt.doc.user/whatsNew/images/static-import-filter.png b/bundles/org.eclipse.jdt.doc.user/whatsNew/images/static-import-filter.png Binary files differdeleted file mode 100644 index 33b3cf9eb..000000000 --- a/bundles/org.eclipse.jdt.doc.user/whatsNew/images/static-import-filter.png +++ /dev/null diff --git a/bundles/org.eclipse.jdt.doc.user/whatsNew/images/stringbuffer-to-stringbuilder-after.png b/bundles/org.eclipse.jdt.doc.user/whatsNew/images/stringbuffer-to-stringbuilder-after.png Binary files differnew file mode 100644 index 000000000..eff6483d1 --- /dev/null +++ b/bundles/org.eclipse.jdt.doc.user/whatsNew/images/stringbuffer-to-stringbuilder-after.png diff --git a/bundles/org.eclipse.jdt.doc.user/whatsNew/images/stringbuffer-to-stringbuilder-before.png b/bundles/org.eclipse.jdt.doc.user/whatsNew/images/stringbuffer-to-stringbuilder-before.png Binary files differnew file mode 100644 index 000000000..11a0a3177 --- /dev/null +++ b/bundles/org.eclipse.jdt.doc.user/whatsNew/images/stringbuffer-to-stringbuilder-before.png diff --git a/bundles/org.eclipse.jdt.doc.user/whatsNew/images/stringbuffer-to-stringbuilder-prefs.png b/bundles/org.eclipse.jdt.doc.user/whatsNew/images/stringbuffer-to-stringbuilder-prefs.png Binary files differnew file mode 100644 index 000000000..9e328e53e --- /dev/null +++ b/bundles/org.eclipse.jdt.doc.user/whatsNew/images/stringbuffer-to-stringbuilder-prefs.png diff --git a/bundles/org.eclipse.jdt.doc.user/whatsNew/images/system-properties-after.png b/bundles/org.eclipse.jdt.doc.user/whatsNew/images/system-properties-after.png Binary files differdeleted file mode 100644 index beeb71489..000000000 --- a/bundles/org.eclipse.jdt.doc.user/whatsNew/images/system-properties-after.png +++ /dev/null diff --git a/bundles/org.eclipse.jdt.doc.user/whatsNew/images/system-properties-before.png b/bundles/org.eclipse.jdt.doc.user/whatsNew/images/system-properties-before.png Binary files differdeleted file mode 100644 index aae00c84a..000000000 --- a/bundles/org.eclipse.jdt.doc.user/whatsNew/images/system-properties-before.png +++ /dev/null diff --git a/bundles/org.eclipse.jdt.doc.user/whatsNew/images/system-properties-preferences.png b/bundles/org.eclipse.jdt.doc.user/whatsNew/images/system-properties-preferences.png Binary files differdeleted file mode 100644 index a4b3412ec..000000000 --- a/bundles/org.eclipse.jdt.doc.user/whatsNew/images/system-properties-preferences.png +++ /dev/null diff --git a/bundles/org.eclipse.jdt.doc.user/whatsNew/images/use-instanceof-after.png b/bundles/org.eclipse.jdt.doc.user/whatsNew/images/use-instanceof-after.png Binary files differdeleted file mode 100644 index 02da58dc9..000000000 --- a/bundles/org.eclipse.jdt.doc.user/whatsNew/images/use-instanceof-after.png +++ /dev/null diff --git a/bundles/org.eclipse.jdt.doc.user/whatsNew/images/use-instanceof-before.png b/bundles/org.eclipse.jdt.doc.user/whatsNew/images/use-instanceof-before.png Binary files differdeleted file mode 100644 index 31ed5e5f1..000000000 --- a/bundles/org.eclipse.jdt.doc.user/whatsNew/images/use-instanceof-before.png +++ /dev/null diff --git a/bundles/org.eclipse.jdt.doc.user/whatsNew/images/use-instanceof-preferences.png b/bundles/org.eclipse.jdt.doc.user/whatsNew/images/use-instanceof-preferences.png Binary files differdeleted file mode 100644 index 0d2f978cc..000000000 --- a/bundles/org.eclipse.jdt.doc.user/whatsNew/images/use-instanceof-preferences.png +++ /dev/null diff --git a/bundles/org.eclipse.jdt.doc.user/whatsNew/images/valueof-rather-than-instantiation-after.png b/bundles/org.eclipse.jdt.doc.user/whatsNew/images/valueof-rather-than-instantiation-after.png Binary files differdeleted file mode 100644 index a48673f83..000000000 --- a/bundles/org.eclipse.jdt.doc.user/whatsNew/images/valueof-rather-than-instantiation-after.png +++ /dev/null diff --git a/bundles/org.eclipse.jdt.doc.user/whatsNew/images/valueof-rather-than-instantiation-before.png b/bundles/org.eclipse.jdt.doc.user/whatsNew/images/valueof-rather-than-instantiation-before.png Binary files differdeleted file mode 100644 index f80b9e990..000000000 --- a/bundles/org.eclipse.jdt.doc.user/whatsNew/images/valueof-rather-than-instantiation-before.png +++ /dev/null diff --git a/bundles/org.eclipse.jdt.doc.user/whatsNew/images/valueof-rather-than-instantiation-preferences.png b/bundles/org.eclipse.jdt.doc.user/whatsNew/images/valueof-rather-than-instantiation-preferences.png Binary files differdeleted file mode 100644 index 42a053b9e..000000000 --- a/bundles/org.eclipse.jdt.doc.user/whatsNew/images/valueof-rather-than-instantiation-preferences.png +++ /dev/null diff --git a/bundles/org.eclipse.jdt.doc.user/whatsNew/images/while-to-do-while-after.png b/bundles/org.eclipse.jdt.doc.user/whatsNew/images/while-to-do-while-after.png Binary files differnew file mode 100644 index 000000000..ddf9f9d55 --- /dev/null +++ b/bundles/org.eclipse.jdt.doc.user/whatsNew/images/while-to-do-while-after.png diff --git a/bundles/org.eclipse.jdt.doc.user/whatsNew/images/while-to-do-while-before.png b/bundles/org.eclipse.jdt.doc.user/whatsNew/images/while-to-do-while-before.png Binary files differnew file mode 100644 index 000000000..7251782a9 --- /dev/null +++ b/bundles/org.eclipse.jdt.doc.user/whatsNew/images/while-to-do-while-before.png diff --git a/bundles/org.eclipse.jdt.doc.user/whatsNew/jdt_whatsnew.html b/bundles/org.eclipse.jdt.doc.user/whatsNew/jdt_whatsnew.html index 84ccbfdea..cb59f9fd0 100644 --- a/bundles/org.eclipse.jdt.doc.user/whatsNew/jdt_whatsnew.html +++ b/bundles/org.eclipse.jdt.doc.user/whatsNew/jdt_whatsnew.html @@ -17,19 +17,20 @@ table.news tr td.title {vertical-align: top; font-weight: bold;} table.news tr td.content {vertical-align: top;} ul {padding-left: 13px;} </style> -<title>What's New in Eclipse 4.20 (JDT)</title> +<title>What's New in Eclipse 4.21 (JDT)</title> </head> <body> -<h2>What's New in Eclipse 4.20 (JDT)</h2> +<h2>What's New in Eclipse 4.21 (JDT)</h2> <p>Here are descriptions of some of the more interesting or significant changes made to the Java development tools (JDT) -for the 4.20 release of Eclipse. +for the 4.21 release of Eclipse. They are grouped into:</p> <ul> <!-- NOTE: Sync ../topics_WhatsNew.xml with this! --> - <li><a href="#Java16">Java™ 16 Support</a></li> + <!--<li><a href="#Java16">Java™ 16 Support</a></li>--> <li><a href="#JUnit">JUnit</a></li> <li><a href="#JavaEditor">Java Editor</a></li> - <li><a href="#JavaViewsAndDialogs">Java Views and Dialogs</a></li> + <li><a href="#JavaCompiler">Java Compiler</a></li> + <!--<li><a href="#JavaViewsAndDialogs">Java Views and Dialogs</a></li>--> <!--li><a href="#JavaFormatter">Java Formatter</a></li--> <li><a href="#Debug">Debug</a></li> <!--li><a href="#JDTDev">JDT Developers</a></li--> @@ -48,33 +49,15 @@ document for changes in the Platform.</p> </colgroup> <tbody> - <!-- ******************* Java 16 Support ************************************* --> + <!-- ******************* Java XX Support ************************************* --> + <!-- <tr> - <td id="Java16" class="section" colspan="2"> - <h2>Java™ 16 Support </h2></td> - </tr> - <tr id="Java_16"> <!-- https://bugs.eclipse.org/bugs/show_bug.cgi?id=565620 --> - <td class="title">Java 16</td> - <td class="content"> - <a href="http://jdk.java.net/16/">Java 16</a> is out and Eclipse JDT supports Java 16 in 4.20. - <p></p> - <p> - The release notably includes the following Java 16 features: - <br/> - <a href="https://openjdk.java.net/jeps/394"> JEP 394: Pattern Matching for Instanceof (Final)</a>. - <br/> - <a href="https://openjdk.java.net/jeps/395"> JEP 395: Records (Final)</a>. - <br/> - <a href="https://openjdk.java.net/jeps/397"> JEP 397: Sealed Classes (Second Preview)</a>. - </p> - <p> - Please note that preview option should be on for <a href="http://openjdk.java.net/projects/jdk/16/"> preview language features</a>. - For an informal introduction of the support, - please refer to <a href="https://wiki.eclipse.org/Java16/Examples"> Java 16 Examples wiki</a>. - </p> - </td> + <td id="JavaXX" class="section" colspan="2"> + <h2>Java™ XX Support </h2> + </td> </tr> - <!-- ******************* End of Java 16 Support ************************************* --> + --> + <!-- ******************* End of Java XX Support ************************************* --> <!-- ******************* JUnit ************************************* --> <tr> @@ -82,13 +65,15 @@ document for changes in the Platform.</p> <h2>JUnit</h2> </td> </tr> - - <tr id="junit-runtime-bree"> <!-- https://bugs.eclipse.org/bugs/show_bug.cgi?id=571009 --> - <td class="title">BREE update for JDT JUnit runtime bundles</td> - <td class="content"> - The bundle required execution environment (BREE) for the <code>org.eclipse.jdt.junit.runtime</code> and <code>org.eclipse.jdt.junit4.runtime</code> bundles is now JavaSE-1.8. - </td> - </tr> + + <tr id="mockitomatchers"> <!-- https://bugs.eclipse.org/bugs/show_bug.cgi?id=575246 --> + <td class="title"><a href="#mockitomatchers">mockito ArgumentMatchers.* added to favorites in Java tooling</a></td> + <td class="content"> + Mockito based tests frequently use <code>org.mockito.ArgumentMatchers.*</code>. + This has been added to the Java favorites in the preferences under <b>Java > Editor > Content Assist > Favorites</b>. + This way the organize imports action in the IDE will automatically add static imports for these classes if you use them in your tests. + </td> + </tr> <!-- ******************* End of JUnit ************************************* --> @@ -98,328 +83,177 @@ document for changes in the Platform.</p> <h2>Java Editor </h2> </td> </tr> - - <tr id="foreach-expression-type"><!-- https://bugs.eclipse.org/bugs/show_bug.cgi?id=572932 --> - <td class="title"><a href="#foreach-expression-type">Better type for the local variable creation quick fix</a></td> + + <tr id="stringbuffer-to-stringbuilder"> <!-- https://bugs.eclipse.org/bugs/show_bug.cgi?id=569835 --> + <td class="title"><a href="#stringbuffer-to-stringbuilder">Use StringBuilder instead of StringBuffer clean up</a></td> <td class="content"> - The quick fix <b>Create a new local variable</b> has been enhanced. When it creates a variable that is the expression on which a foreach loop iterates, its type is an array of the type of the loop parameter: - <p> - For the given code: - </p> - <p><img src="images/foreach-expression-type-before.png" alt="Before"/></p> + A new clean up has been added that converts code to use <code>StringBuilder</code> (added in Java 1.5) rather than <code>StringBuffer</code> which has synchronized methods and is slower than using <code>StringBuilder</code>. <p> - One gets: + There is a sub-option where changes will only occur to local variables which is on by default. When this sub-option is on, changes will only occur to <code>StringBuffer</code> variables that are local to a method. When a method calls other methods with such variables or assigns to/from fields/parameters, the method contents will not be converted. It is permitted to append <code>StringBuffer</code> fields or parameters to local <code>StringBuffer</code> variables which can then still be converted to <code>StringBuilder</code>. </p> - <p><img src="images/foreach-expression-type-after.png" alt="After"/></p> - </td> - </tr> - - <tr id="use-instanceof"> <!-- https://bugs.eclipse.org/bugs/show_bug.cgi?id=569835 --> - <td class="title"><a href="#use-instanceof">Use instanceof clean up</a></td> - <td class="content"> - A new clean up has been added that uses an <code>instanceof</code> expression to check an object against a hardcoded class. <p> - The expression must be a supertype of the targeted class. + When the option is selected and the sub-option for local variables is off,all usage of <code>StringBuffer</code> in the selected files are changed to <code>StringBuilder</code> regardless of usage. It should be noted that in this case, the clean up will not track down non-selected classes and methods that are referenced and might require changes to compile successfully. </p> <p> - To apply the clean up, select <b>Use instanceof keyword instead of Class.isInstance()</b> check box on the <b>Code Style</b> tab in your clean up profile. + To apply the clean up, select the <b>Use StringBuilder instead of StringBuffer</b> check box on the <b>Performance</b> tab in your clean up profile. To specify just for local variables, select the <b>Only for local variables</b> check box found just below. </p> - <p><img src="images/use-instanceof-preferences.png" alt="Preferences" width="800"/></p> + <p><img src="images/stringbuffer-to-stringbuilder-prefs.png" alt="Preferences" width="800"/></p> <p> For the given code: </p> - <p><img src="images/use-instanceof-before.png" alt="Before"/></p> + <p><img src="images/stringbuffer-to-stringbuilder-before.png" alt="Before"/></p> <p> One gets: </p> - <p><img src="images/use-instanceof-after.png" alt="After"/></p> + <p><img src="images/stringbuffer-to-stringbuilder-after.png" alt="After"/></p> </td> </tr> - - <tr id="operand-factorization"> <!-- https://bugs.eclipse.org/bugs/show_bug.cgi?id=569666 --> - <td class="title"><a href="#operand-factorization">Operand factorization clean up</a></td> + + <tr id="while-to-do-while"> <!-- https://bugs.eclipse.org/bugs/show_bug.cgi?id=572574 --> + <td class="title"><a href="#while-to-do-while">Convert while to do/while</a></td> <td class="content"> - A new clean up has been added that replaces <code>(X && Y) || (X && Z)</code> by <code>(X && (Y || Y))</code>. - <p> - The operands must be passive and primitive. - </p> + A new quick-assist has been added to convert appropriate <b>while</b> loops into <b>do/while</b> loops. Appropriate <b>while</b> loops require the first evaluation of the while expression is guaranteed to be true and that the evaluation is passive. <p> - To apply the clean up, select <b>Replace (X && Y) || (X && Z) by (X && (Y || Z))</b> check box on the <b>Duplicate code</b> tab in your clean up profile. + For the following loop: </p> - <p><img src="images/operand-factorization-preferences.png" alt="Preferences" width="800"/></p> + <p><img src="images/while-to-do-while-before.png" alt="Before"/></p> <p> - For the given code: - </p> - <p><img src="images/operand-factorization-before.png" alt="Before"/></p> - <p> - One gets: + One is offered: </p> - <p><img src="images/operand-factorization-after.png" alt="After"/></p> + <p><img src="images/while-to-do-while-after.png" alt="After"/></p> </td> </tr> - - <tr id="pull-out-if"> <!-- https://bugs.eclipse.org/bugs/show_bug.cgi?id=573358 --> - <td class="title"><a href="#pull-out-if">Pull out a duplicate 'if' from an if/else clean up</a></td> + + <tr id="extract-superclass-enhancement"> <!-- https://bugs.eclipse.org/bugs/show_bug.cgi?id=573884 --> + <td class="title"><a href="#extract-superclass-enhancement">Extract Superclass Enhancement</a></td> <td class="content"> - A new clean up has been added that moves a duplicate inner <code>if</code> condition around an outer <code>if</code> condition. - <p> - The inner <code>if</code> condition should be common to both <code>if</code>/<code>else</code> clauses of the outer <code>if</code> statement. - </p> - <p> - The <code>if</code> conditions should be passive. - </p> + The <b>Extract Superclass</b> refactoring has been enhanced to support movement of uninitialized non-static final fields. In the past, a warning was issued for extracting uninitialized non-static final fields as the resultant code would be in error. The refactoring has been enhanced to add additional parameters to the moved constructors and to pass initialization values from the original class constructors. <p> - To apply the clean up, select <b>Pull out a duplicate 'if' from an if/else</b> check box on the <b>Duplicate code</b> tab in your clean up profile. + For the following class: </p> - <p><img src="images/pull-out-if-preferences.png" alt="Preferences" width="800"/></p> + <p><img src="images/extract-superclass-original-before.png" alt="Before"/></p> <p> - For the given code: + Extracting to Superclass and choosing all fields, one gets: </p> - <p><img src="images/pull-out-if-before.png" alt="Before"/></p> + <p><img src="images/extract-superclass-original-after.png" alt="After"/></p> <p> - One gets: + and </p> - <p><img src="images/pull-out-if-after.png" alt="After"/></p> + <p><img src="images/extract-superclass-superclass-after.png" alt="After"/></p> </td> </tr> - - <tr id="one-falling-through-if"> <!-- https://bugs.eclipse.org/bugs/show_bug.cgi?id=572790 --> - <td class="title"><a href="#one-falling-through-if">One if rather than duplicate blocks that fall through clean up</a></td> + + <tr id="raw-paste"> <!-- https://bugs.eclipse.org/bugs/show_bug.cgi?id=5222184 --> + <td class="title"><a href="#raw-paste">Raw Paste</a></td> <td class="content"> - A new clean up has been added that merges consecutive <code>if</code> statements with same code block that end with a jump statement. - <p> - To apply the clean up, select <b>Single 'if' statement rather than duplicate blocks that fall through</b> check box on the <b>Duplicate code</b> tab in your clean up profile. - </p> - <p><img src="images/one-falling-through-if-preferences.png" alt="Preferences" width="800"/></p> - <p> - For the given code: - </p> - <p><img src="images/one-falling-through-if-before.png" alt="Before"/></p> - <p> - One gets: - </p> - <p><img src="images/one-falling-through-if-after.png" alt="After"/></p> + A new menu item has been added for doing a raw paste when editing Java files. The menu item <b>Raw Paste</b> can be found in the <b>Edit</b> pull-down menu and by right-clicking in the edit window to bring up the context-menu. The menu item performs a paste action but toggles off the smart insert feature, if required, and restores it, if necessary, after the paste. For end-users in smart insert mode, this is the same as doing a <b>Shift+Ctrl+Insert</b> followed by <b>Ctrl+V</b>, followed by <b>Shift+Ctrl+Insert</b> to retoggle into smart insert mode again. </td> </tr> - - <tr id="valueof-rather-than-instantiation"> <!-- https://bugs.eclipse.org/bugs/show_bug.cgi?id=572234 --> - <td class="title"><a href="#valueof-rather-than-instantiation">valueOf() rather than instantiation clean up</a></td> + + <tr id="default-type-filters"> <!-- https://bugs.eclipse.org/bugs/show_bug.cgi?id=571758 --> + <td class="title"><a href="#default-type-filters">Default Type Filters</a></td> <td class="content"> - A new clean up has been added that replaces unnecessary primitive wrappers instance creations by using static factory methods (<code>valueOf()</code>). - <p> - It dramatically improves the space performance. - </p> - <p> - To apply the clean up, select <b>valueOf() rather than instantiation</b> check box on the <b>Optimization</b> tab in your clean up profile. - </p> - <p><img src="images/valueof-rather-than-instantiation-preferences.png" alt="Preferences" width="800"/></p> - <p> - For the given code: - </p> - <p><img src="images/valueof-rather-than-instantiation-before.png" alt="Before"/></p> + Default values have been added to the <b>Java > Appearance > Type Filters</b> preferences. Types matching these filters will be excluded + from appearing in the Open Type dialog, content assist, quick fix, and organize imports. These filter patterns do not affect the Package Explorer and Type Hierarchy views. + <p><img src="images/default-type-filters.png" alt=""/></p> <p> - One gets: </p> - <p><img src="images/valueof-rather-than-instantiation-after.png" alt="After"/></p> </td> - </tr> - - <tr id="primitive-rather-than-wrapper"> <!-- https://bugs.eclipse.org/bugs/show_bug.cgi?id=573325 --> - <td class="title"><a href="#primitive-rather-than-wrapper">Primitive rather than wrapper clean up</a></td> + </tr> + <tr id="change-compliance-jre-multi-constant-labels"> <!-- https://bugs.eclipse.org/bugs/show_bug.cgi?id=574707 --> + <td class="title"><a href="#change-compliance-jre-multi-constant-labels">Change project compliance and JRE on using multi-constant case labels</a></td> <td class="content"> - A new clean up has been added that replaces a primitive wrapper object by the primitive type when an object is not necessary. + A new quick fix (<b>Ctrl+1</b>) has been added to change the project compliance and JRE when multi-constant case labels + are used in a project below Java 14: + <p><img src="images/change-compliance-jre-multi-constant-labels.png" alt=""/></p> <p> - The variable must be not <code>null</code>. - The result should not make more autoboxing/unboxing than the original code. - </p> - <p> - To apply the clean up, select <b>Primitive type rather than wrapper class</b> check box on the <b>Optimization</b> tab in your clean up profile. - </p> - <p><img src="images/primitive-rather-than-wrapper-preferences.png" alt="Preferences" width="800"/></p> - <p> - For the given code: </p> - <p><img src="images/primitive-rather-than-wrapper-before.png" alt="Before"/></p> - <p> - One gets: - </p> - <p><img src="images/primitive-rather-than-wrapper-after.png" alt="After"/></p> </td> </tr> - - <tr id="redundant-truth"> <!-- https://bugs.eclipse.org/bugs/show_bug.cgi?id=572851 --> - <td class="title"><a href="#redundant-truth">Redundant truth clean up</a></td> + <tr id="declare-as-super-interface"> <!-- https://bugs.eclipse.org/bugs/show_bug.cgi?id=573980 --> + <td class="title"><a href="#declare-sealed-interface-as-super-interface">Quick fix to declare sealed interface as super interface</a></td> <td class="content"> - A new clean up has been added that directly checks boolean values instead of comparing them with <code>true</code>/<code>false</code>. - <p> - The operator can be equals, not equals or XOR. - The constants can be a literal or a <code>java.lang.Boolean</code> constant. - One operand should be primitive so no new <code>null</code> pointer exceptions may occur. - </p> + You can use the following quick fix (<b>Ctrl+1</b>) to declare a sealed interface as super interface of its permitted types: + <p><img src="images/declare-sealed-interface-as-super-interface.png" alt=""/></p> <p> - To apply the clean up, select <b>Boolean value rather than comparison</b> check box on the <b>Unnecessary Code</b> tab in your clean up profile. </p> - <p><img src="images/redundant-truth-preferences.png" alt="Preferences" width="800"/></p> - <p> - For the given code: - </p> - <p><img src="images/redundant-truth-before.png" alt="Before"/></p> - <p> - One gets: - </p> - <p><img src="images/redundant-truth-after.png" alt="After"/></p> </td> - </tr> - - <tr id="implicit-comparator"> <!-- https://bugs.eclipse.org/bugs/show_bug.cgi?id=572426 --> - <td class="title"><a href="#implicit-comparator">Implicit comparator clean up</a></td> + </tr> + <tr id="declare-as-super-class"> <!-- https://bugs.eclipse.org/bugs/show_bug.cgi?id=574860 --> + <td class="title"><a href="#declare-sealed-class-as-super-class">Quick fix to declare sealed class as super class</a></td> <td class="content"> - A new clean up has been added that removes the comparator declaration if it is the default one. + You can use the following quick fix (<b>Ctrl+1</b>) to declare a sealed class as super class of its permitted classes: + <p><img src="images/declare-sealed-class-as-super-class.png" alt=""/></p> <p> - The declared comparator should be an equivalent to the natural order. - It removes anonymous class, lambda, <code>Comparator.comparing()</code>, <code>Comparator.naturalOrder()</code> and <code>null</code>. - It applies on <code>List.sort(Comparator)</code>, <code>Collections.sort(List, Comparator)</code>, <code>Collections.max(Collection, Comparator)</code> and <code>Collections.min(Collection, Comparator)</code>. - If the comparator is used in the method <code>List.sort(Comparator)</code>, the method is converted into <code>Collections.sort(List)</code>. - </p> - <p> - To apply the clean up, select <b>Use implicit comparator when possible</b> check box on the <b>Unnecessary Code</b> tab in your clean up profile. - </p> - <p><img src="images/implicit-comparator-preferences.png" alt="Preferences" width="800"/></p> - <p> - For the given code: </p> - <p><img src="images/implicit-comparator-before.png" alt="Before"/></p> - <p> - One gets: - </p> - <p><img src="images/implicit-comparator-after.png" alt="After"/></p> - </td> - </tr> - - <tr id="array-with-curly"> <!-- https://bugs.eclipse.org/bugs/show_bug.cgi?id=571977 --> - <td class="title"><a href="#array-with-curly">Initialize array with curly clean up</a></td> - <td class="content"> - A new clean up has been added that replaces the new instance syntax by curly brackets to create an array. - <p> - It must be an initialization of a declaration. - The declaration must have the same type. - </p> - <p> - To apply the clean up, select <b>Create array with curly when possible</b> check box on the <b>Unnecessary Code</b> tab in your clean up profile. - </p> - <p><img src="images/array-with-curly-preferences.png" alt="Preferences" width="800"/></p> - <p> - For the given code: - </p> - <p><img src="images/array-with-curly-before.png" alt="Before"/></p> - <p> - One gets: - </p> - <p><img src="images/array-with-curly-after.png" alt="After"/></p> </td> - </tr> - - <tr id="return-without-assignment"> <!-- https://bugs.eclipse.org/bugs/show_bug.cgi?id=572537 --> - <td class="title"><a href="#return-without-assignment">Remove variable assignment before return clean up</a></td> - <td class="content"> - A new clean up has been added that removes unnecessary local variable declaration or unnecessary variable assignment before a return statement. - <p> - An explicit type is added for arrays. - </p> - <p> - To apply the clean up, select <b>Remove variable assignment before return</b> check box on the <b>Unnecessary Code</b> tab in your clean up profile. - </p> - <p><img src="images/return-without-assignment-preferences.png" alt="Preferences" width="800"/></p> - <p> - For the given code: - </p> - <p><img src="images/return-without-assignment-before.png" alt="Before"/></p> - <p> - One gets: - </p> - <p><img src="images/return-without-assignment-after.png" alt="After"/></p> - </td> - </tr> - - <tr id="replace-system-properties"> <!-- https://bugs.eclipse.org/bugs/show_bug.cgi?id=571823 --> - <td class="title"><a href="#replace-system-properties">Replace System.getProperty() calls clean up</a></td> + </tr> + + <tr id="add-to-permitted-types"> <!-- https://bugs.eclipse.org/bugs/show_bug.cgi?id=574526 --> + <td class="title"><a href="#add-sub -type-as-permitted -type-of-sealed-type">Quick fix to add the sub type to permitted types of sealed super type</a></td> <td class="content"> - A new clean up has been added that replaces certain <code>System.getProperty()</code> calls with alternative Java method calls or constants instead. - Using these calls/constants may end up using system defaults (e.g. system default file separator) and thus can no longer be overridden at runtime. - <p> - To apply the clean up, select <b>Replace system property with constant</b> check box on the <b>Java Feature</b> tab in your clean up profile. This - enables you to check one or more sub-options: <b>File separator</b>, <b>Path separator</b>, <b>Line separator</b>, <b>File encoding</b>, or <b>Boolean property</b>. - The last option is used for arbitrary boolean options specified by <b>-Dsome-arbitrary-option</b>. - </p> - <p><img src="images/system-properties-preferences.png" alt="Preferences"/></p> - <p> - For the given code: - </p> - <p><img src="images/system-properties-before.png" alt="Before"/></p> + You can use the following quick fix (<b>Ctrl+1</b>) to add a sub type to permitted types of a sealed super type: + <p><img src="images/add-subtype-to-permitted-types-of-supertype.png" alt=""/></p> <p> - One gets: </p> - <p><img src="images/system-properties-after.png" alt="After"/></p> </td> </tr> - <!-- ******************* End of Java Editor ************************************* --> + <!--******************* End of Java Editor ************************************* --> - <!-- ******************* Java Views and Dialogs ************************************* --> - <tr> + <!-- ******************* Java Views and Dialogs ************************************* --> + <!-- <tr> <td id="JavaViewsAndDialogs" class="section" colspan="2"> <h2>Java Views and Dialogs</h2> </td> - </tr> - <tr id="search-filter-static-imports"> <!-- https://bugs.eclipse.org/bugs/show_bug.cgi?id=570469 --> - <td class="title"><a href="#search-filter-static-imports">Differentiate search filter for normal imports from static imports</a></td> - <td class="content"> - The <b>Search</b> view now supports a new filter dedicated for <b>static imports</b>. Consequently, the existing imports filter is dedicated for non-static imports only. - As a result, you will now by default find statically imported references of a class or an interface. - <p> - <img src="images/static-import-filter.png" alt="screenshot showing a static import search filter" /> - </p> - </td> - </tr> - <tr id="create-moduleinfo"> <!-- https://bugs.eclipse.org/bugs/show_bug.cgi?id=566862 --> - <td class="title"><a href="#create-moduleinfo">Create module-info.java option during New Java Project creation</a></td> - <td class="content"> - <b>Create module-info.java</b> option has been moved to the first page of <b>New Java Project</b> creation wizard. - This option will be enabled only for Java projects with JRE 9 or above. - New Java Project creation wizard will also remember the previous choice made by the user and select this option by default accordingly. - <p> - <img src="images/create-moduleinfo.png" alt="screenshot showing a static import search filter" /> - </p> + </tr>--> + <!-- ******************* End of Java Views and Dialogs ************************************* --> + + <!-- ******************* Java Compiler ************************************* --> + <tr> + <td id="JavaCompiler" class="section" colspan="2"> + <h2>Java Compiler</h2> </td> </tr> - <tr id="cleanup-profile-updated"> <!-- https://bugs.eclipse.org/bugs/show_bug.cgi?id=530122 --> - <td class="title"><a href="#cleanup-profile-updated">Default Java cleanup profile of Eclipse has been updated</a></td> + <tr id="external_annotations_all_locations"> <!-- https://bugs.eclipse.org/bugs/show_bug.cgi?id=574603 --> + <td class="title">Find external annotations anywhere</td> <td class="content"> - The default cleanup profile of the Java development tools has been updated to include more cleanups. All included cleanups have been well tested and proven to be stable in the Eclipse code base. - Please see the preference under <b>Java > Clean-up</b> for details. - <p> - <img src="images/cleanup-profile.png" alt="screenshot showing a the new cleanup profile" /> + External annotations, which are used for annotation based null analysis, can now be associated + to unannotated classes more freely. + <p>Previously, all external annotations where declared per build path entry. I.e., whenever a project of yours + uses a library for which external annotations exist, you would need to explicitly declare where + the corresponding external annotations for this particular library can be found.</p> + <p>A new compiler preference has been added by which you can instruct the compiler to search + for external annotations in all build path locations of the current project.</p> + <p><img src="images/external_annotations_all_locations.png" alt=""/></p> + <p> + When enabled, this strategy will be applied to all class files encountered during compilation.</p> + <p>Some examples, where this option is useful:</p> + <ul><li>A project A contains generated sources (in a separate source folder), which are decorated using + external annotations in the same project. When project A ships a jar containing also the external annotations, + any client of A will immediately see the generated classes with their external annotations applied.</li> + <li>When dedicated jars have been created, each containing external annotations for a set of libraries, + you only have to add these annotation jars to your build path and enable the new option, without worrying + which annotation jar corresponds to which individual dependency (dependencies). + The compiler will match external annotations to class files with no further help. + </li> + </ul> + <p>For batch compilation a corresponding option already exists. To match the above strategy in CI-builds, + just add the following to the compiler command line (verbatim): + <br/> + <code>-annotationpath CLASSPATH</code> </p> - </td> - </tr> - - <!-- ******************* End of Java Views and Dialogs ************************************* --> + </tr> - <!-- ******************* Java Compiler ************************************* - <tr> - <td id="JavaCompiler" class="section" colspan="2"> - <h2>Java Compiler</h2> - </td> - </tr>--> <!-- ******************* End of Java Compiler ************************************* --> - <!-- ******************* Java Formatter ************************************* - <tr> +<!-- ******************* Java Formatter ************************************* --> + <!-- <tr> <td id="JavaFormatter" class="section" colspan="2"> <h2>Java Formatter </h2> </td> - </tr>--> + </tr> --> <!-- ******************* End of Java Formatter ************************************* --> <!-- *********************** Debug ******************************** --> @@ -428,40 +262,26 @@ document for changes in the Platform.</p> <h2>Debug</h2> </td> </tr> - <tr id="copy-jars"> <!-- https://bugs.eclipse.org/bugs/show_bug.cgi?id=571719 --> - <td class="title"><a href="#copy-jars">Copy Run Configuration item details</a></td> - <td class="content"> - A new <b>Copy</b> button has been added to the <b>Dependencies/Classpath</b> tab of Run Configuration dialog. - This can be used to copy the details of the selected item. - <p> - <img src="images/configuration-copyjars.png" alt="screenshot showing new menu" /> - </p> - </td> - - </tr> - <tr id="debug-hover-chain-fields"> <!-- https://bugs.eclipse.org/bugs/show_bug.cgi?id=572629 --> - <td class="title"><a href="#debug-hover-chain-fields">Debug hover for chain of variables</a></td> + <tr id="debug-intrim-eval"> <!-- https://bugs.eclipse.org/bugs/show_bug.cgi?id=574395 --> + <td class="title"><a href="#debug-intrim-eval">Evaluate variables in current execution stack</a></td> <td class="content"> - When hovering over chain of variables, the debug hover will now show the variable value under the cursor. - <p> - <img src="images/debug_hover_chain_var.png" alt="hover popup on variable" /> - </p> - <p> - It even works for array length. - </p> - <p> - <img src="images/debug_hover_array_length.png" alt="hover popup on array length" /> - </p> -</td> + In debug mode, regardless of the selected stack frame now you can evaluate variables which are + in the scope of the current execution stack frame and stack frames below it which are defined in + the current focused java class. + <p> + <img src="images/debug_eval_intrim_stack.png" alt="screenshot showing evaluation result" /> + </p> + </td> </tr> + <!--************************ End of Debug ******************************** --> - <!-- *********************** JDT Developers ******************************** - <tr> + <!-- *********************** JDT Developers ******************************** --> +<!-- <tr> <td id="JDTDev" class="section" colspan="2"> <h2>JDT Developers</h2> </td> - </tr>--> + </tr> --> <!-- *********************** End of JDT Developers ******************************** --> </tbody> </table> diff --git a/bundles/org.eclipse.pde.doc.user/topics_WhatsNew.xml b/bundles/org.eclipse.pde.doc.user/topics_WhatsNew.xml index 542c1688c..fc28f8266 100644 --- a/bundles/org.eclipse.pde.doc.user/topics_WhatsNew.xml +++ b/bundles/org.eclipse.pde.doc.user/topics_WhatsNew.xml @@ -15,7 +15,6 @@ <!-- Define topics for the What's New --> <!-- ================================ --> <toc label="What's new"> - <topic href="whatsNew/pde_whatsnew.html#dialogs-wizards-views" label="Dialogs, Wizards and Views"/> <!--topic href="whatsNew/pde_whatsnew.html#editors" label="Editors"/--> <topic href="whatsNew/pde_whatsnew.html#APITools" label="API Tools"/> <topic href="whatsNew/pde_whatsnew.html#pde-compiler" label="PDE Compiler"/> diff --git a/bundles/org.eclipse.pde.doc.user/whatsNew/images/pde-change-BREE.png b/bundles/org.eclipse.pde.doc.user/whatsNew/images/pde-change-BREE.png Binary files differdeleted file mode 100644 index c4109bebf..000000000 --- a/bundles/org.eclipse.pde.doc.user/whatsNew/images/pde-change-BREE.png +++ /dev/null diff --git a/bundles/org.eclipse.pde.doc.user/whatsNew/images/pde-micro-to-service.png b/bundles/org.eclipse.pde.doc.user/whatsNew/images/pde-micro-to-service.png Binary files differnew file mode 100644 index 000000000..245425f8e --- /dev/null +++ b/bundles/org.eclipse.pde.doc.user/whatsNew/images/pde-micro-to-service.png diff --git a/bundles/org.eclipse.pde.doc.user/whatsNew/images/pde-option-removed.png b/bundles/org.eclipse.pde.doc.user/whatsNew/images/pde-option-removed.png Binary files differdeleted file mode 100644 index 20224b6a2..000000000 --- a/bundles/org.eclipse.pde.doc.user/whatsNew/images/pde-option-removed.png +++ /dev/null diff --git a/bundles/org.eclipse.pde.doc.user/whatsNew/images/pde-quickfix-for-fixing-encoding.png b/bundles/org.eclipse.pde.doc.user/whatsNew/images/pde-quickfix-for-fixing-encoding.png Binary files differnew file mode 100644 index 000000000..bf6f18ac6 --- /dev/null +++ b/bundles/org.eclipse.pde.doc.user/whatsNew/images/pde-quickfix-for-fixing-encoding.png diff --git a/bundles/org.eclipse.pde.doc.user/whatsNew/images/pde-unnecessary-increase.png b/bundles/org.eclipse.pde.doc.user/whatsNew/images/pde-unnecessary-increase.png Binary files differdeleted file mode 100644 index b933c46b6..000000000 --- a/bundles/org.eclipse.pde.doc.user/whatsNew/images/pde-unnecessary-increase.png +++ /dev/null diff --git a/bundles/org.eclipse.pde.doc.user/whatsNew/images/swtnondisposed.png b/bundles/org.eclipse.pde.doc.user/whatsNew/images/swtnondisposed.png Binary files differdeleted file mode 100644 index 759f7b51b..000000000 --- a/bundles/org.eclipse.pde.doc.user/whatsNew/images/swtnondisposed.png +++ /dev/null diff --git a/bundles/org.eclipse.pde.doc.user/whatsNew/pde_whatsnew.html b/bundles/org.eclipse.pde.doc.user/whatsNew/pde_whatsnew.html index 5e099c884..482b54494 100644 --- a/bundles/org.eclipse.pde.doc.user/whatsNew/pde_whatsnew.html +++ b/bundles/org.eclipse.pde.doc.user/whatsNew/pde_whatsnew.html @@ -17,15 +17,15 @@ table.news tr td.title {vertical-align: top; font-weight: bold;} table.news tr td.content {vertical-align: top;} ul {padding-left: 13px;} </style> -<title>What's New in 4.20 (PDE)</title> +<title>What's New in 4.21 (PDE)</title> </head> <body> -<h2>What's New in 4.20 (PDE)</h2> +<h2>What's New in 4.21 (PDE)</h2> <p>Here are descriptions of some of the more interesting or significant changes made to the Plug-in Development Environment (PDE) -for the 4.20 release of Eclipse. They are grouped into:</p> +for the 4.21 release of Eclipse. They are grouped into:</p> <ul> <!-- NOTE: Sync ../topics_WhatsNew.xml with this! --> - <li><a href="#dialogs-wizards-views">Dialogs, Wizards and Views</a></li> + <!--<li><a href="#dialogs-wizards-views">Dialogs, Wizards and Views</a></li>--> <!--<li><a href="#editors">Editors</a></li>--> <li><a href="#APITools">API Tools</a></li> <li><a href="#pde-compiler">PDE Compiler</a></li> @@ -39,58 +39,21 @@ for the 4.20 release of Eclipse. They are grouped into:</p> <col /> </colgroup> <tbody> - <!-- ******************** Dialogs, Wizard and Views ********************** --> - <tr> - <td id="dialogs-wizards-views" class="section" colspan="2"><h2>Dialogs, Wizards and Views</h2></td> - </tr> - <tr id="pde-enable-swt-resource"> <!-- https://bugs.eclipse.org/bugs/show_bug.cgi?id=572924 --> - <td class="title">Preference option enabling non-disposed SWT Resources error handling</td> - <td class="content"> - <p> - The preference option <b>Enable SWT reporting of non-disposed resources when creating a new launch configuration</b> - has been added to <b>Plug-in Development</b> preference page to enable adding <code>-Dorg.eclipse.swt.graphics.Resource.reportNonDisposed=true</code> - to VM arguments when creating a new launch configuration. - </p> - <p> - <img src="images/swtnondisposed.png" alt="" /> - </p> - </td> - </tr> - <!-- ******************** End ofDialogs, Wizard and Views ********************** --> - - <!-- ******************** Editors ********************** --> - <!-- <tr> - <td id="editors" class="section" colspan="2"><h2>Editors</h2></td> - </tr>--> - <!-- ******************** End of Editors ********************** --> <!-- ******************** APITools ********************** --> <tr> <td id="APITools" class="section" colspan="2"><h2>API Tools</h2></td> </tr> - - <tr id="pde-missing-ee"> <!-- https://bugs.eclipse.org/bugs/show_bug.cgi?id=570438 --> - <td class="title">Preference option for "Missing EE descriptions" removed </td> + <tr id="micro-to-service"> <!--https://bugs.eclipse.org/bugs/show_bug.cgi?id=573693 --> + <td class="title">Micro is changed to service</td> <td class="content"> - The preference option <b>Missing execution environment descriptions</b> option in - <b>Plug-in Development > API Errors/Warning</b> preference page is now removed. The functionality - to report such errors/warning and their quick-fixes are also removed. + All the usage of <b>micro</b> version in the preference as well as the error/warning messages has been changed to <b>service</b> version. <p> - <img src="images/pde-option-removed.png" alt="" /> + <img src="images/pde-micro-to-service.png" alt="" /> </p> </td> - </tr> - - <tr id="pde-unnecessary-increase-in-version"> <!-- https://bugs.eclipse.org/bugs/show_bug.cgi?id=572842 --> - <td class="title">Report multiple increase of the service segment or minor version </td> - <td class="content"> - API tools now reports if the service or the minor version is increased multiple times in a single release. - <p> - <img src="images/pde-unnecessary-increase.png" alt="" /> - </p> - </td> - </tr> + </tr> <!-- ******************** End of APITools ********************** --> @@ -98,16 +61,16 @@ for the 4.20 release of Eclipse. They are grouped into:</p> <tr> <td id="pde-compiler" class="section" colspan="2"><h2>PDE Compiler</h2></td> </tr> - - <tr id="pde-change-bree"> <!-- https://bugs.eclipse.org/bugs/show_bug.cgi?id=475708 --> - <td class="title">The "not a perfect match" problem has a quick fix to change the BREE</td> + <tr id="quickfix-for-encoding"> <!-- https://bugs.eclipse.org/bugs/show_bug.cgi?id=310538 --> + <td class="title">Quick for fixing encoding in build.properties</td> <td class="content"> - The "not a perfect match" problem has a quick fix to change the BREE. - <p> - <img src="images/pde-change-BREE.png" alt="" /> + A new quick-assist has been added for fixing encodings specified in build.properties that are out of synch with the workspace encoding. + + <p> + <img src="images/pde-quickfix-for-fixing-encoding.png" alt="" /> </p> </td> - </tr> + </tr> <!-- ******************** End of PDE Compiler ********************** --> </tbody> diff --git a/bundles/org.eclipse.platform.doc.isv/topics_WhatsNew.xml b/bundles/org.eclipse.platform.doc.isv/topics_WhatsNew.xml index 223bff0a5..1cbf8a5fd 100644 --- a/bundles/org.eclipse.platform.doc.isv/topics_WhatsNew.xml +++ b/bundles/org.eclipse.platform.doc.isv/topics_WhatsNew.xml @@ -6,5 +6,4 @@ <toc label="What's new"> <topic href="whatsNew/platform_isv_whatsnew.html#Platform" label="Platform"/> <topic href="whatsNew/platform_isv_whatsnew.html#SWT" label="SWT"/> - <topic href="whatsNew/platform_isv_whatsnew.html#Equinox" label="Equinox"/> </toc> diff --git a/bundles/org.eclipse.platform.doc.isv/whatsNew/platform_isv_whatsnew.html b/bundles/org.eclipse.platform.doc.isv/whatsNew/platform_isv_whatsnew.html index 5eb0eb890..4fee1e79c 100644 --- a/bundles/org.eclipse.platform.doc.isv/whatsNew/platform_isv_whatsnew.html +++ b/bundles/org.eclipse.platform.doc.isv/whatsNew/platform_isv_whatsnew.html @@ -17,13 +17,13 @@ table.news tr td.title {vertical-align: top; font-weight: bold;} table.news tr td.content {vertical-align: top;} ul {padding-left: 13px;} </style> -<title>Eclipse Platform What's New in 4.20</title> +<title>Eclipse Platform What's New in 4.21</title> </head> <body> -<h2>What's New in Eclipse 4.20</h2> +<h2>What's New in Eclipse 4.21</h2> <p>Here are descriptions of some of the changes of interest to plug-in developers -made to the Eclipse Platform and SWT for the 4.20 release of Eclipse. +made to the Eclipse Platform and SWT for the 4.21 release of Eclipse. </p> <ul><!-- NOTE: Sync ../topics_WhatsNew.xml with this! --> <li><a href="#Platform">Platform Changes</a></li> @@ -49,202 +49,77 @@ section of the Workbench User Guide. <tr> <td id="Platform" class="section" colspan="2"><h2>Platform Changes</h2></td> </tr> - - <tr id="e4-api"> <!-- https://bugs.eclipse.org/bugs/show_bug.cgi?id=570454 --> - <td class="title">ECommandService and EHandlerService released as API</td> + <tr id="path-to-bundlepool-launcher-dir"> <!-- https://bugs.eclipse.org/bugs/show_bug.cgi?id=573131 --> + <td class="title">Path to bundlepool expressed using @launcher.dir</td> <td class="content"> - The following API have been made official. - <ul> - <li><a href="https://git.eclipse.org/c/platform/eclipse.platform.ui.git/tree/bundles/org.eclipse.e4.core.commands/src/org/eclipse/e4/core/commands/ECommandService.java" target="_blank">org.eclipse.e4.core.commands.ECommandService</a></li> - <li><a href="https://git.eclipse.org/c/platform/eclipse.platform.ui.git/tree/bundles/org.eclipse.e4.core.commands/src/org/eclipse/e4/core/commands/EHandlerService.java" target="_blank">org.eclipse.e4.core.commands.EHandlerService</a></li> - </ul> - <br/> - The bundle org.eclipse.e4.core.commands was updated to version 1.0.0. + When creating a bundlepool installation of eclipse, the location of the bundlepool is expressed using the @launcher.dir varliable. + The launcher, typically eclipse.exe, will replace the string "@launcher.dir" with the location where the launcher is located on disk at startup. + This delayed resolution of the bundlepool location allows the bundled pool and the eclipse installations to be relocated in the file system as + long as the internal relationship stays the same. Previously, the path to the bundlepool (expressed using the "-install" launcher option) was + always an absolute path and produced when the installation took place. </td> </tr> + <!-- ******************** End of Platform ********************** --> - <tr id="jetty-10-update"> <!-- https://bugs.eclipse.org/bugs/show_bug.cgi?id=569804 --> - <td class="title">Embedded Jetty server updated to version 10.x</td> - <td class="content"> - <b>Jetty Server</b> used by the help system is updated to version 10.x. As this version requires Servlet API 4.x the opportunity is used to move to the new Jakarta Servlet name of the library. - Bundle symbolic name becomes <b>jakarta.servlet</b>-api from the old javax.servlet one. One of the Jetty bundles <b>org.eclipse.jetty.continuation</b> has been removed from Jetty 10 releases - thus it's no longer part of Eclipse Platform content too. - </td> + <!-- *********************** SWT *********************** --> + <tr> + <td id="SWT" class="section" colspan="2"><h2>SWT Changes</h2></td> </tr> - <tr id="register-model-fragment"> <!-- https://bugs.eclipse.org/bugs/show_bug.cgi?id=571866 --> - <td class="title">Register Model fragments via Manifest header</td> + <tr id="styled-text-multi-selection"> <!-- https://bugs.eclipse.org/bugs/show_bug.cgi?id=562676 --> + <td class="title">StyledText API to use multiple carets or selection ranges</td> <td class="content"> - It is now possible to register model fragments via the newly introduced Manifest Header <code>Model-Fragment</code>. This way it is not necessary to create a <i>plugin.xml</i> that contains - an extension to the extension point <code>org.eclipse.e4.workbench.model</code>. - <p> - To register a fragment via Manifest header, you can now simply add an entry similar to the following snippet to the MANIFEST.MF of the contributing bundle: - </p> - <p> - <code>Model-Fragment: fragment.e4xmi;apply=always</code> - </p> - The <code>apply</code> attribute is optional and defaults to <code>always</code>. It can have the same values as specified in the extension point: - <ul> - <li>always: each time the application started potentially replacing existing model elements and loosing information stored</li> - <li>initial: only when coming from a none persistent state</li> - <li>notexists: only if the given element does not exist already in the model</li> - </ul> + StyledText widget now has a new <code>setSelectionRanges(int[] ranges)</code> API which allows to pass + an arbitraty number of selection ranges. When multiple ranges are used, the text widget will display them + as distinct carets and selection ranges and will allow simultaneous edits at those locations. </td> </tr> - - <tr id="register-model-processor"> <!-- https://bugs.eclipse.org/bugs/show_bug.cgi?id=571866 --> - <td class="title">Register Model processor via DS</td> + <tr id="swt-win-dark-themed-tooltips"> <!-- https://bugs.eclipse.org/bugs/show_bug.cgi?id=574685 --> + <td class="title">SWT Windows now supports dark-theme tool-tips</td> <td class="content"> - It is now possible to register model processors as declarative service. The model processor needs to implement the service interface <code>IModelProcessorContribution</code> to get - registered. This way it is not necessary to create a <i>plugin.xml</i> that contains an extension to the extension point <code>org.eclipse.e4.workbench.model</code>. - - <p> - The model processor is registered via DS, the execution is triggered via the Eclipse injection mechanism. The processor execution at registration time needs to be placed in a method - annotated with <code>@Execute</code>. Additionally it is possible to add a method annotated with <code>@PreDestroy</code> which gives the opportunity to cleanup in case the bundle - that provides the model processor contribution is stopped. - </p> - <pre> -@Component -public class ExampleProcessorContribution implements IModelProcessorContribution { - - @Execute - public void execute() { - System.out.println("Processor executed"); - } - - @PreDestroy - public void preDestroy() { - System.out.println("Processor killed"); - } -} - </pre> - <p> - It is also possible to re-use existing model processor POJO implementations and register them via an <code>IModelProcessorContribution</code>. For this the method <code>getProcessorClass()</code> - needs to be overridden to return the class of the model processor POJO. In this case there is no support for handling the stopping of the contributing bundle. - </p> - <pre> -@Component -public class ExampleProcessorContribution implements IModelProcessorContribution { - - @Override - public Class<?> getProcessorClass() { - return ExampleProcessor.class; - } -} - </pre> - The <code>IModelProcessorContribution</code> supports two service properties for configuration: - <ul> - <li>beforefragment: specifies if the processor has to be invoked before model fragments are added. If not specified it defaults to <code>true</code>.</li> - <li>apply: defines in which case a processor is run. If not specified it defaults to <i>always</i>.<br/> - Possible values are: - <ul> - <li>always: each time the application started</li> - <li>initial: only when coming from a none persistent state</li> - </ul> - </li> - </ul> - <pre> -@Component(property = { - IModelProcessorContribution.BEFORE_FRAGMENT_PROPERTY_PREFIX + "false", - IModelProcessorContribution.APPLY_PROPERTY_PREFIX + "initial" -}) -public class ExampleProcessorContribution implements IModelProcessorContribution { ... } - </pre> - <p> - You can also specify model elements that should be added to the context that is used to invoke the processor. This is necessary as the processor is invoked on application context level. - To specify such model elements you need to override the method <code>getModelElements()</code> - </p> - <pre> -@Component(property = { - IModelProcessorContribution.BEFORE_FRAGMENT_PROPERTY_PREFIX + "false" -}) -public class ExampleProcessorContribution implements IModelProcessorContribution { - - @Execute - public void execute(@Named("org.eclipse.example.partstack") MPartStack myTest) { - System.out.println("Processor executed: " + myTest.getElementId()); - } - - @Override - public List<ModelElement> getModelElements() { - return Arrays.asList(new ModelElement("org.eclipse.example.partstack")); - } -} - </pre> + Table, Tree, CTabFolder, ToolBar and MenuItem widgets now support dark-theme tool-tips. + Refer below screen-shots which show combined tool-tips for various widgets. + <img src="images/swt-win-darkthemed-tooltips.png" alt=""/> </td> </tr> + <!-- *********************** End of SWT *********************** --> - <tr id="simpler-status-creation"> <!-- https://bugs.eclipse.org/bugs/show_bug.cgi?id=573093 --> - <td class="title">New static methods to ease Status creation</td> - <td class="content"> - <p> - New API methods in <code>Status</code> - (<a href="https://help.eclipse.org/latest/topic/org.eclipse.platform.doc.isv/reference/api/org/eclipse/core/runtime/Status.html" target="_blank"><code>org.eclipse.core.runtime.Status</code></a>) - makes it easier and less verbose - to make <code>Status</code> object for error handling. There are methods called <code>info</code>, <code>warning</code> - and <code>error</code> for creating status objects of those severities. These methods simplify the API - by using StackWalker API (introdcued in Java 9) to automatically determine the Plug-in ID. The existing constructors - for more fine grained control still continue to exist and may be the most suitable when using Status objects in - non-error handling cases as explicitly passing the plug-in id in by String can be faster than automatically - determining it. - </p> - A couple of examples of before and after with the new API: - <ul> - <li> - <p>Creating a warning Status</p> - Existing API: <pre>IStatus status = new Status(IStatus.WARNING, UIPlugin.PLUGIN_ID, IStatus.OK, message, null);</pre> - New static helper methods: <pre>IStatus status = Status.warning(message);</pre> - </li> - <li> - <p>Throwing a CoreException:</p> - Existing API: <pre>throw new CoreException(new Status(IStatus.ERROR, UIPlugin.PLUGIN_ID, message, e));</pre> - New static helper methods: <pre>throw new CoreException(Status.error(message, e));</pre> - </li> - </ul> - </td> - </tr> - - <!-- ******************** End of Platform ********************** --> - - <!-- *********************** SWT *********************** --> + <!-- *********************** p2 *********************** --> <tr> - <td id="SWT" class="section" colspan="2"><h2>SWT Changes</h2></td> + <td id="p2" class="section" colspan="2"><h2>p2 Changes</h2></td> </tr> - <tr id="swt-gtk-disable-insert-emoji"> <!-- https://bugs.eclipse.org/bugs/show_bug.cgi?id=572829 --> - <td class="title">Option to disable "Insert Emoji" menu entry on Linux</td> + + <tr id="trust-PGP"> <!-- https://bugs.eclipse.org/bugs/show_bug.cgi?id=572816 --> + <td class="title">Trust signers of PGP-signed artifacts</td> <td class="content"> - On Linux it is now possible to disable the <b>Insert Emoji</b> context menu entry of text fields, on GTK 3.22.20 and upward. This can be done with the following command line argument for Eclipse: - <p><code>-DSWT_GTK_INPUT_HINT_NO_EMOJI=true</code></p> + When artifacts to be installed have the <code>pgp.signatures</code> property set, additionally to the integrity check that + are responsible of verifying the signatures are valid for the given artifact, the public key of the signers will now be + prompted to user in the same <b>Trust</b> dialog as unknown certificates, and user will have to declare the signer + key as trusted for installation to complete. All PGP-signed artifacts need to have at least 1 trusted signer for installation + to complete; an artifact that has no trusted signer will block the installation. + <p>The behavior is similar to what's already in place for artifacts signed with jarsigner. However, some convenience + behavior such as remembering what was already trusted is not implemented yet.</p> + <p>For extenders or users of p2's API, beware that <code>org.eclipse.equinox.p2.core.UIServices</code> now has an + extra <code>getTrustInfo(Certificate[][] unTrustedCertificateChains, Collection<PGPPublicKey> untrustedPGPKeys, + String[] details)</code> method that should be used and implemented in place of legacy method with same name, + but without the <code>PGPPublicKey</code> parameter.</p> </td> </tr> - <!-- *********************** End of SWT *********************** --> - <!-- ******************** Equinox ********************** --> - <tr> - <td id="Equinox" class="section" colspan="2"><h2>Equinox p2 Changes</h2></td> + <!-- ******************** Equinox ********************** --> + <tr> + <td id="Equinox" class="section" colspan="2"><h2>Equinox Changes</h2></td> </tr> - <tr id="pgp-signature-verification"> <!-- https://bugs.eclipse.org/bugs/show_bug.cgi?id=570907 --> - <td class="title">Verify PGP signatures during installation</td> + <tr id="splash-screen-image-formats"> <!-- https://bugs.eclipse.org/bugs/show_bug.cgi?id=114567 --> + <td class="title">Splash screen image format</td> <td class="content"> - When installing some artifact with p2, and those artifacts have the <code>pgp.signatures</code> - property set, the signatures will be verified during installation and installation will fail if a signature - couldn't be verified. - <p>Reasons of failures would be:</p> - <ul> - <li>Signature is not well formatted (it must be armoured PGP blocks) or is intrisically wrong (eg the - signature has been modified in a way that makes it totally invalid).</li> - <li>No public key was found that matches the signature. Public keys are expected to be provided as value of - the <code>pgp.publicKeys</code> property either on the artifact metadata or, usually better, on the artifact - repository, in armoured form.</li> - <li>The signature and a matching public key were found, but the verification process shows that the signature - is incorrect. This usually means the signature was meant for another artifact.</li> - </ul> - Each one of those reasons will make the build fail, as they are security threats. It is assumed that any - signed artifact can be successfully verified for all given signatures to continue installation. + Launcher splash screen image can be in any of the following formats: PNG, JPG, GIF and BMP. + Transparency and animation are not supported yet. </td> </tr> <!-- ******************** End of Equinox ********************** --> + </tbody> </table> <!-- ****************** END OF N&N TABLE ****************** --> diff --git a/bundles/org.eclipse.platform.doc.user/topics_WhatsNew.xml b/bundles/org.eclipse.platform.doc.user/topics_WhatsNew.xml index b03a93e07..824511566 100644 --- a/bundles/org.eclipse.platform.doc.user/topics_WhatsNew.xml +++ b/bundles/org.eclipse.platform.doc.user/topics_WhatsNew.xml @@ -8,6 +8,6 @@ <!--topic href="whatsNew/platform_whatsnew.html#TextEditors" label="Text Editors"/--> <!--topic href="whatsNew/platform_whatsnew.html#StylingThemes" label="Themes and Styling"/--> <!--topic href="whatsNew/platform_whatsnew.html#Debug" label="Debug"/--> -<topic href="whatsNew/platform_whatsnew.html#Preferences" label="Preferences"/> +<topic href="whatsNew/platform_whatsnew.html#StylingThemes" label="Themes and Styling"/> <topic href="whatsNew/platform_whatsnew.html#GeneralUpdates" label="General Updates"/> </toc> diff --git a/bundles/org.eclipse.platform.doc.user/whatsNew/images/history-for-derived-files-preferences.png b/bundles/org.eclipse.platform.doc.user/whatsNew/images/history-for-derived-files-preferences.png Binary files differdeleted file mode 100644 index 861792c94..000000000 --- a/bundles/org.eclipse.platform.doc.user/whatsNew/images/history-for-derived-files-preferences.png +++ /dev/null diff --git a/bundles/org.eclipse.platform.doc.user/whatsNew/images/new-dark-x.png b/bundles/org.eclipse.platform.doc.user/whatsNew/images/new-dark-x.png Binary files differnew file mode 100644 index 000000000..49d65e52b --- /dev/null +++ b/bundles/org.eclipse.platform.doc.user/whatsNew/images/new-dark-x.png diff --git a/bundles/org.eclipse.platform.doc.user/whatsNew/images/new-light-x.png b/bundles/org.eclipse.platform.doc.user/whatsNew/images/new-light-x.png Binary files differnew file mode 100644 index 000000000..7c9ac8a7e --- /dev/null +++ b/bundles/org.eclipse.platform.doc.user/whatsNew/images/new-light-x.png diff --git a/bundles/org.eclipse.platform.doc.user/whatsNew/images/old-dark-x.png b/bundles/org.eclipse.platform.doc.user/whatsNew/images/old-dark-x.png Binary files differnew file mode 100644 index 000000000..54c679927 --- /dev/null +++ b/bundles/org.eclipse.platform.doc.user/whatsNew/images/old-dark-x.png diff --git a/bundles/org.eclipse.platform.doc.user/whatsNew/images/old-light-x.png b/bundles/org.eclipse.platform.doc.user/whatsNew/images/old-light-x.png Binary files differnew file mode 100644 index 000000000..850c26436 --- /dev/null +++ b/bundles/org.eclipse.platform.doc.user/whatsNew/images/old-light-x.png diff --git a/bundles/org.eclipse.platform.doc.user/whatsNew/images/plain_message_dialog_usage.png b/bundles/org.eclipse.platform.doc.user/whatsNew/images/plain_message_dialog_usage.png Binary files differnew file mode 100644 index 000000000..925d011c9 --- /dev/null +++ b/bundles/org.eclipse.platform.doc.user/whatsNew/images/plain_message_dialog_usage.png diff --git a/bundles/org.eclipse.platform.doc.user/whatsNew/images/quick-search-preferences.png b/bundles/org.eclipse.platform.doc.user/whatsNew/images/quick-search-preferences.png Binary files differdeleted file mode 100644 index 7e2e52a8c..000000000 --- a/bundles/org.eclipse.platform.doc.user/whatsNew/images/quick-search-preferences.png +++ /dev/null diff --git a/bundles/org.eclipse.platform.doc.user/whatsNew/images/quick-search.png b/bundles/org.eclipse.platform.doc.user/whatsNew/images/quick-search.png Binary files differdeleted file mode 100644 index c3dda38f2..000000000 --- a/bundles/org.eclipse.platform.doc.user/whatsNew/images/quick-search.png +++ /dev/null diff --git a/bundles/org.eclipse.platform.doc.user/whatsNew/images/swt-win-darkthemed-tooltips.png b/bundles/org.eclipse.platform.doc.user/whatsNew/images/swt-win-darkthemed-tooltips.png Binary files differnew file mode 100644 index 000000000..4748063fd --- /dev/null +++ b/bundles/org.eclipse.platform.doc.user/whatsNew/images/swt-win-darkthemed-tooltips.png diff --git a/bundles/org.eclipse.platform.doc.user/whatsNew/platform_whatsnew.html b/bundles/org.eclipse.platform.doc.user/whatsNew/platform_whatsnew.html index 63fb50876..84824a63b 100644 --- a/bundles/org.eclipse.platform.doc.user/whatsNew/platform_whatsnew.html +++ b/bundles/org.eclipse.platform.doc.user/whatsNew/platform_whatsnew.html @@ -17,13 +17,13 @@ table.news tr td.title {vertical-align: top; font-weight: bold;} table.news tr td.content {vertical-align: top;} ul {padding-left: 13px;} </style> -<title>Eclipse Platform What's New in 4.20</title> +<title>Eclipse Platform What's New in 4.21</title> </head> <body> -<h2>What's New in Eclipse 4.20 (Platform)</h2> +<h2>What's New in Eclipse 4.21 (Platform)</h2> <p>Here are descriptions of some of the more interesting or significant changes -made to the Eclipse Platform for the 4.20 release of Eclipse. They are grouped into:</p> +made to the Eclipse Platform for the 4.21 release of Eclipse. They are grouped into:</p> <ul><!-- NOTE: Sync ../topics_WhatsNew.xml with this! --> <li><a href="#ViewsAndDialogs">Views, Dialogs and Toolbar</a></li> <!--<li><a href="#TextEditors">Text Editors</a></li>--> @@ -53,75 +53,88 @@ document in the plug-in developer's guide.</p> </td> </tr> - <tr id="export-certificate-at-install"> <!-- https://bugs.eclipse.org/bugs/show_bug.cgi?id=573111 --> - <td class="title">Export certificate during installation</td> + <tr id="new-message-dialog"> <!-- https://bugs.eclipse.org/bugs/show_bug.cgi?id=552909 --> + <td class="title">New clean message dialog api</td> <td class="content"> - When installing a software into the workbench and the software is signed but with an untrusted certificate, - the dialog to review trusted certificates now shows a button to <b>📥 Export...</b> the selected certificate - into their own <code>*.der</code> file. This can facilitate review of the certificate, for example in order to - get it audited by some other external service, tool or workflow before approval. + A new API in the class PlainMessageDialog is introduced. It uses a builder pattern to create an immutable instance of PlainMessageDialog. It has a clean API and consists of methods for e.g. the button labels, the message and the image. + <p>Example Usage:<br /> + <code>int answer = PlainMessageDialog.getBuilder(myShell, "The new dialog").image(SWT.ICON_Question).message("Like it?").buttLabels(Arrays.asList(IDialogConstants.YES_LABEL, IDialogConstants.NO_LABEL)).build().open();</code> + </p> + <p> + <img src="images/plain_message_dialog_usage.png" alt=""/> + </p> </td> </tr> - <tr id="quick-text-search"> <!-- https://bugs.eclipse.org/bugs/show_bug.cgi?id=567062 --> - <td class="title">Quick Search mentions max occurrences reached</td> + <tr id="persist-accepted-licences"> <!-- https://bugs.eclipse.org/bugs/show_bug.cgi?id=574622 --> + <td class="title">Accepted licenses remembered permanently</td> <td class="content"> - The <b>Quick Search</b> dialog features a label to depict the number of matches that were found. - Additionally, if the result set exceeds a now configurable limit, the label shows that the limit has been reached and the search process stops. - Besides this new "Max Results" configuration option, the preference page has been overhauled with information decorators to describe the properties in more detail. - <p> - <img src="images/quick-search.png" alt=""/> - </p> - <p> - <img src="images/quick-search-preferences.png" alt=""/> - </p> + Before accepted licenses were only remembered during runtime and not persisted between restarts. + The user selection of accepted licenses is now persisted between restarts. </td> </tr> + <!-- ******************* End of Views, Dialogs and Toolbar ************************************* --> <!-- ******************* Text Editors ************************************* --> - <!-- - <tr> + <!-- <tr> <td id="TextEditors" class="section" colspan="2"> <h2>Text Editors </h2> </td> - </tr> - --> + </tr>--> <!-- ******************* End of Text Editors ************************************* --> <!-- ****************** Preferences ************************************* --> - <tr> + <!-- <tr> <td id="Preferences" class="section" colspan="2"> <h2>Preferences </h2> + </td> + </tr>--> + <!-- ****************** End of Preferences ************************************* --> + <!-- ******************* Themes and Styling ************************************* --> + <tr> + <td id="StylingThemes" class="section" colspan="2"> + <h2>Themes and Styling </h2> </td> - </tr> - <tr id="history-for-derived-files"> <!-- https://bugs.eclipse.org/bugs/show_bug.cgi?id=573421 --> - <td class="title">History for derived files</td> + </tr> + + <tr id="new-close-icon"> <!-- https://bugs.eclipse.org/bugs/show_bug.cgi?id=501491 --> + <td class="title">New close icon on tabs</td> <td class="content"> - The Local history for derived files is now <b>disabled</b> by default. - The behaviour can now be configured to the previous (enabled) behaviour in <b>Preferences > General > Workspace > Local History</b> page, - by checking the <b>History for derived files</b> checkbox. + The drawing of the close icon of tabs has been updated to align better with the operating system. <p> - Derived files are for example automatically created as the output of java annotation processing or XText. - As they are automatically created one could also recreate old versions of the output by compiling older versions of the input, - thereby wasting time and space to store the history of the derived files for most users. + Old: </p> <p> - <img src="images/history-for-derived-files-preferences.png" alt=""/> + <img src="images/old-light-x.png" alt=""/> </p> + <p> + <img src="images/old-dark-x.png" alt=""/> + </p> + + <p> + New: + </p> + <p> + <img src="images/new-light-x.png" alt=""/> + </p> + <p> + <img src="images/new-dark-x.png" alt=""/> + </p> + </td> + + </tr> - <!-- ****************** End of Preferences ************************************* --> - - <!-- ******************* Themes and Styling ************************************* --> - <!-- - <tr> - <td id="StylingThemes" class="section" colspan="2"> - <h2>Themes and Styling </h2> + <tr id="eclipse-win-dark-themed-tooltips"> <!-- https://bugs.eclipse.org/bugs/show_bug.cgi?id=574685 --> + <td class="title">Eclipse Windows now supports dark-theme tool-tips</td> + <td class="content"> + Eclipse on Windows now support dark-theme tool-tips. + Refer below screens-shot which show various tool-tips@dark-theme: + <img src="images/swt-win-darkthemed-tooltips.png" alt=""/> </td> </tr> - --> <!-- ******************* End of Themes and Styling ************************************* --> <!-- ******************* General Updates ************************************* --> @@ -130,23 +143,26 @@ document in the plug-in developer's guide.</p> <h2>General Updates </h2> </td> </tr> - <tr id="eclipse-mac-aarch64"> <!-- https://bugs.eclipse.org/bugs/show_bug.cgi?id=565690 --> - <td class="title">Eclipse support for Mac AArch64(Arm64)</td> + <tr id="new-griddatafactory-method"> <!-- https://bugs.eclipse.org/bugs/show_bug.cgi?id=548829 --> + <td class="title">New method <code>create(int style)</code> in GridDataFactory</td> <td class="content"> - Eclipse SDK downloads for the Mac AArch64(Arm64) architecture are now available. Please note that a Mac AArch64 JVM is required to run Eclipse for Mac AArch64. - Eclipse for Mac AArch64 will be formally supported in the <a href="https://www.eclipse.org/projects/project-plan.php?planurl=https://www.eclipse.org/eclipse/development/plans/eclipse_project_plan_4_20.xml#target_environments" target="_blank">Target Environments</a> - in a future release. - <p> - Eclipse and SWT for Mac x86_64 architecture can already run on Apple Silicon hardware under Rosetta translation mode using a x86_64 JVM. - </p> + GridDataFactory contains a new static method <code>create(int style)</code> which returns a new GridDataFactory instance.<br /> + This method is similar to <code>new GridData(int style)</code>. </td> </tr> - <tr id="ant-version-upgrade"> <!-- https://bugs.eclipse.org/bugs/show_bug.cgi?id=572447 --> - <td class="title">Ant 1.10.10</td> + <tr id="swt-java11"> <!-- https://bugs.eclipse.org/bugs/show_bug.cgi?id=574702 --> + <td class="title">Minimum Java version for SWT</td> + <td class="content"> + SWT now requires minimum Java 11 to run SWT. + </td> + </tr> + <tr id="ant-version-upgrade"> <!-- https://bugs.eclipse.org/bugs/show_bug.cgi?id=574832 --> + <td class="title"><a href="#ant-version-upgrade">Ant 1.10.11</a></td> <td class="content"> - Eclipse has adopted Ant version 1.10.10. + Eclipse has adopted Ant version 1.10.11. </td> </tr> + <!-- ******************* End of General Updates ************************************* --> </tbody> </table> |
