public abstract class SnippetizerLink extends Object implements ExtensionPoint
Modifier and Type | Class and Description |
---|---|
static class |
SnippetizerLink.ExamplesLink |
static class |
SnippetizerLink.GDSLLink |
static class |
SnippetizerLink.GeneratorLink |
static class |
SnippetizerLink.GlobalsReferenceLink |
static class |
SnippetizerLink.OnlineDocsLink |
static class |
SnippetizerLink.StepReferenceLink |
ExtensionPoint.LegacyInstancesAreScopedToHudson
Constructor and Description |
---|
SnippetizerLink() |
Modifier and Type | Method and Description |
---|---|
abstract String |
getDisplayName()
Get the display name for the link.
|
String |
getDisplayUrl()
Get the actual URL to use in sidepanel.jelly.
|
String |
getIcon()
Get the icon information for the link.
|
abstract String |
getUrl()
Get the URL this link should point to, which will be used by
getDisplayUrl() . |
boolean |
inNewWindow()
Check whether the link should target a new window - this defaults to false;
|
@Nonnull public abstract String getUrl()
getDisplayUrl()
. If this is not absolute,
getDisplayUrl()
will link to this within the current context.@Nonnull public final String getDisplayUrl()
getUrl()
is not absolute, this will try to get the
current Job context and return a url starting with that job's AbstractItem.getUrl()
appended with getUrl()
.public boolean inNewWindow()
Copyright © 2016–2020. All rights reserved.