diff --git a/eclipse.platform.common/bundles/org.eclipse.jdt.doc.user/topics_WhatsNew.xml b/eclipse.platform.common/bundles/org.eclipse.jdt.doc.user/topics_WhatsNew.xml index c498a9576b2..9e27713eae4 100644 --- a/eclipse.platform.common/bundles/org.eclipse.jdt.doc.user/topics_WhatsNew.xml +++ b/eclipse.platform.common/bundles/org.eclipse.jdt.doc.user/topics_WhatsNew.xml @@ -4,7 +4,7 @@ - + - + diff --git a/eclipse.platform.common/bundles/org.eclipse.jdt.doc.user/whatsNew/images/add_default_case.png b/eclipse.platform.common/bundles/org.eclipse.jdt.doc.user/whatsNew/images/add_default_case.png new file mode 100644 index 00000000000..2635e31c043 Binary files /dev/null and b/eclipse.platform.common/bundles/org.eclipse.jdt.doc.user/whatsNew/images/add_default_case.png differ diff --git a/eclipse.platform.common/bundles/org.eclipse.jdt.doc.user/whatsNew/images/add_default_case_result.png b/eclipse.platform.common/bundles/org.eclipse.jdt.doc.user/whatsNew/images/add_default_case_result.png new file mode 100644 index 00000000000..7b873be4b32 Binary files /dev/null and b/eclipse.platform.common/bundles/org.eclipse.jdt.doc.user/whatsNew/images/add_default_case_result.png differ diff --git a/eclipse.platform.common/bundles/org.eclipse.jdt.doc.user/whatsNew/images/constant-renaming.png b/eclipse.platform.common/bundles/org.eclipse.jdt.doc.user/whatsNew/images/constant-renaming.png new file mode 100644 index 00000000000..c2f8414262e Binary files /dev/null and b/eclipse.platform.common/bundles/org.eclipse.jdt.doc.user/whatsNew/images/constant-renaming.png differ diff --git a/eclipse.platform.common/bundles/org.eclipse.jdt.doc.user/whatsNew/images/deprecated-after.png b/eclipse.platform.common/bundles/org.eclipse.jdt.doc.user/whatsNew/images/deprecated-after.png new file mode 100644 index 00000000000..19492cdbe21 Binary files /dev/null and b/eclipse.platform.common/bundles/org.eclipse.jdt.doc.user/whatsNew/images/deprecated-after.png differ diff --git a/eclipse.platform.common/bundles/org.eclipse.jdt.doc.user/whatsNew/images/deprecated-before.png b/eclipse.platform.common/bundles/org.eclipse.jdt.doc.user/whatsNew/images/deprecated-before.png new file mode 100644 index 00000000000..851e4b2a3b0 Binary files /dev/null and b/eclipse.platform.common/bundles/org.eclipse.jdt.doc.user/whatsNew/images/deprecated-before.png differ diff --git a/eclipse.platform.common/bundles/org.eclipse.jdt.doc.user/whatsNew/images/ignore_ws.png b/eclipse.platform.common/bundles/org.eclipse.jdt.doc.user/whatsNew/images/ignore_ws.png deleted file mode 100644 index 0d309e86967..00000000000 Binary files a/eclipse.platform.common/bundles/org.eclipse.jdt.doc.user/whatsNew/images/ignore_ws.png and /dev/null differ diff --git a/eclipse.platform.common/bundles/org.eclipse.jdt.doc.user/whatsNew/images/insert_break.png b/eclipse.platform.common/bundles/org.eclipse.jdt.doc.user/whatsNew/images/insert_break.png new file mode 100644 index 00000000000..1b424146a4e Binary files /dev/null and b/eclipse.platform.common/bundles/org.eclipse.jdt.doc.user/whatsNew/images/insert_break.png differ diff --git a/eclipse.platform.common/bundles/org.eclipse.jdt.doc.user/whatsNew/images/insert_break_result.png b/eclipse.platform.common/bundles/org.eclipse.jdt.doc.user/whatsNew/images/insert_break_result.png new file mode 100644 index 00000000000..39363d214dd Binary files /dev/null and b/eclipse.platform.common/bundles/org.eclipse.jdt.doc.user/whatsNew/images/insert_break_result.png differ diff --git a/eclipse.platform.common/bundles/org.eclipse.jdt.doc.user/whatsNew/images/java-constant-hover-example.png b/eclipse.platform.common/bundles/org.eclipse.jdt.doc.user/whatsNew/images/java-constant-hover-example.png deleted file mode 100644 index 4080d1e277b..00000000000 Binary files a/eclipse.platform.common/bundles/org.eclipse.jdt.doc.user/whatsNew/images/java-constant-hover-example.png and /dev/null differ diff --git a/eclipse.platform.common/bundles/org.eclipse.jdt.doc.user/whatsNew/images/java-constant-hover-prefs.png b/eclipse.platform.common/bundles/org.eclipse.jdt.doc.user/whatsNew/images/java-constant-hover-prefs.png deleted file mode 100644 index 7e960c3ff84..00000000000 Binary files a/eclipse.platform.common/bundles/org.eclipse.jdt.doc.user/whatsNew/images/java-constant-hover-prefs.png and /dev/null differ diff --git a/eclipse.platform.common/bundles/org.eclipse.jdt.doc.user/whatsNew/images/junit-search-progress-bar.png b/eclipse.platform.common/bundles/org.eclipse.jdt.doc.user/whatsNew/images/junit-search-progress-bar.png deleted file mode 100644 index 9f7a28268bb..00000000000 Binary files a/eclipse.platform.common/bundles/org.eclipse.jdt.doc.user/whatsNew/images/junit-search-progress-bar.png and /dev/null differ diff --git a/eclipse.platform.common/bundles/org.eclipse.jdt.doc.user/whatsNew/images/junit-search-progress-dialog.png b/eclipse.platform.common/bundles/org.eclipse.jdt.doc.user/whatsNew/images/junit-search-progress-dialog.png deleted file mode 100644 index 011b555a4a9..00000000000 Binary files a/eclipse.platform.common/bundles/org.eclipse.jdt.doc.user/whatsNew/images/junit-search-progress-dialog.png and /dev/null differ diff --git a/eclipse.platform.common/bundles/org.eclipse.jdt.doc.user/whatsNew/images/junit-search-progress-run-configuration.png b/eclipse.platform.common/bundles/org.eclipse.jdt.doc.user/whatsNew/images/junit-search-progress-run-configuration.png deleted file mode 100644 index 63c90856933..00000000000 Binary files a/eclipse.platform.common/bundles/org.eclipse.jdt.doc.user/whatsNew/images/junit-search-progress-run-configuration.png and /dev/null differ diff --git a/eclipse.platform.common/bundles/org.eclipse.jdt.doc.user/whatsNew/images/lambda-example-after.png b/eclipse.platform.common/bundles/org.eclipse.jdt.doc.user/whatsNew/images/lambda-example-after.png deleted file mode 100644 index 0908e5e9a85..00000000000 Binary files a/eclipse.platform.common/bundles/org.eclipse.jdt.doc.user/whatsNew/images/lambda-example-after.png and /dev/null differ diff --git a/eclipse.platform.common/bundles/org.eclipse.jdt.doc.user/whatsNew/images/lambda-example-before.png b/eclipse.platform.common/bundles/org.eclipse.jdt.doc.user/whatsNew/images/lambda-example-before.png deleted file mode 100644 index 2c8c4470290..00000000000 Binary files a/eclipse.platform.common/bundles/org.eclipse.jdt.doc.user/whatsNew/images/lambda-example-before.png and /dev/null differ diff --git a/eclipse.platform.common/bundles/org.eclipse.jdt.doc.user/whatsNew/images/new-lambda-pref.png b/eclipse.platform.common/bundles/org.eclipse.jdt.doc.user/whatsNew/images/new-lambda-pref.png deleted file mode 100644 index 6252247b247..00000000000 Binary files a/eclipse.platform.common/bundles/org.eclipse.jdt.doc.user/whatsNew/images/new-lambda-pref.png and /dev/null differ diff --git a/eclipse.platform.common/bundles/org.eclipse.jdt.doc.user/whatsNew/images/remove_default_case.png b/eclipse.platform.common/bundles/org.eclipse.jdt.doc.user/whatsNew/images/remove_default_case.png new file mode 100644 index 00000000000..26342bfd18f Binary files /dev/null and b/eclipse.platform.common/bundles/org.eclipse.jdt.doc.user/whatsNew/images/remove_default_case.png differ diff --git a/eclipse.platform.common/bundles/org.eclipse.jdt.doc.user/whatsNew/images/remove_default_case_result.png b/eclipse.platform.common/bundles/org.eclipse.jdt.doc.user/whatsNew/images/remove_default_case_result.png new file mode 100644 index 00000000000..64485523794 Binary files /dev/null and b/eclipse.platform.common/bundles/org.eclipse.jdt.doc.user/whatsNew/images/remove_default_case_result.png differ diff --git a/eclipse.platform.common/bundles/org.eclipse.jdt.doc.user/whatsNew/images/show_ws.png b/eclipse.platform.common/bundles/org.eclipse.jdt.doc.user/whatsNew/images/show_ws.png deleted file mode 100644 index 59275a5b950..00000000000 Binary files a/eclipse.platform.common/bundles/org.eclipse.jdt.doc.user/whatsNew/images/show_ws.png and /dev/null differ diff --git a/eclipse.platform.common/bundles/org.eclipse.jdt.doc.user/whatsNew/jdt_whatsnew.html b/eclipse.platform.common/bundles/org.eclipse.jdt.doc.user/whatsNew/jdt_whatsnew.html index 70e409d8c5c..c896eb3e621 100644 --- a/eclipse.platform.common/bundles/org.eclipse.jdt.doc.user/whatsNew/jdt_whatsnew.html +++ b/eclipse.platform.common/bundles/org.eclipse.jdt.doc.user/whatsNew/jdt_whatsnew.html @@ -17,23 +17,23 @@ table.news tr td.content {vertical-align: top;} ul {padding-left: 13px;} -What's New in Eclipse 4.29 (JDT) +What's New in Eclipse 4.30 (JDT) -

What's New in Eclipse 4.29 (JDT)

+

What's New in Eclipse 4.30 (JDT)

Here are descriptions of some of the more interesting or significant changes made to the Java development tools (JDT) -for the 4.29 release of Eclipse. +for the 4.30 release of Eclipse. They are grouped into:

See also the Eclipse Platform What's New @@ -49,37 +49,34 @@

What's New in Eclipse 4.29 (JDT)

- - - -

Java™ XX Support

+ +

Java™ 21 Support

- --> - + + Java 21 + + Java 21 is out and Eclipse JDT supports Java 21 in 4.30. +

+

+ The release notably includes the following Java 21 features: +
+ JEP 440: Record Patterns. +
+ JEP 441: Pattern Matching for Switch. +

+ + + - + @@ -88,65 +85,116 @@

JUnit

Java Editor

- - Java Constant Hover - - A new hover has been added to display the values of integer or float constants specified in binary, octal, or hex - format. When hovering over such constants, the value will be shown in decimal format followed by the value in hex. -

The hover can be activated in the Java > Editor > Hovers preference page either by - selecting the Combined Hover or by clicking on the Java Constant check box.

-

Java Constant Hover in preferences

-

The following shows hovering over an integer constant specified in octal format:

-

Example of Java Constant Hover

- + + + Quick Fix to add default case + + You can use the new Quick Fix (Ctrl+1) to add the missing default case to an enhanced switch statement. For example, +

add default case quick fix

+ will result in: +

result of add default case quick fix

+ + + + + Quick Fix to remove default case + + You can use the new Quick Fix (Ctrl+1) to remove the default case when it is present with unconditional pattern in a switch. For example, +

remove default case quick fix

+ will result in: +

result of remove default case quick fix

+ + + + + Quick Fix to insert break statement + + You can use the new Quick Fix (Ctrl+1) to insert the break statement when there is an illegal fall-through to a pattern in a switch statement. + For example, +

insert break statement quick fix

+ will result in: +

result of insert break statement quick fix

+ - - Lambda Cleanup Improvements - - A number of improvements have been made to the Java cleanups concerning converting to use lambdas and simplifying existing - lambdas. First of all, the cleanup preference: Convert functional interface instances on the Java Features tab - for Java 8 has added an additional checkbox: Simplify method reference syntax for lambda conversions. This checkbox is - selected by default and instructs the cleanup to use method reference syntax where possible when converting from anonymous - classes. If the checkbox is unselected, method reference syntax will not be used by default (sometimes required to avoid - a runtime NullPointerException) but will only be used if the user has also selected the Simplify lambda expression and - method reference syntax cleanup option found on the Code Style tab. By default, the Quick fix to convert an - anonymous class will also by default now use the method reference syntax where possible. -

New Lambda Cleanup Preference

-

The second improvement to the lambda cleanups and quick fix is that the code now recognizes use of instanceof can - be replaced with a method reference to isInstance

. -

The following code:

-

Lambda Cleanup Example Before

-

with the lambda cleanup will by default change to:

-

Lambda Cleanup Example After

- + + + Cleanup and quick fix to replace deprecated method calls + + A new cleanup has been added to the Source > Clean Up > Source Fixing tab page to replace deprecated method calls with inlined content. Choosing this option will inline + the implementation of the deprecated method if and only if: +
    +
  1. The deprecated method has Javadoc that specifies a @deprecated tag which ends with "use {@link ...}" or "replace by {@link ...}"
  2. +
  3. The {@link ...} tag refers to a method
  4. +
  5. The linked method is actually called in the implementation of the deprecated method
  6. +
  7. Methods and fields accessed in the linked method are visible at the location it will be inlined (e.g. using a package private method is ok to call if in same package)
  8. +
+ For example, cleaning up the following: +

deprecated method call to inline

+ will result in inlining the deprecated foo() call in foo2: +

result of deprecated method call inline

+

The functionality is also available as a quick fix for an individual call to a deprecated method that is marked with warning or error. One can also select a deprecated method call and initiate as a quick assist (select call and click CTRL + 1).

+ + + + + Quick assist to rename constant fields + + A new quick assist has been added to rename static constant fields to follow a standard syntax using upper-case and underscores rather than camel case. + To use: select the constant and click CTRL+1. + For example, +

rename constant quick assist

+ will offer to rename the constant "valConstant1" to "VAL_CONSTANT1". + - - - + + + + + + + + + + + + + + + + + + +

JDT Developers

+ - - - - Improved "Ignore Whitespace" in Java Compare + + + Pushdown of refactors and proposals to jdt.manipulations - Up to now the "Ignore White Space" context menu action in the Java Compare editor ignored all whitespace, including what may be semantically significant whitespace. -

Showing all white space changed

- For example, a white space difference in a Java string literal is semantically significant while trailing white space is not. -

- This has now been inproved so that e.g. white space changes in string literals are also shown while "Ignore White Space" is active. -

-

Hiding insignificant white space

+ A significant amount of code was pushed down from org.eclipse.jdt.ui into org.eclipse.jdt.core.manipulations, specifically most of the proposal and refactor operations. This will allow these operations to be used in a headless environment. - - - + + diff --git a/eclipse.platform.common/bundles/org.eclipse.pde.doc.user/whatsNew/images/mixed-products.png b/eclipse.platform.common/bundles/org.eclipse.pde.doc.user/whatsNew/images/mixed-products.png deleted file mode 100644 index 60d0353898a..00000000000 Binary files a/eclipse.platform.common/bundles/org.eclipse.pde.doc.user/whatsNew/images/mixed-products.png and /dev/null differ diff --git a/eclipse.platform.common/bundles/org.eclipse.pde.doc.user/whatsNew/images/osgi-repository-target-type.png b/eclipse.platform.common/bundles/org.eclipse.pde.doc.user/whatsNew/images/osgi-repository-target-type.png deleted file mode 100644 index 83b074c9155..00000000000 Binary files a/eclipse.platform.common/bundles/org.eclipse.pde.doc.user/whatsNew/images/osgi-repository-target-type.png and /dev/null differ diff --git a/eclipse.platform.common/bundles/org.eclipse.pde.doc.user/whatsNew/images/product-start-levels.png b/eclipse.platform.common/bundles/org.eclipse.pde.doc.user/whatsNew/images/product-start-levels.png deleted file mode 100644 index 81e8a0667b6..00000000000 Binary files a/eclipse.platform.common/bundles/org.eclipse.pde.doc.user/whatsNew/images/product-start-levels.png and /dev/null differ diff --git a/eclipse.platform.common/bundles/org.eclipse.pde.doc.user/whatsNew/images/product_updates_names.png b/eclipse.platform.common/bundles/org.eclipse.pde.doc.user/whatsNew/images/product_updates_names.png new file mode 100644 index 00000000000..f3c173e9f7a Binary files /dev/null and b/eclipse.platform.common/bundles/org.eclipse.pde.doc.user/whatsNew/images/product_updates_names.png differ diff --git a/eclipse.platform.common/bundles/org.eclipse.pde.doc.user/whatsNew/pde_whatsnew.html b/eclipse.platform.common/bundles/org.eclipse.pde.doc.user/whatsNew/pde_whatsnew.html index 9fcdabf18cd..220c7bb6ad2 100644 --- a/eclipse.platform.common/bundles/org.eclipse.pde.doc.user/whatsNew/pde_whatsnew.html +++ b/eclipse.platform.common/bundles/org.eclipse.pde.doc.user/whatsNew/pde_whatsnew.html @@ -17,13 +17,13 @@ table.news tr td.content {vertical-align: top;} ul {padding-left: 13px;} -What's New in 4.29 (PDE) +What's New in 4.30 (PDE) -

What's New in 4.29 (PDE)

+

What's New in 4.30 (PDE)

Here are descriptions of some of the more interesting or significant changes made to the Plug-in Development Environment (PDE) -for the 4.29 release of Eclipse. They are grouped into:

+for the 4.30 release of Eclipse. They are grouped into: