Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
jenkins
提交
680c5488
J
jenkins
项目概览
xxadev
/
jenkins
与 Fork 源项目一致
从无法访问的项目Fork
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
J
jenkins
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
680c5488
编写于
9月 16, 2014
作者:
D
Dominique
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Updating javadoc based on PR feedback
上级
259f5e17
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
10 addition
and
12 deletion
+10
-12
core/src/main/java/hudson/Plugin.java
core/src/main/java/hudson/Plugin.java
+4
-1
core/src/main/java/hudson/model/labels/LabelAtomProperty.java
.../src/main/java/hudson/model/labels/LabelAtomProperty.java
+1
-11
core/src/main/java/hudson/model/labels/LabelAtomPropertyDescriptor.java
...java/hudson/model/labels/LabelAtomPropertyDescriptor.java
+5
-0
未找到文件。
core/src/main/java/hudson/Plugin.java
浏览文件 @
680c5488
...
@@ -48,7 +48,10 @@ import com.thoughtworks.xstream.XStream;
...
@@ -48,7 +48,10 @@ import com.thoughtworks.xstream.XStream;
* Base class of Hudson plugin.
* Base class of Hudson plugin.
*
*
* <p>
* <p>
* 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 <a href="https://wiki.jenkins-ci.org/display/JENKINS/Extension+points">
* https://wiki.jenkins-ci.org/display/JENKINS/Extension+points</a>.
*
*
* <p>
* <p>
* One instance of a plugin is created by Hudson, and used as the entry point
* One instance of a plugin is created by Hudson, and used as the entry point
...
...
core/src/main/java/hudson/model/labels/LabelAtomProperty.java
浏览文件 @
680c5488
...
@@ -40,19 +40,9 @@ import java.util.Collections;
...
@@ -40,19 +40,9 @@ import java.util.Collections;
* Plugins can contribute this extension point to add additional data or UI actions to {@link LabelAtom}.
* 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
* {@link LabelAtomProperty}s show up in the configuration screen of a label, and they are persisted
* with the {@link LabelAtom} object.
* with the {@link LabelAtom} object.
*
* <h2>Implementation hints</h2>
* <ul>
* <li>extend this class and define a static inner class extending {@link hudson.model.labels.LabelAtomPropertyDescriptor}</li>
* <li>in the inner class override <code>getDisplayName()</code>. This function returns the name of the option shown in the label
* configuration page to activate your extension</li>
* <li>if you need additional parameters in this page when activating your extension, provide a <tt>config.jelly</tt> file</li>
* <li>when the user saves the label configuration page with your extension activated, Jenkins calls the corresponding
* {@link org.kohsuke.stapler.DataBoundConstructor}-annotated constructor in your LabelAtomProperty subclass</li>
* <li>override the <code>getActions()</code> function to return your additional {@link hudson.model.Action}(s)</li>
* </ul>
*
*
* @author Kohsuke Kawaguchi
* @author Kohsuke Kawaguchi
* @see hudson.model.labels.LabelAtomPropertyDescriptor
* @since 1.373
* @since 1.373
*/
*/
@ExportedBean
@ExportedBean
...
...
core/src/main/java/hudson/model/labels/LabelAtomPropertyDescriptor.java
浏览文件 @
680c5488
...
@@ -31,6 +31,11 @@ import hudson.model.Descriptor;
...
@@ -31,6 +31,11 @@ import hudson.model.Descriptor;
*
*
* <p>
* <p>
* Put {@link Extension} on your descriptor implementation to have it auto-registered.
* Put {@link Extension} on your descriptor implementation to have it auto-registered.
*
* <p>
* When extending this class, override <code>Descriptor.getDisplayName()</code>. 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
* @author Kohsuke Kawaguchi
* @since 1.373
* @since 1.373
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录