/** * {@inheritDoc} * * Users use this name to enable/disable annotations. */ @Override public String getDisplayName() { return super.getDisplayName(); }
/** * Returns the human-readable name of this type of view. Used * in the view creation screen. The string should look like * "Abc Def Ghi". */ @Override public String getDisplayName() { return super.getDisplayName(); }
/** * {@inheritDoc} * * <p> * Used as the caption when the user chooses what item type to create. * The descriptor implementation also needs to have {@code newInstanceDetail.jelly} * script, which will be used to render the text below the caption * that explains the item type. */ @Override public String getDisplayName() { return super.getDisplayName(); }
@Override public String getDisplayName() { return getDescriptor().getDisplayName(); }
/** * Sort {@link ExtensionComponent}s in the descending order of {@link #ordinal()}. */ public int compareTo(ExtensionComponent<T> that) { double a = this.ordinal(); double b = that.ordinal(); if (a>b) return -1; if (a<b) return 1; // make the order bit more deterministic among extensions of the same ordinal if (this.instance instanceof Descriptor && that.instance instanceof Descriptor) { try { return Util.fixNull(((Descriptor)this.instance).getDisplayName()).compareTo(Util.fixNull(((Descriptor)that.instance).getDisplayName())); } catch (RuntimeException x) { LOG.log(Level.WARNING, null, x); } catch (LinkageError x) { LOG.log(Level.WARNING, null, x); } } return this.instance.getClass().getName().compareTo(that.instance.getClass().getName()); } }
/** * Returns the name of the column that explains what this column means * * @return * The convention is to use capitalization like "Foo Bar Zot". */ @Exported public String getColumnCaption() { return getDescriptor().getDisplayName(); }
@Initializer(after=EXTENSIONS_AUGMENTED) public void verify() { Jenkins h = Jenkins.getInstance(); for (Descriptor d : h.getExtensionList(Descriptor.class)) { PluginWrapper p = h.getPluginManager().whichPlugin(d.getClass()); String id; try { id = d.getId(); } catch (Throwable t) { LOGGER.log(Level.SEVERE,MessageFormat.format("Descriptor {0} from plugin {1} with display name {2} reported an exception for ID", d, p == null ? "???" : p.getLongName(), d.getDisplayName()),t); problems.add(d); continue; } if (id==null) { LOGGER.severe(MessageFormat.format("Descriptor {0} from plugin {1} with display name {2} has null ID", d, p==null?"???":p.getLongName(), d.getDisplayName())); problems.add(d); } } }
public boolean perform(BuildStep bs, AbstractBuild build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException { CheckPoint cp = new CheckPoint(bs.getClass().getName(),bs.getClass()); if (bs instanceof Describable) { cp.block(listener, ((Describable) bs).getDescriptor().getDisplayName()); } else { cp.block(); } try { return bs.perform(build,launcher,listener); } finally { cp.report(); } } },
public String getDisplayName() { final Descriptor descriptor = getDescriptor(); return descriptor != null ? descriptor.getDisplayName() : getName(); } }
@Override public String getDisplayName() { return Jenkins.getInstance().getDescriptorOrDie(Unsecured.class).getDisplayName(); }
public boolean perform(BuildStep bs, AbstractBuild build, Launcher launcher, BuildListener listener) throws IOException, InterruptedException { if (bs instanceof Describable) { CheckPoint.COMPLETED.block(listener, ((Describable) bs).getDescriptor().getDisplayName()); } else { CheckPoint.COMPLETED.block(); } return bs.perform(build,launcher,listener); } };
/** * Returns the human-readable name of this type of view. Used * in the view creation screen. The string should look like * "Abc Def Ghi". */ @Override public String getDisplayName() { return super.getDisplayName(); }
/** * {@inheritDoc} * * Users use this name to enable/disable annotations. */ @Override public String getDisplayName() { return super.getDisplayName(); }
/** * Corresponds to {@link Descriptor#getDisplayName} where available. */ public String getDisplayName() { for (Descriptor<?> d : getDescriptorList()) { if (d.clazz == type) { return d.getDisplayName(); } } return type.getSimpleName(); }
/** * {@inheritDoc} */ @Override public String getDisplayName() { return getDescriptor().getDisplayName(); }
public String getDisplayName() { final Descriptor descriptor = getDescriptor(); return descriptor != null ? descriptor.getDisplayName() : getName(); } }
/** * Returns the name of the column that explains what this column means * * @return * The convention is to use capitalization like "Foo Bar Zot". */ @Exported public String getColumnCaption() { return getDescriptor().getDisplayName(); }
/** * Returns the name of the column that explains what this column means * * @return The convention is to use capitalization like "Foo Bar Zot". */ @Exported public String getColumnCaption() { return getDescriptor().getDisplayName(); }
/** * Returns the name of the column that explains what this column means * * @return * The convention is to use capitalization like "Foo Bar Zot". */ @Exported public String getColumnCaption() { return getDescriptor().getDisplayName(); }
public boolean perform(BuildStep bs, AbstractBuild build, Launcher launcher, BuildListener listener) throws IOException, InterruptedException { if (bs instanceof Describable) { CheckPoint.COMPLETED.block(listener, ((Describable) bs).getDescriptor().getDisplayName()); } else { CheckPoint.COMPLETED.block(); } return bs.perform(build,launcher,listener); } };