-> Finalisation of file download for RAP
[lgpl/argeo-commons.git] / eclipse / runtime / org.argeo.eclipse.ui.rcp / src / main / java / org / argeo / eclipse / ui / specific / FileHandler.java
index 93e9d9213e848834cfd9816d0472ac83016c2776..b9c4d31d3fcbe4a0bb74d5c4891f15becb963383 100644 (file)
@@ -17,10 +17,12 @@ import org.argeo.ArgeoException;
  */
 public class FileHandler {
 
-       public FileHandler() {
+       // unused file provider : collateral effects of single sourcing, this File
+       // provider is compulsory for RAP file handler
+       public FileHandler(FileProvider jfp) {
        }
 
-       public void openFile(String fileName, InputStream is) {
+       public void openFile(String fileName, String fileId, InputStream is) {
 
                String prefix = "", extension = "";
                if (fileName != null) {
@@ -44,7 +46,7 @@ public class FileHandler {
                }
        }
 
-       public void openFile(File file) {
+       private void openFile(File file) {
                try {
                        Desktop desktop = null;
                        if (Desktop.isDesktopSupported()) {