Improve dependencies.
authorMathieu Baudier <mbaudier@argeo.org>
Sat, 17 Oct 2015 16:23:47 +0000 (16:23 +0000)
committerMathieu Baudier <mbaudier@argeo.org>
Sat, 17 Oct 2015 16:23:47 +0000 (16:23 +0000)
git-svn-id: https://svn.argeo.org/commons/trunk@8506 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc

org.argeo.eclipse.ui.rap/bnd.bnd
org.argeo.eclipse.ui.rap/src/org/argeo/eclipse/ui/specific/OpenFileService.java

index 83a2036d440f120d0e6388a36c7b587fbced0006..460b6b168a0a4f8e61d73ae0ca01415b3ffcd286 100644 (file)
@@ -1,10 +1,3 @@
-Require-Bundle: org.eclipse.rap.ui,org.eclipse.core.runtime
-Import-Package: org.apache.commons.io,\
-org.argeo,\
-org.springframework.beans.factory,\
-org.springframework.core.io.support,\
-!org.eclipse.rwt.widgets,\
-!org.eclipse.core.runtime,\
-!org.eclipse.core.commands,\
-!org.eclipse.ui.plugin,\
+Import-Package: org.eclipse.swt,\
+ org.eclipse.jface.dialogs,\
 *
index a9302e1948d50765cb8d259b1fedfb78d2b06556..2818fc7ea131377d8fa084048d024e93c9c55d13 100644 (file)
@@ -23,7 +23,6 @@ import javax.servlet.http.HttpServletRequest;
 import javax.servlet.http.HttpServletResponse;
 
 import org.apache.commons.io.FileUtils;
-import org.argeo.ArgeoException;
 import org.eclipse.rap.rwt.service.ServiceHandler;
 
 /**
@@ -80,8 +79,8 @@ public class OpenFileService implements ServiceHandler {
                                return FileUtils.readFileToByteArray(new File(
                                                getFilePathFromUri(uri)));
                        } catch (IOException ioe) {
-                               throw new ArgeoException("Error getting the file at " + uri,
-                                               ioe);
+                               throw new SingleSourcingException("Error getting the file at "
+                                               + uri, ioe);
                        }
                }
                return null;