package eu.etaxonomy.taxeditor.ui.section.media;
-import java.io.IOException;
import java.net.URI;
import org.apache.commons.io.FileUtils;
-import org.apache.http.HttpException;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Status;
disposeImage();
element_image = formFactory.createImageElement(parentFormElement, uri, style);
element_image.initImageUri(uri);
- } catch (IOException | HttpException e) {
+ } catch (Exception e) {
handleException();
}
element_image.loadImage();
StoreUtil.reflowParentScrolledForm(getLayoutComposite(), true);
});
}
- catch (IOException | HttpException e) {
+ catch (Exception e) {
handleException();
}
return Status.OK_STATUS;