IntelliJ IDEA 13.1 Web Help

File | Settings | Project Settings | Language Injection - Java Parameter

settings

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

Use this dialog box to configure language Java Parameter Injections. 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.

Item Description
Language In 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

The Prefix and Suffix fields are optional.

Class Name In this text box, type the desired class name, possibly using code completion. If necessary, use the Browse button browseButton.png to open the Select Class dialog box, where you can you can locate the desired class in the project tree view. Alternatively, switch to the Search by Name tab and start typing the class name. As you type, the list of available classes narrows down to match your entry.
Parameters The list box displays the methods of the class specified in the Class Name area with their parameters. To have the selected language injected into arguments passed for a parameter, select the check box next to it.

Tip

Only parameters of the String type can be selected.

Advanced In this area, specify additional settings to enable more fine-grained control over the injection process.
  • Value Pattern - in this text box, type a regular expression that determines where to inject the language into.
  • Single File - select this check box to specify an exact file to apply the injection to.

See Also

Concepts:

Reference:

External Links:

Web Resources: