-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Eclipse 2022-09: Sample code; other final updates
- Loading branch information
Showing
26 changed files
with
366 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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)) | ||
|
@@ -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: | ||
|
@@ -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) | ||
|
@@ -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))) | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
6 changes: 6 additions & 0 deletions
6
sample_code/Eclipse 2022-09 Improvements/.settings/hello_ANSI.bat.launch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
6 changes: 6 additions & 0 deletions
6
sample_code/Eclipse 2022-09 Improvements/.settings/org.eclipse.jdt.apt.core.prefs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
9 changes: 9 additions & 0 deletions
9
sample_code/Eclipse 2022-09 Improvements/.settings/org.eclipse.jdt.core.prefs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
4 changes: 4 additions & 0 deletions
4
sample_code/Eclipse 2022-09 Improvements/.settings/org.eclipse.m2e.core.prefs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
activeProfiles= | ||
eclipse.preferences.version=1 | ||
resolveWorkspaceProjects=true | ||
version=1 |
7 changes: 7 additions & 0 deletions
7
sample_code/Eclipse 2022-09 Improvements/JDK sources (65,486 files)/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
@echo off | ||
echo [4mHe[3mll[1mo[m [1;47mA[1;103mN[1;46mS[1;102mI[m[1;31m![m |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
1 change: 1 addition & 0 deletions
1
sample_code/AnsiConsole.java → ...ain/java/com/example/AnsiEscapeCodes.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.