IntelliJ IDEA 2017.2 Help

Language Injection Settings dialog: Java Parameter

File | Settings | Language Injection - Java Parameter
Ctrl+Alt+S
/help/img/idea/2017.2/settings.png

The dialog box opens when you click add.png on the Language Injections page, and choose Java Parameter on the context menu, or select an entry and click properties.gif.

Use this dialog box to configure language injections for Java parameters. The dialog box provides the ability to make use of IntelliLang's features, if, for any reason, the injection annotations cannot be used. This mainly applies to configuring third party/library methods as well as projects that still have to use Java 1.4.

ItemDescription
LanguageIn this area, specify the language to inject and the injection context.
  • ID - from this drop-down list, select the ID of the language to inject.
  • Prefix - in this text box, specify a prefix to make up the injection context.
  • Suffix - in this text box, specify a suffix to make up the injection context.

Note that the Prefix and Suffix fields are optional.

Class MethodsClick browseButton.png and select the class of interest. As a result, the methods of the class along with their parameters are shown.

Select the parameters for which you want to enable the injection.

Advanced Specify additional settings.
  • Value pattern - type a regular expression for the injection context.
    • Single file - If the option is off, the fragments that match the value pattern are treated separately, as different "files" - e.g. from the fragment editor's viewpoint.
      If the option is on, the corresponding fragments are all merged together to form a single unit, or "file".
      Given the value pattern
      xxx (.+) yyy (.+) zzz
      and the fragment
      xxx select * yyy from family zzz,
      select * and from family are treated as two independent fragments (or "files") if the option is off. If the option is on, select * from family is treated as a single unit or "file".
Last modified: 26 October 2017

See Also