Skip to content

Commit

Permalink
Eclipse 2022-03: Sample code, video links, etc.
Browse files Browse the repository at this point in the history
  • Loading branch information
howlger committed Mar 26, 2022
1 parent 8381e7a commit bdf378b
Show file tree
Hide file tree
Showing 17 changed files with 218 additions and 23 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
/narration_2*.odt
/_*.txt
/_sample_code/
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
[2019-06](https://github.com/howlger/Eclipse-IDE-improvements-videos/tree/2019-06)
</sup>

# +++ Work in progress (for March 16, 2022) +++<br> Eclipse IDE 2022-03 Improvements Video
# [Eclipse IDE 2022-03 Improvements Video](https://youtu.be/GnNnQY5ujFg)

* [March 16, 2022](https://calendar.google.com/calendar/event?eid=MG5na2VxbGIzdTYxcW80MGFjbzZ2bW9nbnAgZ2NoczdubTRudnBtODM3NDY5ZGRqOXRqbGtAZw&ctz=Europe/Berlin) ([calendar](https://calendar.google.com/calendar/embed?src=gchs7nm4nvpm837469ddj9tjlk@group.calendar.google.com&ctz=Europe/Berlin)) - [68 projects](https://projects.eclipse.org/releases/2022-03) ([-1 +0 → 68](projects_diff.txt)) - [wiki](https://wiki.eclipse.org/Category:SimRel-2022-03) - [website](https://eclipse.org/eclipseide/2022-03) ([New & Noteworthy](https://eclipse.org/eclipseide/2022-03/noteworthy)) - [splash screen](https://bugs.eclipse.org/bugs/show_bug.cgi?id=569333)
* Builds: [latest unreleased](https://download.eclipse.org/technology/epp/staging/)[released](https://download.eclipse.org/technology/epp/downloads/release/2022-03/) ([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-03), [release](http://download.eclipse.org/releases/2022-03))
Expand Down Expand Up @@ -54,7 +54,7 @@

### Features to show

* **Java**
* **Java [📽️](https://youtu.be/GnNnQY5ujFg?t=17)**
* [Java 18 support via Marketplace](https://marketplace.eclipse.org/content/java-18-support-eclipse-2022-03-423)
* Java editor:
* [New quick assist: _Add ... to static member favorites list_](https://www.eclipse.org/eclipse/news/4.23/jdt.php#save-to-static-favorites) to add a static import to preferences _Java > Editor > Content Assist > Favorites_
Expand Down Expand Up @@ -85,7 +85,7 @@
* [Speed up startup/shutdown by reducing `state.dat` file sizes](https://bugs.eclipse.org/bugs/show_bug.cgi?id=576646) (caching of Java model)
* [`CoreASTProvider.getAST()` - Reconciler freezes are sometimes just waits](https://bugs.eclipse.org/bugs/show_bug.cgi?id=575864)
* ...
* [Maven](https://github.com/eclipse-m2e/m2e-core/blob/master/RELEASE_NOTES.md#1200):
* [Maven](https://github.com/eclipse-m2e/m2e-core/blob/master/RELEASE_NOTES.md#1200) [📽️](https://youtu.be/GnNnQY5ujFg?t=370):
* [_Console_ view: improved linking](https://github.com/eclipse-m2e/m2e-core/blob/master/RELEASE_NOTES.md#improved-links-to-junit-test-reports-and-project-pomxml-in-the-console-of-a-maven-build)
* Project (project's headline or `Failed ... on <project>`): opens `pom.xml` of that project
* Test case (`Running <test>`): opens _JUnit_ view with test results
Expand All @@ -102,15 +102,15 @@
* ...
* (Performance improvements: [parent project resolution](https://github.com/eclipse-m2e/m2e-core/commit/ec12bd6222c377f93e21af0dc1988fba2134123d), [`workspaceReader`](https://github.com/eclipse/lemminx-maven/commit/18fb1e5c791435d44d9ce176145622d43556ec1d) and [more](https://github.com/eclipse/lemminx-maven/commit/256aad5056a9963b284a961971cb39ab543ae118))
* (Embedded Maven updated from 3.8.1 to 3.8.4)
* **General**
* **General [📽️](https://youtu.be/GnNnQY5ujFg?t=532)**
* [Large file associations](https://www.eclipse.org/eclipse/news/4.23/platform.php#large-file-associations): in preferences _General > Editors > Large File Associations_ can be specified which editor is used to open large files of a specific type
* ([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)))
* (UI):
* ([_Progress_ view: new jobs added on bottom](https://www.eclipse.org/eclipse/news/4.23/platform.php#ProgressStableSort) so long running jobs stay on top which makes it easier to hit the cancel button)
* ([Dark theme on Windows: natively styled buttons](https://www.eclipse.org/eclipse/news/4.23/platform.php#win32-dark-buttons-css))
* ([Debug: show values inline](https://www.eclipse.org/eclipse/news/4.23/platform.php#inline-debug-values) (not yet supported by JDT, Wild Web Developer, etc.))
* ([Performance](https://bugs.eclipse.org/bugs/buglist.cgi?classification=Eclipse%20Project&product=JDT&product=PDE&query_format=advanced&short_desc=performance&short_desc_type=allwordssubstr&target_milestone=4.23&target_milestone=4.23%20M1&target_milestone=4.23%20M2&target_milestone=4.23%20M3&target_milestone=4.23%20RC1&target_milestone=4.23%20RC2) (see also [changes by J&ouml;rg Kubitz](https://git.eclipse.org/r/q/owner:jkubitz-eclipse%2540gmx.de+status:merged)))
* **Git**
* **Git [📽️](https://youtu.be/GnNnQY5ujFg?t=619)**
* [_Fetch Gitea Pull Request..._](https://wiki.eclipse.org/EGit/New_and_Noteworthy/6.1#Fetching_Pull_Requests) (for [gitea.com](https://gitea.com) and as in the preferences _Version Control (Team) > Git > Servers_, e.g. [`codeberg.org`](https://codeberg.org))
* [_Git Repositories_ view: _Open in Commit Viewer_ also for branches and tags](https://wiki.eclipse.org/EGit/New_and_Noteworthy/6.1#Git_Repositories_View)
* _Git Staging_ view:
Expand Down
10 changes: 5 additions & 5 deletions intro_outro_thumbnail.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions projects_2021-12.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Eclipse Papyrus™ 6.0.0
Eclipse Parallel Tools Platform (PTP) 9.4.0
Eclipse Passage™ 2.2.0
Eclipse PHP Development Tools 7.2
Eclipse Project 4.22.0
Eclipse Project 4.22.0
Eclipse QVT Operational 2021-12 (3.10.5)
Eclipse QVTd™ (QVT Declarative) 2021-12 (0.28.0)
Eclipse RCP Testing Tool 2.5.1
Expand All @@ -60,7 +60,7 @@ Eclipse Target Management: Terminal and Remote System Explorer (RSE) 4.5.200
Eclipse TM4E™ - TextMate support in the Eclipse IDE 0.4.3
Eclipse Trace Compass™ 7.2.0
Eclipse User Storage Service SDK 1.2.2
Eclipse VIATRA 2.6.0
Eclipse VIATRA 2.6.0
Eclipse Web Tools Platform Project 3.24
Eclipse Wild Web Developer 0.13.1
Eclipse WindowBuilder 1.9.7
Expand Down
10 changes: 5 additions & 5 deletions projects_2022-03.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Eclipse Embedded CDT (C/C++ Development Tools) 6.1.2
Eclipse EMF Client Platform 1.26.1
Eclipse EMF Compare 3.3.10
Eclipse EMF Parsley 1.13.0
Eclipse EMF Services 1.13.0
Eclipse EMF Services 1.12.2
Eclipse EMF™ 2.28.0
Eclipse Extended Editing Framework (EEF) 2.1.5
Eclipse GMF Runtime™ 1.14.1
Expand All @@ -29,7 +29,7 @@ Eclipse Linux Tools 8.6.0
Eclipse LSP4E 0.20.2
Eclipse LSP4J 0.12.0
Eclipse Marketplace Client 1.9.3
Eclipse Maven Integration - m2eclipse™ 1.20.0
Eclipse Maven Integration - m2eclipse™ 1.20.1
Eclipse Maven Integration for Web Tools Platform 1.4.3
Eclipse MDT UML2 5.5.2
Eclipse MDT XSD™ (XML Schema Definition) 2.28.0
Expand All @@ -45,7 +45,7 @@ Eclipse Papyrus™ 6.1.0
Eclipse Parallel Tools Platform (PTP) 9.4.0
Eclipse Passage™ 2.3.0
Eclipse PHP Development Tools 7.2.1
Eclipse Project 4.23.0
Eclipse Project 4.23.0
Eclipse QVT Operational 2022-03 (3.10.6)
Eclipse QVTd™ (QVT Declarative) 2022-03 (0.28.1)
Eclipse RCP Testing Tool 2.5.1
Expand All @@ -59,9 +59,9 @@ Eclipse Target Management: Terminal and Remote System Explorer (RSE) 4.5.200
Eclipse TM4E™ - TextMate support in the Eclipse IDE 0.4.3
Eclipse Trace Compass™ 7.3.0
Eclipse User Storage Service SDK 1.2.2
Eclipse VIATRA 2.7.0
Eclipse VIATRA 2.7.0
Eclipse Web Tools Platform Project 3.25
Eclipse Wild Web Developer 0.13.2
Eclipse Wild Web Developer 0.13.3
Eclipse WindowBuilder 1.9.7
Eclipse Xpand 2.2.0
Eclipse Xtext™ 2.26.0
Expand Down
9 changes: 5 additions & 4 deletions reset_workspace_and_installation.bat
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
set IDE=jee-2021-12
set IDE=java-2022-03
set REPO=sample

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

:: only for Eclipse 2021-12
rmdir /s /q "%REPO_DIR%\..\ide-wg.eclipse.org"
rmdir /s /q "%REPO_DIR%\..\wildwebdeveloper"
:: only for Eclipse 2022-03
rmdir /s /q "%REPO_DIR%\..\tea"
rmdir /s /q "%REPO_DIR%\..\teddit"
rmdir /s /q "%REPO_DIR%\..\mirror"

dir "%ECLIPSE_DIR%\p2"

Expand Down
38 changes: 38 additions & 0 deletions sample_code/Eclipse 2022-03 Improvements/.classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<?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="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
<attribute name="test" value="true"/>
</attributes>
</classpathentry>
<classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources">
<attributes>
<attribute name="maven.pomderived" value="true"/>
<attribute name="test" 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="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>
23 changes: 23 additions & 0 deletions sample_code/Eclipse 2022-03 Improvements/.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>Eclipse 2022-03 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>
</projectDescription>
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
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.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 @@
As `large.xml` use `content.xml` from the [`https://download.eclipse.org/releases/2022-03/202203161000/content.jar`](https://download.eclipse.org/releases/2022-03/202203161000/content.jar) ZIP archive
46 changes: 46 additions & 0 deletions sample_code/Eclipse 2022-03 Improvements/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<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-03</artifactId>
<version>0.0.1-SNAPSHOT</version>

<properties>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<junit-version>5.8.1</junit-version>
</properties>

<dependencies>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<version>${junit-version}</version>
<scope>test</scope>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<!--
<compilerArgs>
<arg>- -add-exports</arg>
<arg>java.base/jdk.internal.misc=ALL-UNNAMED</arg>
</compilerArgs>
-->
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.2</version>
</plugin>
</plugins>
</build>

</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import static java.lang.Integer.valueOf;
import static java.util.Arrays.stream;

class Countdown {

Integer state;

Countdown() {

stream(new Integer[]{ 3, 2, 1 }).forEach(i -> {
state = i;
System.out.println(state);
});

}

public static void main(String[] args) {
new Countdown();
System.out.println("1 + 1 = " + valueOf(2));
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
class Other {
void foo() {



}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

public class Util {

public static boolean isSetUID() {
return false;
// return jdk.internal.misc.VM.isSetUID();
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import static org.junit.jupiter.api.Assertions.assertEquals;

import java.io.ByteArrayOutputStream;
import java.io.PrintStream;

import org.junit.jupiter.api.Test;

class CountdownTest {

@Test
void testOutput() {
var log = new ByteArrayOutputStream();
System.setOut(new PrintStream(log));
new Countdown();
var expected = """
3
2
1
0
""".replace("\n", System.lineSeparator());
assertEquals(expected, new String(log.toByteArray()));
}

}
13 changes: 11 additions & 2 deletions storyboard.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ Set-up:
- Perspectives: Java, Git
- Enable "Link with editor"
- Show keys
- Hide right side view stacks

(- Hide right side view stacks)

Git:
Use "main" as default branch
Expand All @@ -14,3 +13,13 @@ Add to config:
[user]
name = Jane
email = jane@example.com

To type:
--add-exports
java.base/jdk.internal.misc=ALL_UNNAMED

branch.origin.pushRemote
branch.origin.merge

remote.pushDefault=mirror
push.default=matching

0 comments on commit bdf378b

Please sign in to comment.