Class SnippetizerLink
java.lang.Object
org.jenkinsci.plugins.workflow.cps.SnippetizerLink
- All Implemented Interfaces:
ExtensionPoint
- Direct Known Subclasses:
SnippetizerLink.ExamplesLink
,SnippetizerLink.GDSLLink
,SnippetizerLink.GeneratorLink
,SnippetizerLink.GlobalsReferenceLink
,SnippetizerLink.OnlineDocsLink
,SnippetizerLink.StepReferenceLink
A link that will show up on the side panel of the snippet generator and other similar pages.
Display order is determined by extension ordinal - highest ordinal first.
- Author:
- Andrew Bayer
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static class
static class
static class
static class
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract String
Get the display name for the link.final String
Get the actual URL to use in sidepanel.jelly.getIcon()
Get the icon information for the link.abstract String
getUrl()
Get the URL this link should point to, which will be used bygetDisplayUrl()
.boolean
Check whether the link should target a new window - this defaults to false;
-
Constructor Details
-
SnippetizerLink
public SnippetizerLink()
-
-
Method Details
-
getUrl
Get the URL this link should point to, which will be used bygetDisplayUrl()
. If this is not absolute,getDisplayUrl()
will link to this within the current context. -
getDisplayUrl
Get the actual URL to use in sidepanel.jelly. IfgetUrl()
is not absolute, this will try to get the current Job context and return a url starting with that job'sAbstractItem.getUrl()
appended withgetUrl()
. -
getIcon
Get the icon information for the link. -
getDisplayName
Get the display name for the link. -
inNewWindow
public boolean inNewWindow()Check whether the link should target a new window - this defaults to false;
-