![]() ![]() You can now convert a project with compliance set to Java 8 or below to a modular project by selecting the Create module-info.java action from the context menu on the project. For example, when too many characters are used as triggers for auto activation of code assist.Ĭonvert Java 8 (or below) project to modular project Here, the proposal can be inserted by pressing Enter.ĭisabling insertion triggers is usually convenient to avoid insertion of undesired proposals when the content assist pop-up is shown too often. When this preference is selected, the pre-defined trigger characters to insert a completion proposal will be ignored while typing. This can be disabled in Preferences > Java > Compiler > Building or in the corresponding project specific settings.Ī quick fix Configure problem severity that opens this settings page is now offered for configurable build path problems reported in the problems view.Ī new option Disable insertion triggers except 'Enter' has been added to the Preferences > Java > Editor > Content-Assist page. If a project which only has main source folders depends on a project which only has test source folders, a build path error is now reported. ![]() The module-info.java file now offers a new template for the creation of a module declaration. When you select the highlighted option, the local variable type will be of type var. ![]() This option is only available if the project compliance is Java 10 or above. When extracting to a local variable, an option to declare the local variable type as var has been provided. Quick assist to remove lambda parameter typesĪ new quick assist is provided that allows you to remove lambda parameter types. This is implemented using the Code Mining extension-point. The reference count includes the implementation count.Ĭlicking on references launches the search for references:Ĭlicking on implementations opens the Type Hierarchy view: This feature can be enabled in Preferences > Java > Editor > Code Minings: Java editor can now show the number of implementations and references for a Java element as decorative text (Code Minings) above the element. Quick assist to replace 'var' in lambda parameter types with inferred typesĪ new quick assist is provided that allows you to replace var with inferred lambda parameter types. Quick assist to replace lambda parameter types with 'var'Ī new quick assist is provided that allows you to replace lambda parameter types with var. This quick assist is only available if the project compliance is Java 11 or above. Quick assist to add 'var' type to lambda parametersĪ new quick assist is provided that allows you to add var type to lambda parameters. ![]() Quick fix to change project compliance and JRE to 11Ī quick fix Change project compliance and JRE to 11 is provided to quickly change the current project to be compatible with Java 11. It can also be added from the Package Explorer using the project's context menu.Īn option to set compiler compliance to 11 on a Java project is also provided. It can be added from the Window > Preferences > Java > Installed JREs > Add.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |