X-Git-Url: https://git.argeo.org/?a=blobdiff_plain;f=base%2Fruntime%2Forg.argeo.eclipse.ui.rap%2Fsrc%2Fmain%2Fjava%2Forg%2Fargeo%2Feclipse%2Fui%2Fspecific%2FImportToServerWizardPage.java;h=f66a279c6df81208df37714630e49ba74024561d;hb=3a3d316af102ba410d1d9e6de349d0c8f7ac044f;hp=234985f31ac41403161e3e1da17a5a161114da2d;hpb=cd50e3711d3b86921f11d9e021fc6a43bef0d400;p=lgpl%2Fargeo-commons.git diff --git a/base/runtime/org.argeo.eclipse.ui.rap/src/main/java/org/argeo/eclipse/ui/specific/ImportToServerWizardPage.java b/base/runtime/org.argeo.eclipse.ui.rap/src/main/java/org/argeo/eclipse/ui/specific/ImportToServerWizardPage.java index 234985f31..f66a279c6 100644 --- a/base/runtime/org.argeo.eclipse.ui.rap/src/main/java/org/argeo/eclipse/ui/specific/ImportToServerWizardPage.java +++ b/base/runtime/org.argeo.eclipse.ui.rap/src/main/java/org/argeo/eclipse/ui/specific/ImportToServerWizardPage.java @@ -21,7 +21,7 @@ import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.argeo.ArgeoException; import org.eclipse.jface.wizard.WizardPage; -import org.eclipse.rwt.widgets.Upload; +//import org.eclipse.rap.rwt.widgets.Upload; import org.eclipse.swt.SWT; import org.eclipse.swt.layout.GridData; import org.eclipse.swt.layout.GridLayout; @@ -35,7 +35,7 @@ public class ImportToServerWizardPage extends WizardPage { public final static String FILE_ITEM_TYPE = "FILE"; public final static String FOLDER_ITEM_TYPE = "FOLDER"; - private Upload uploadFile; + //private Upload uploadFile; public ImportToServerWizardPage() { super("Import from file system"); @@ -47,9 +47,9 @@ public class ImportToServerWizardPage extends WizardPage { composite.setLayout(new GridLayout(2, false)); composite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false)); new Label(composite, SWT.NONE).setText("Pick up a file"); - uploadFile = new Upload(composite, SWT.BORDER); - uploadFile.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false)); - uploadFile.setBrowseButtonText("Open..."); +// uploadFile = new Upload(composite, SWT.BORDER); +// uploadFile.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false)); +// uploadFile.setBrowseButtonText("Open..."); setControl(composite); } @@ -59,11 +59,11 @@ public class ImportToServerWizardPage extends WizardPage { // The full path including the directory and file drive are only // returned, if the browser supports reading this properties. In Firefox // 3, only the filename is returned. - return uploadFile.getPath(); + return null; } public String getObjectName() { - return uploadFile.getUploadItem().getFileName(); + return null; } public String getObjectType() { @@ -71,17 +71,17 @@ public class ImportToServerWizardPage extends WizardPage { } public void performFinish() { - boolean success = uploadFile.performUpload(); - if (!success) - throw new ArgeoException("Cannot upload file named " - + uploadFile.getPath()); +// boolean success = uploadFile.performUpload(); +// if (!success) +// throw new ArgeoException("Cannot upload file named " +// + uploadFile.getPath()); } - protected void handleUploadFinished(final Upload upload) { - } +// protected void handleUploadFinished(final Upload upload) { +// } public InputStream getFileInputStream() { - return uploadFile.getUploadItem().getFileInputStream(); + return null; } public boolean getNeedsProgressMonitor() {