Skip to main content

Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Java9/Examples"

(Created page with "This is an informal page listing out examples of features that are implemented for Java 9. You are welcome to try out these examples. If bugs are found please check https://...")
 
m
Line 5: Line 5:
 
|+ style="text-align: left;" | List of Java 9 Features>
 
|+ style="text-align: left;" | List of Java 9 Features>
 
! scope="row" style="width: 15%;" | Sub Feature
 
! scope="row" style="width: 15%;" | Sub Feature
! style="width: 60%;" | Try It Out Steps
+
! style="width: 60%;" | Feature Title / Try It Out Steps
 
! style="width: 25%;" | Expected Result
 
! style="width: 25%;" | Expected Result
 
|-
 
|-
Line 14: Line 14:
 
|-
 
|-
 
! scope="row" | Project JRE
 
! scope="row" | Project JRE
| Use Project Context Menu and add Java 9 JRE  || JRE specific (eg Object) gets resolved in the project.
+
| In Package Explorer Use Project Context Menu and add Java 9 JRE  || JRE specific (eg Object) gets resolved in the project.
 
|-
 
|-
 
! scope="row" | Package Explorer
 
! scope="row" | Package Explorer
| Go to Package Explorer and expand the Java 9 JRE || Modules (eg java.base etc) are listed in the project explorer view
+
| Go to Package Explorer and expand the Java 9 JRE || Modules (eg java.base etc) are listed in the package explorer view
 
|-
 
|-
 
! colspan="3" | Module Creation
 
! colspan="3" | Module Creation
Line 26: Line 26:
 
! scope="row" | Automatic
 
! scope="row" | Automatic
 
| Context Menu of Project -> Cofigure -> Create module-info.  || A default module-info.java with all packages exported should be created
 
| Context Menu of Project -> Cofigure -> Create module-info.  || A default module-info.java with all packages exported should be created
 +
|-
 +
! colspan="3" | Completion in module-info.java file
 +
|-
 +
! scope="row" | Keyword Completion
 +
| In a module-info.java file, after module module_name {, press completion key (for eg, ctrl+space in windows)  || keywords exports, opens, requires, provides and uses shown
 +
|-
 +
! scope="row" | Keyword Completion - 2
 +
| after exports packagename, or opens packagename press completion key  || keyword to is shown as an option
 +
|-
 +
! scope="row" | Package Completion
 +
| after exports, opens, provides or uses, press completion key  || package completion shown.
 +
|-
 +
! scope="row" | Type Reference Completion
 +
| after exports, opens, provides or uses, or optionally after a dot after a package, ie exports packagename. press completion key  || Type completion shown.
 +
|-
 +
! scope="row" | Implementation TypeRef Completion
 +
| after provides Typename with press completion key  || Type completion shown and these typereferences are implmentations of the type given before with.
 +
|-
 +
! colspan="3" | Search in module-info.java file
 +
|-
 +
! scope="row" | Keyword Completion
 +
| In a module-info.java file, after module module_name {, press completion key (for eg, ctrl+space in windows)  || keywords exports, opens, requires, provides and uses shown
 +
|-
 +
! scope="row" | Keyword Completion - 2
 +
| after exports packagename, or opens packagename press completion key  || keyword to is shown as an option
 +
|-
 +
! scope="row" | Package Completion
 +
| after exports, opens, provides or uses, press completion key  || package completion shown.
 +
|-
 +
! scope="row" | Type Reference Completion
 +
| after exports, opens, provides or uses, or optionally after a dot after a package, ie exports packagename. press completion key  || Type completion shown.
 +
|-
 +
! scope="row" | Implementation TypeRef Completion
 +
| after provides Typename with press completion key  || Type completion shown and these typereferences are implmentations of the type given before with.
 
|}
 
|}

Revision as of 01:09, 28 June 2017

This is an informal page listing out examples of features that are implemented for Java 9. You are welcome to try out these examples. If bugs are found please check [here] for duplicates first and if not found, please file a bug.


List of Java 9 Features>
Sub Feature Feature Title / Try It Out Steps Expected Result
Java 9 JRE Support
Add Java 9 Use Eclipse Preferences -> Java -> Installed JREs -> Add Java 9 JRE recognized as a valid JRE
Project JRE In Package Explorer Use Project Context Menu and add Java 9 JRE JRE specific (eg Object) gets resolved in the project.
Package Explorer Go to Package Explorer and expand the Java 9 JRE Modules (eg java.base etc) are listed in the package explorer view
Module Creation
Manual Context Menu of src -> New -> File - give the module-info.java as name no compiler errors
Automatic Context Menu of Project -> Cofigure -> Create module-info. A default module-info.java with all packages exported should be created
Completion in module-info.java file
Keyword Completion In a module-info.java file, after module module_name {, press completion key (for eg, ctrl+space in windows) keywords exports, opens, requires, provides and uses shown
Keyword Completion - 2 after exports packagename, or opens packagename press completion key keyword to is shown as an option
Package Completion after exports, opens, provides or uses, press completion key package completion shown.
Type Reference Completion after exports, opens, provides or uses, or optionally after a dot after a package, ie exports packagename. press completion key Type completion shown.
Implementation TypeRef Completion after provides Typename with press completion key Type completion shown and these typereferences are implmentations of the type given before with.
Search in module-info.java file
Keyword Completion In a module-info.java file, after module module_name {, press completion key (for eg, ctrl+space in windows) keywords exports, opens, requires, provides and uses shown
Keyword Completion - 2 after exports packagename, or opens packagename press completion key keyword to is shown as an option
Package Completion after exports, opens, provides or uses, press completion key package completion shown.
Type Reference Completion after exports, opens, provides or uses, or optionally after a dot after a package, ie exports packagename. press completion key Type completion shown.
Implementation TypeRef Completion after provides Typename with press completion key Type completion shown and these typereferences are implmentations of the type given before with.

Back to the top