public AboutParams(Manifest manifest) { super(); if (manifest != null) { Attributes attributes = manifest.getMainAttributes(); title = attributes.getValue("Implementation-Title"); source = attributes.getValue("Implementation-Vendor"); custom = getLabel("installation.details"); description = attributes.getValue("Description"); set("name", title); set("version", attributes.getValue("Implementation-Version")); } }
public AboutParams(Class<?> clazz) { super(); Package pkg = clazz.getPackage(); String name = clazz.getSimpleName(); title = pkg.getImplementationTitle(); title = StringUtils.isEmpty(title) ? name : title; source = pkg.getImplementationVendor(); set("name", name); set("pkg", pkg.getName()); set("version", pkg.getImplementationVersion()); }
public AboutParams(PluginDefinition def) { super(); title = def.getName(); source = def.getSource(); icon = def.getIcon(); description = def.getDescription(); set("name", def.getName()); set("version", def.getVersion()); set("creator", def.getCreator()); set("copyright", def.getCopyright()); set("release", def.getReleased()); }