job.addSwingRunnable(new JobRunnable("Import resources",1.0f){ //$NON-NLS-1$
public Object run() throws Exception{
log.info("BEGIN: Import resources");
ResourceMappingForm form=getResourceMapping();
if (form!=null&&form.isLocal()) //if form==null we are in a case were have no server access. popup not needed
if (!job.okCancel(Messages.getString("Message.ServerUnreacheableReadOnlyProject"),true)){ //$NON-NLS-1$
setProgress(1.0f);
errorDescription = ABORT;
Environment.setImporting(false); // will avoid certain popups
throw new Exception(ABORT);
}