Add a method to get LastFileUpdated name in rap environments.
[lgpl/argeo-commons.git] / eclipse / runtime / org.argeo.eclipse.ui.rap / src / main / java / org / argeo / eclipse / ui / specific / GenericUploadControl.java
index 48806b496aa5138575a0f8da5c3f91ee4f441b00..e922e4b9bff64928df219fc4a333b63b77721be9 100644 (file)
@@ -36,6 +36,14 @@ public class GenericUploadControl extends Composite {
                parent.pack();
        }
 
+       /**
+        * Wrap upload.getLastFileUploaded(). Gets the name of the last uploaded
+        * file. This method can be called even if the upload has not finished yet.
+        */
+       public String getLastFileUploadedName() {
+               return upload.getLastFileUploaded();
+       }
+
        public boolean isControlEmpty() {
                String path = upload.getPath();
                if (log.isTraceEnabled())