Skip to content

Commit

Permalink
Eclipse 2022-09: Sample code; other final updates
Browse files Browse the repository at this point in the history
  • Loading branch information
howlger committed Sep 25, 2022
1 parent 836a11b commit 271806a
Show file tree
Hide file tree
Showing 26 changed files with 366 additions and 28 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
[2019-06](https://github.com/howlger/Eclipse-IDE-improvements-videos/tree/2019-06)
</sup>

# +++ Work in progress (for September 14, 2022) +++<br> Eclipse IDE 2022-09 Improvements Video
# [Eclipse IDE 2022-09 Improvements Video](https://youtu.be/eEXvOjtauxI)

* [September 14, 2022](https://calendar.google.com/calendar/event?eid=MWlubzM1cWdzZjU2aHJnZTgxc2hscmsxb2ogZ2NoczdubTRudnBtODM3NDY5ZGRqOXRqbGtAZw&ctz=Europe/Berlin) ([calendar](https://calendar.google.com/calendar/[email protected]&ctz=Europe/Berlin)) - [66 projects](https://projects.eclipse.org/releases/2022-09) ([-1 +0 → 66](projects_diff.txt)) - [wiki](https://wiki.eclipse.org/Category:SimRel-2022-09) - [website](https://eclipse.org/eclipseide/2022-09) ([New & Noteworthy](https://eclipse.org/eclipseide/2022-09/noteworthy)) - [splash screen](https://bugs.eclipse.org/bugs/show_bug.cgi?id=575781)
* Builds: [latest unreleased](https://download.eclipse.org/technology/epp/staging/)[released](https://download.eclipse.org/technology/epp/downloads/release/2022-09/) ([Jenkins](https://ci.eclipse.org/packaging/job/simrel.epp-tycho-build), [log](https://git.eclipse.org/c/simrel/org.eclipse.simrel.build.git/log/), update sites: [staging](https://download.eclipse.org/staging/2022-09), [release](http://download.eclipse.org/releases/2022-09))
Expand Down Expand Up @@ -55,7 +55,7 @@

### Features to show

* **Java <!-- [📽️](https://youtu.be/zDJtVYAJwyY?t=16s) -->**
* **Java [📽️](https://youtu.be/eEXvOjtauxI?t=16s)**
* [Java 19 support via Marketplace](https://marketplace.eclipse.org/content/java-19-support-eclipse-2022-09-425)
* By the way, Eclipse 2022-09 requires Java 17 and is shipped with latest Java 17(.0.4)
* Cleanups:
Expand All @@ -70,13 +70,13 @@
* ([Double click in _All References_ pop-up and _All Instances_ pop-up navigates to the type](https://www.eclipse.org/eclipse/news/4.25/jdt.php#doubleclick-in-debug-popups) (in the past, double click was ignored in those pop-ups))
* ([Performance](https://github.com/search?utf8=%E2%9C%93&q=performance+OR+speed+OR+faster+org%3Aeclipse-jdt+committer-date%3A2022-06-05..2022-09-10&s=committer-date&o=desc&type=Commits):)
* (Performance test results tables are back on download page, e.g. for [4.25RC2](https://download.eclipse.org/eclipse/downloads/drops4/S-4.25RC2-202208311800/performance/performance.php))
* Maven:
* Maven [📽️](https://youtu.be/eEXvOjtauxI?t=159s):
* [Autocompletion for directory/file based properties](https://github.com/eclipse/lemminx-maven/issues/292), e.g. `<parent><relativePath>../|</relativePath>` or `<module>../|</module>`
* [Maven archiver support](https://github.com/eclipse-m2e/m2e-core/blob/master/RELEASE_NOTES.md#inclusion-of-maven-archiver-connector) (in the past, not shipped by default; now in [m2e core](https://github.com/eclipse-m2e/m2e-core/tree/master/org.eclipse.m2e.mavenarchiver)): creates `META-INF/MANIFEST.MF` based on the `pom.xml`'s `maven-jar-plugin` configuration
* [Annotation processors support](https://github.com/eclipse-m2e/m2e-core/blob/master/RELEASE_NOTES.md#inclusion-of-m2e-apt-plugins-for-annotation-processors) (formally [JBoss Tools m2e-apt](https://github.com/jbosstools/m2e-apt)): disabled by default, can be enabled in the preferences _Maven > Annotation Processing_ or in `pom.xml` via the property `<m2e.apt.activation>jdt_apt</m2e.apt.activation>`; when enabled, _Project > Properties: Java Compiler > Annotation Processing_ will be automatically configured
* (Embedded Maven updated from 3.8.4 to the latest version 3.8.6)
* [Colored Maven log in _Console_ view](https://github.com/eclipse-m2e/m2e-core/blob/master/RELEASE_NOTES.md#support-for-colored-maven-console-printouts) (requires ANSI support to be enabled: see below)
* **General/Platform <!-- [📽️](https://youtu.be/zDJtVYAJwyY?t=475s) -->**
* **General/Platform [📽️](https://youtu.be/eEXvOjtauxI?t=323s)**
* [Support for ANSI escape codes in Console](https://www.eclipse.org/eclipse/news/4.25/platform.php#debug-ansi-support): preferences _Run/Debug > Console > ANSI Support_ (formerly [_ANSI Escape in Console_](https://marketplace.eclipse.org/content/ansi-escape-console) plugin by [Mihai Nita](https://github.com/mihnita))
* [System encoding for Console](https://www.eclipse.org/eclipse/news/4.25/platform.php#debug-system-encoding): in launch configuration in _Common_ tab
* [Preference _General > Editors > Text Editors_: _Enable word wrap when opening an editor_](https://www.eclipse.org/eclipse/news/4.25/platform.php#enable-word-wrap-on-open) (word wrapping can be enabled/disabled per editor)
Expand All @@ -88,7 +88,7 @@
* ([Forms with default background color](https://www.eclipse.org/eclipse/news/4.25/platform.php#form-no-gradients))
* ([Less usage of icons in user confirmation dialogs](https://www.eclipse.org/eclipse/news/4.25/platform.php#less-icons-in-user-dialogs))
* ([System theme removed](https://github.com/eclipse-platform/eclipse.platform.ui/commit/9328b2d43cea202deb96f1ce88d73dd39acaa99d))
* (**Git <!-- [📽️](https://youtu.be/zDJtVYAJwyY?t=730s) -->**)
* (**Git**)
* (_Git Staging_ view: [Show `core.commentChar` in a tooltip](https://git.eclipse.org/c/egit/egit.git/commit/?id=b8501646b447f0c7b0f7dc73569bc9e654ae58fa))
* **(Under development)**
* ([Preferences: _Install/Update > Trust_](https://www.eclipse.org/eclipse/news/4.23/platform.php#manage-trusted-pgp-keys) (work in progress; [_rollout for 2022-06_](https://gitlab.eclipse.org/eclipse-wg/ide-wg/ide-wg.eclipse.org/-/issues/11)))
Expand Down
32 changes: 16 additions & 16 deletions intro_outro_thumbnail.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 6 additions & 6 deletions reset_workspace_and_installation.bat
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
set IDE=jee-2022-09
set IDE=java-2022-09
set REPO=sample

set ECLIPSE_DIR=%USERPROFILE%\eclipse\%IDE%
Expand All @@ -9,9 +9,9 @@ set ECLIPSE_WORKSPACE_ZIP=%ECLIPSE_WORKSPACE%.7z
set REPO_DIR=%USERPROFILE%\git\%REPO%
set REPO_ZIP=%USERPROFILE%\git\%REPO%.7z

:: only for Eclipse 2022-06
:: only for Eclipse 2022-09
::start C:\Users\Howlger\eclipse-installer\eclipse-inst.exe
::echo|set/p=C:\Program Files\AdoptOpenJDK\jdk-18.0.1+10|clip
echo|set/p=^^^<project.build.sourceEncoding^^^>UTF-8^^^</project.build.sourceEncoding^^^>|clip

dir "%ECLIPSE_DIR%\p2"

Expand All @@ -20,11 +20,11 @@ IF NOT exist "%ECLIPSE_DIR%" (echo Eclipse installation missing: %ECLIPSE_DIR% &
IF NOT exist "%ECLIPSE_P2_CONFIG_ZIP%" (echo Backup of Eclipse p2/configuration missing: %ECLIPSE_P2_CONFIG_ZIP% && pause && exit 1)
IF NOT exist "%ECLIPSE_WORKSPACE%\.metadata" (echo Workspace missing: %ECLIPSE_WORKSPACE% && pause && exit 1)
IF NOT exist "%ECLIPSE_WORKSPACE_ZIP%" (echo Backup of workspace missing: %ECLIPSE_WORKSPACE_ZIP% && pause && exit 1)
IF NOT exist "%REPO_DIR%\.git" (echo Git repository missing: %REPO_DIR% && pause && exit 1)
::IF NOT exist "%REPO_DIR%\.git" (echo Git repository missing: %REPO_DIR% && pause && exit 1)

:: restore Git repository
rmdir /s /q "%REPO_DIR%"
"%UNZIP_7ZIP%" x "%REPO_ZIP%" "-o%REPO_DIR%\.."
::rmdir /s /q "%REPO_DIR%"
::"%UNZIP_7ZIP%" x "%REPO_ZIP%" "-o%REPO_DIR%\.."

:: reset Eclipse (restore "p2" and "configuration" subdirectories from ZIP)
rmdir /s /q "%ECLIPSE_DIR%\p2"
Expand Down
39 changes: 39 additions & 0 deletions sample_code/Eclipse 2022-09 Improvements/.classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" output="target/classes" path="src/main/java">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" output="target/test-classes" path="src/test/java">
<attributes>
<attribute name="test" value="true"/>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources">
<attributes>
<attribute name="test" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-17">
<attributes>
<attribute name="module" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="output" path="target/classes"/>
</classpath>
45 changes: 45 additions & 0 deletions sample_code/Eclipse 2022-09 Improvements/.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>Eclipse 2022-09 Improvements</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
</natures>
<linkedResources>
<link>
<name>JDK sources (65,486 files)/jdk-11.0.16.1+1</name>
<type>2</type>
<locationURI>PARENT-4-PROJECT_LOC/Program%20Files/Adoptium/jdk-11.0.16.1+1/lib/src</locationURI>
</link>
<link>
<name>JDK sources (65,486 files)/jdk-17.0.4.1+1</name>
<type>2</type>
<locationURI>PARENT-4-PROJECT_LOC/Program%20Files/Adoptium/jdk-17.0.4.1+1/lib/src</locationURI>
</link>
<link>
<name>JDK sources (65,486 files)/jdk-18.0.2.1+1</name>
<type>2</type>
<locationURI>PARENT-4-PROJECT_LOC/Program%20Files/Adoptium/jdk-18.0.2.1+1/lib/src</locationURI>
</link>
<link>
<name>JDK sources (65,486 files)/jdk8u345-b01</name>
<type>2</type>
<locationURI>PARENT-4-PROJECT_LOC/Program%20Files/Adoptium/jdk8u345-b01/src</locationURI>
</link>
</linkedResources>
</projectDescription>
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<launchConfiguration type="org.eclipse.ui.externaltools.ProgramLaunchConfigurationType">
<booleanAttribute key="org.eclipse.debug.core.ATTR_FORCE_SYSTEM_CONSOLE_ENCODING" value="false"/>
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_LOCATION" value="${workspace_loc:/Eclipse 2022-09 Improvements/hello_ANSI.bat}"/>
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_WORKING_DIRECTORY" value="${workspace_loc:/Eclipse 2022-09 Improvements}"/>
</launchConfiguration>
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
eclipse.preferences.version=1
org.eclipse.jdt.apt.aptEnabled=false
org.eclipse.jdt.apt.genSrcDir=target\\generated-sources\\annotations
org.eclipse.jdt.apt.genTestSrcDir=target\\generated-test-sources\\test-annotations
org.eclipse.jdt.apt.processorOptions/foo=bar
org.eclipse.jdt.apt.reconcileEnabled=true
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.targetPlatform=17
org.eclipse.jdt.core.compiler.compliance=17
org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore
org.eclipse.jdt.core.compiler.processAnnotations=disabled
org.eclipse.jdt.core.compiler.release=disabled
org.eclipse.jdt.core.compiler.source=17
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
activeProfiles=
eclipse.preferences.version=1
resolveWorkspaceProjects=true
version=1
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Unpack `src.zip` (Java 8) or `lib/src.zip` (Java 11, 17, 18) of the following
[Eclipse Temurin releases](https://adoptium.net/temurin/releases) here:

* jdk8u345-b01
* jdk-11.0.16.1+1
* jdk-17.0.4.1+1
* jdk-18.0.2.1+1
2 changes: 2 additions & 0 deletions sample_code/Eclipse 2022-09 Improvements/hello_ANSI.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@echo off
echo Hello ANSI!
77 changes: 77 additions & 0 deletions sample_code/Eclipse 2022-09 Improvements/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.example</groupId>
<artifactId>Eclipse_2022-09_Improvements</artifactId>
<version>0.0.1-SNAPSHOT</version>
<properties>

</properties>
<dependencies>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-jpamodelgen</artifactId>
<version>5.6.11.Final</version>
</dependency>
<dependency>
<groupId>org.hibernate.javax.persistence</groupId>
<artifactId>hibernate-jpa-2.0-api</artifactId>
<version>1.0.0.Final</version>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<version>5.9.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.platform</groupId>
<artifactId>junit-platform-suite</artifactId>
<version>1.9.0</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<defaultGoal>compile</defaultGoal>
<plugins>

<!-- maven-jar-plugin -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.2.2</version>
<configuration>
<archive>
<manifestEntries>
<key>value</key>
</manifestEntries>
</archive>
</configuration>
</plugin>

<!-- Java version and property for Java Annotation Processing -->
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>17</source>
<target>17</target>

<!-- Java Annotation Processing property: -Akey=value -->
<compilerArgument>-Afoo=bar</compilerArgument>

</configuration>
</plugin>

<!-- run JUnit tests -->
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.2</version>
</plugin>
<plugin>
<artifactId>maven-failsafe-plugin</artifactId>
<version>2.22.2</version>
</plugin>

</plugins>
</build>
</project>
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
package com.example;
class AnsiEscapeCodes {
private static final String ESCAPE = "\u001b[";
private static final String BOLD = ESCAPE + "1;";
Expand Down
Loading

0 comments on commit 271806a

Please sign in to comment.