projects
/
lgpl
/
argeo-commons.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
File drop callbacks throw IOException.
[lgpl/argeo-commons.git]
/
org.argeo.cms.ui
/
src
/
org
/
argeo
/
cms
/
ui
/
fs
/
FileDrop.java
diff --git
a/org.argeo.cms.ui/src/org/argeo/cms/ui/fs/FileDrop.java
b/org.argeo.cms.ui/src/org/argeo/cms/ui/fs/FileDrop.java
index be36a46295d031fbf308996e493e4312f7843bb0..d50b8d84de88892cf28d8c41df1f2fbef00f561d 100644
(file)
--- a/
org.argeo.cms.ui/src/org/argeo/cms/ui/fs/FileDrop.java
+++ b/
org.argeo.cms.ui/src/org/argeo/cms/ui/fs/FileDrop.java
@@
-1,5
+1,6
@@
package org.argeo.cms.ui.fs;
package org.argeo.cms.ui.fs;
+import java.io.IOException;
import java.io.InputStream;
import org.apache.commons.logging.Log;
import java.io.InputStream;
import org.apache.commons.logging.Log;
@@
-17,10
+18,10
@@
public class FileDrop {
public void createDropTarget(Control control) {
FileDropAdapter fileDropAdapter = new FileDropAdapter() {
@Override
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 + ")");
if (log.isDebugEnabled())
log.debug("Process upload of " + fileName + " (" + contentType + ")");
- processUpload(in, fileName, contentType);
+ process
File
Upload(in, fileName, contentType);
}
};
DropTarget dropTarget = new DropTarget(control, DND.DROP_MOVE | DND.DROP_COPY);
}
};
DropTarget dropTarget = new DropTarget(control, DND.DROP_MOVE | DND.DROP_COPY);
@@
-31,7
+32,7
@@
public class FileDrop {
}
/** Executed in UI thread */
}
/** Executed in UI thread */
- protected void process
Upload(InputStream in, String fileName, String contentType)
{
+ protected void process
FileUpload(InputStream in, String fileName, String contentType) throws IOException
{
}
}
}
}