* This is used by SAMP or PLASTIC.
*
* @return metadata describing this application
*/
protected Metadata createApplicationMetadata() {
Metadata meta = new Metadata();
meta.setName("JSkyCat");
meta.setDescriptionText("JSkyCat - Astronomical Image and Catalog Browser");
meta.put("author.name", "Allan Brighton");
meta.put("author.mail", "Allan.Brighton@t-online.de");
// use the built-in web server to host the icon, or if there is an error, use a default URL
String defUrl = "http://java.sun.com/developer/techDocs/hi/repository/graphicsRepository/toolbarButtonGraphics/development/WebComponent24.gif";
try {
JSkyServer server = JSkyServer.getInstance();
URL packageUrl = server.getJSkyPackageUrl();
URL logoUrl = new URL(packageUrl, "images/ImageDisplay24.gif");
meta.setIconUrl(server.isFound(logoUrl)
? logoUrl.toString()
: defUrl);
} catch (IOException e) {
e.printStackTrace();
meta.setIconUrl(defUrl);
}
return meta;
}