diff --git a/plug-in-development/index.html b/plug-in-development/index.html index 6fe9765..7c65a81 100644 --- a/plug-in-development/index.html +++ b/plug-in-development/index.html @@ -258,7 +258,7 @@ class JavaBuildGenerator: IInitContributor {

Selection process

- Several plug-ins might want to contribute to a specific task where only one participant only should be allowed, + Several plug-ins might want to contribute to a specific task where only one participant should be allowed, such as running tests or generating documentation. Even the simple task of compiling should probably only ever be performed by no more than one plug-in for a given project. Therefore, when comes the time to compile a project, @@ -267,7 +267,7 @@ class JavaBuildGenerator: IInitContributor { affinity to that task for a given project.

- Contributors that need to be selected all need to implement the following interface: + Contributors that want to participate in a selection process need to implement the following interface:

 interface IProjectAffinity {
@@ -278,7 +278,7 @@ interface IProjectAffinity {
     fun affinity(project: Project, context: KobaltContext) : Int
 }

- For example, the JavaPlugin implements the ICompilerContributor interface and then overrides + For example, the JavaPlugin implements the ICompilerContributor interface and then overrides the affinity() method to make sure it gets run for Java projects but ignored for others: