@@ -0,0 +1,1020 @@
+/**%0A * %0A */%0Apackage org.jcryptool.visual.jctca.listeners;%0A%0Aimport org.eclipse.swt.events.SelectionEvent;%0Aimport org.eclipse.swt.events.SelectionListener;%0Aimport org.eclipse.swt.widgets.Button;%0Aimport org.jcryptool.crypto.keystore.backend.KeyStoreAlias;%0A%0A/**%0A * @author sho%0A *%0A */%0Apublic class RevokeButtonListener implements SelectionListener %7B%0A%0A%09/* (non-Javadoc)%0A%09 * @see org.eclipse.swt.events.SelectionListener#widgetSelected(org.eclipse.swt.events.SelectionEvent)%0A%09 */%0A%09@Override%0A%09public void widgetSelected(SelectionEvent e) %7B%0A%09%09// TODO Auto-generated method stub%0A%0A%09%7D%0A%0A%09/* (non-Javadoc)%0A%09 * @see org.eclipse.swt.events.SelectionListener#widgetDefaultSelected(org.eclipse.swt.events.SelectionEvent)%0A%09 */%0A%09@Override%0A%09public void widgetDefaultSelected(SelectionEvent e) %7B%0A%09%09// TODO Auto-generated method stub%0A%09%09System.out.println(%22Event triggered%22);%0A%09%09Button btn_revoke = (Button) e.getSource();%0A%09%09KeyStoreAlias ksAlias = (KeyStoreAlias) btn_revoke.getData(%22selected%22);%0A%09%09System.out.println(ksAlias.toString());%0A%09%7D%0A%0A%7D%0A

revoke listener