Version version = (Version) list.next();
Label l = GUI.getStyleFactory().createLabel(parent,SWT.BORDER);
l.setImage(SWTUtil.getImage("hibiscus.jpg"));
Container container = new LabelGroup(parent,i18n.tr("Versionsinformationen"),true);
FormTextPart text = new FormTextPart();
text.setText("<form>" +
"<p><b>Hibiscus - HBCI-Onlinebanking f�r Jameica</b></p>" +
"<p>Lizenz: GPL [<a href=\"http://www.gnu.org/copyleft/gpl.html\">www.gnu.org/copyleft/gpl.html</a>]<br/>" +
"Copyright by Olaf Willuhn [<a href=\"mailto:hibiscus@willuhn.de\">hibiscus@willuhn.de</a>]<br/>" +
"<a href=\"http://www.willuhn.de/products/hibiscus/\">www.willuhn.de/products/hibiscus/</a></p>" +
"<p>Software-Version: " + plugin.getManifest().getVersion() + "<br/>" +
"Datenbank-Version: " + version.getVersion() + "<br/>" +
"Build: " + plugin.getManifest().getBuildnumber() + " [Datum " + plugin.getManifest().getBuildDate() + "]</p>" +
"</form>");
container.addPart(text);
ButtonArea buttons = new ButtonArea();
buttons.addButton(i18n.tr("Datenbank-Informationen"), new Action() {
public void handleAction(Object context) throws ApplicationException
{
try
{
new DebugDialog(DebugDialog.POSITION_CENTER).open();
}
catch (OperationCanceledException oce)
{
Logger.info(oce.getMessage());
return;
}
catch (Exception e)
{
Logger.error("unable to display debug dialog",e);
Application.getMessagingFactory().sendMessage(new StatusBarMessage(i18n.tr("Fehler beim Anzeigen der Datenbank-Informationen"), StatusBarMessage.TYPE_ERROR));
}
}
},null,false,"dialog-information.png");
// buttons.addButton(i18n.tr("Wallet"), new Action() {
// public void handleAction(Object context) throws ApplicationException
// {
// try
// {
// new WalletDialog(DebugDialog.POSITION_CENTER).open();
// }
// catch (OperationCanceledException oce)
// {
// Logger.info(oce.getMessage());
// return;
// }
// catch (Exception e)
// {
// Logger.error("unable to display wallet dialog",e);
// Application.getMessagingFactory().sendMessage(new StatusBarMessage(i18n.tr("Fehler beim Anzeigen des Wallet"), StatusBarMessage.TYPE_ERROR));
// }
// }
// },null,false,"stock_keyring.png");
buttons.addButton(i18n.tr("Spenden"),new Action() {
public void handleAction(Object context) throws ApplicationException
{
close();
new DonateView().handleAction(null);
}
},null,false,"emblem-special.png");
buttons.addButton(i18n.tr("Schlie�en"),new Action() {
public void handleAction(Object context) throws ApplicationException
{
close();
}
},null,true,"window-close.png");
container.addButtonArea(buttons);
setSize(SWT.DEFAULT,430); // BUGZILLA 269
}