From 680c54887ba9c847fcb992196dc375d5a7a86588 Mon Sep 17 00:00:00 2001 From: Dominique Date: Tue, 16 Sep 2014 21:12:59 -0400 Subject: [PATCH] Updating javadoc based on PR feedback --- core/src/main/java/hudson/Plugin.java | 5 ++++- .../java/hudson/model/labels/LabelAtomProperty.java | 12 +----------- .../model/labels/LabelAtomPropertyDescriptor.java | 5 +++++ 3 files changed, 10 insertions(+), 12 deletions(-) diff --git a/core/src/main/java/hudson/Plugin.java b/core/src/main/java/hudson/Plugin.java index 0c08ecb35b..e2a061fbda 100644 --- a/core/src/main/java/hudson/Plugin.java +++ b/core/src/main/java/hudson/Plugin.java @@ -48,7 +48,10 @@ import com.thoughtworks.xstream.XStream; * Base class of Hudson plugin. * *

- * A plugin may derive from this class. + * A plugin may derive from this class, or it may directly define extension + * points annotated with {@link hudson.Extension}. For a list of extension + * points, see + * https://wiki.jenkins-ci.org/display/JENKINS/Extension+points. * *

* One instance of a plugin is created by Hudson, and used as the entry point diff --git a/core/src/main/java/hudson/model/labels/LabelAtomProperty.java b/core/src/main/java/hudson/model/labels/LabelAtomProperty.java index 41a1d7189b..efaad2ab77 100644 --- a/core/src/main/java/hudson/model/labels/LabelAtomProperty.java +++ b/core/src/main/java/hudson/model/labels/LabelAtomProperty.java @@ -40,19 +40,9 @@ import java.util.Collections; * Plugins can contribute this extension point to add additional data or UI actions to {@link LabelAtom}. * {@link LabelAtomProperty}s show up in the configuration screen of a label, and they are persisted * with the {@link LabelAtom} object. - * - *

Implementation hints

- * * * @author Kohsuke Kawaguchi + * @see hudson.model.labels.LabelAtomPropertyDescriptor * @since 1.373 */ @ExportedBean diff --git a/core/src/main/java/hudson/model/labels/LabelAtomPropertyDescriptor.java b/core/src/main/java/hudson/model/labels/LabelAtomPropertyDescriptor.java index 43724c73c4..82312097dc 100644 --- a/core/src/main/java/hudson/model/labels/LabelAtomPropertyDescriptor.java +++ b/core/src/main/java/hudson/model/labels/LabelAtomPropertyDescriptor.java @@ -31,6 +31,11 @@ import hudson.model.Descriptor; * *

* Put {@link Extension} on your descriptor implementation to have it auto-registered. + * + *

+ * When extending this class, override Descriptor.getDisplayName(). In the + * context of LabelAtomPropertyDescriptor, this function is used to determine the label of + * the checkbox shown in the label's configuration page to activate the extension. * * @author Kohsuke Kawaguchi * @since 1.373 -- GitLab