Update formatting of Condition type (#252)

This commit is contained in:
Pieter De Clercq 2020-02-19 11:16:16 +01:00 committed by GitHub
parent 771d235144
commit 7b47a22bad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,7 +34,7 @@ When the user clicks on the tool window button, the `createToolWindowContent()`
This procedure ensures that unused tool windows don't cause any overhead in startup time or memory usage: if a user does not interact with the tool window of your plugin, no plugin code will be loaded or executed.
If the tool window of your plugin doesn't need to be displayed for all projects, you can also specify the *conditionClass* attribute - the qualified name of a class implementing the
[`Condition\<Project\>`](upsource:///platform/util-rt/src/com/intellij/openapi/util/Condition.java)
[`Condition<Project>`](upsource:///platform/util-rt/src/com/intellij/openapi/util/Condition.java)
interface (this can be the same class as the tool window factory implementation).
If the condition returns `false`, the tool window will not be displayed.
Note that the condition is evaluated only once when the project is loaded;