Introduce Makefile for Java build
[lgpl/argeo-commons.git] / org.argeo.cms.ui / src / org / argeo / cms / ui / fs / FileDrop.java
index be36a46295d031fbf308996e493e4312f7843bb0..e875b5a3d1e23b1b9ee4b9de552bbcc5760257fc 100644 (file)
@@ -1,9 +1,9 @@
 package org.argeo.cms.ui.fs;
 
+import java.io.IOException;
 import java.io.InputStream;
 
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
+import org.argeo.api.cms.CmsLog;
 import org.argeo.eclipse.ui.specific.FileDropAdapter;
 import org.eclipse.swt.dnd.DND;
 import org.eclipse.swt.dnd.DropTarget;
@@ -12,15 +12,15 @@ import org.eclipse.swt.widgets.Control;
 
 /** Allows a control to receive file drops. */
 public class FileDrop {
-       private final static Log log = LogFactory.getLog(FileDrop.class);
+       private final static CmsLog log = CmsLog.getLog(FileDrop.class);
 
        public void createDropTarget(Control control) {
                FileDropAdapter fileDropAdapter = new FileDropAdapter() {
                        @Override
-                       protected void processUpload(InputStream in, String fileName, String contentType) {
+                       protected void processUpload(InputStream in, String fileName, String contentType) throws IOException {
                                if (log.isDebugEnabled())
                                        log.debug("Process upload of " + fileName + " (" + contentType + ")");
-                               processUpload(in, fileName, contentType);
+                               processFileUpload(in, fileName, contentType);
                        }
                };
                DropTarget dropTarget = new DropTarget(control, DND.DROP_MOVE | DND.DROP_COPY);
@@ -31,7 +31,7 @@ public class FileDrop {
        }
 
        /** Executed in UI thread */
-       protected void processUpload(InputStream in, String fileName, String contentType) {
+       protected void processFileUpload(InputStream in, String fileName, String contentType) throws IOException {
 
        }
 }