final Display display = SWTThread.getInstance().getDisplay();
if ( display.isDisposed()){
return( false );
}
final trustDialog[] dialog = new trustDialog[1];
try{
Utils.execSWTThread(new AERunnable() {
public void
runSupport()
{
dialog[0] = new trustDialog( display, resource, cert );
}
}, false);
}catch( Throwable e ){
Debug.printStackTrace( e );
return( false );
}
return(dialog[0].getTrusted());