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")); } }
for (Entry<String, String> entry : aboutParams.entrySet()) { Row row = new Row(); row.addChild(new Cell(entry.getKey()));
/** * Display an about dialog for the specified plugin definition. * * @param def Plugin definition whose attributes are to be displayed. */ public static void execute(PluginDefinition def) { showDialog(new AboutParams(def)); }
/** * Display an about dialog for the specified manifest. * * @param manifest Manifest whose attributes are to be displayed. */ public static void execute(Manifest manifest) { showDialog(new AboutParams(manifest)); }
/** * Display an about dialog for the specified class. * * @param clazz Class whose attributes are to be displayed. */ public static void execute(Class<?> clazz) { showDialog(new AboutParams(clazz)); }
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()); }
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()); }