m_output.setText("<Testing SFTP Site>\nPlease Wait....\n");
m_output.update();
m_userInterface.updateStore();
TransferDetails details = new TransferDetails(m_userInterface.getPreferences());
Transfer transfer = Activator.getDefault().getTransfer(details.getProtocol());
if(transfer != null){
System.out.println("TI::test(), Transfer class = "+transfer.getClass().getName());
transfer.init(details);
try{
System.out.println("TI::test(), calling test");
m_userInterface.setVerified(transfer.test());
}catch(NullPointerException e){
System.out.println("NPE detected whilst testing and verifying the esftp details");
System.out.println("TI::test(), NPE caught");
}
System.out.println("TI::test(), outputting everything");
m_output.append( transfer.getTransferOuput() );
System.out.println("TI::test(), test completed");
}else System.out.println("transfer object was null");
}