diff --git a/core/src/main/java/hudson/Plugin.java b/core/src/main/java/hudson/Plugin.java index 0c08ecb35be4ed00f7425f5e7d19f37d7365480f..e2a061fbda6791bfd97679e95daa84117e0aba54 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 41a1d7189bb5e831682adf12238dc2a506ca2da5..efaad2ab777167dba9e0a5fbc5a48e992150fa00 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 43724c73c4e37c65252e16c23fe0691f4f7b2fbd..82312097dcca7bbba0e78b72189c2ea737b00406 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