X-Git-Url: http://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=425e3b31af65df8208206f786737bd1c5972b519;hp=d087ebe99dbaad5b93945e6a78bd1182902a948e;hpb=654a906a9507d52d3f3b8f1505c6ad56ad68334a;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 d087ebe99..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 @@ -1,5 +1,5 @@ /* - * Copyright (C) 2007-2012 Mathieu Baudier + * Copyright (C) 2007-2012 Argeo GmbH * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -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() {