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 SummaryNested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic classstatic classstatic classNested classes/interfaces inherited from interface hudson.ExtensionPointExtensionPoint.LegacyInstancesAreScopedToHudson
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionabstract StringGet the display name for the link.final StringGet the actual URL to use in sidepanel.jelly.getIcon()Get the icon information for the link.abstract StringgetUrl()Get the URL this link should point to, which will be used bygetDisplayUrl().booleanCheck whether the link should target a new window - this defaults to false;
- 
Constructor Details- 
SnippetizerLinkpublic SnippetizerLink()
 
- 
- 
Method Details- 
getUrlGet 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.
- 
getDisplayUrlGet 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().
- 
getIconGet the icon information for the link.
- 
getDisplayNameGet the display name for the link.
- 
inNewWindowpublic boolean inNewWindow()Check whether the link should target a new window - this defaults to false;
 
-