Bug 412425 - RAP: Update RAP Filechooser to 2.x

https://bugs.eclipse.org/bugs/show_bug.cgi?id=412425

Add logging info for currently not supported operations on file dialog.

Change-Id: Ie2469dd1d01e3d318dabc0e78ebf1d8781417102
Reviewed-on: https://git.eclipse.org/r/26669
Reviewed-by: Ken Lee <kle@bsiag.com>
Tested-by: Ken Lee <kle@bsiag.com>
diff --git a/org.eclipse.scout.rt.ui.rap.incubator.filechooser/src/org/eclipse/scout/rt/ui/rap/window/filechooser/RwtScoutFileChooser.java b/org.eclipse.scout.rt.ui.rap.incubator.filechooser/src/org/eclipse/scout/rt/ui/rap/window/filechooser/RwtScoutFileChooser.java
index 6e2fe1b..5be80ef 100644
--- a/org.eclipse.scout.rt.ui.rap.incubator.filechooser/src/org/eclipse/scout/rt/ui/rap/window/filechooser/RwtScoutFileChooser.java
+++ b/org.eclipse.scout.rt.ui.rap.incubator.filechooser/src/org/eclipse/scout/rt/ui/rap/window/filechooser/RwtScoutFileChooser.java
@@ -90,21 +90,24 @@
     // Since version 2.3, the RAP FileDialog does not support filtering for extensions, file paths and names anymore.
     // See bugzilla 433502 and 433501. Code is commented out until the support is available again.
 //    String[] extensions = new String[]{"*.*"};
-//    if (getScoutFileChooser().getFileExtensions() != null) {
+    if (getScoutFileChooser().getFileExtensions() != null) {
+      LOG.info("Setting file extensions using IFileChooserField.getFileExtensions() is currently not possible in RAP. Operation is ignored.");
 //      List<String> extensionList = new ArrayList<String>();
 //      for (String ext : getScoutFileChooser().getFileExtensions()) {
 //        extensionList.add("*." + ext);
 //      }
 //      extensions = extensionList.toArray(new String[extensionList.size()]);
-//    }
+    }
     FileDialog dialog = new FileDialog(getParentShell(), style);
 //    dialog.setFilterExtensions(extensions);
-//    if (getScoutFileChooser().getDirectory() != null) {
+    if (getScoutFileChooser().getDirectory() != null) {
+      LOG.info("Setting filter path using IFileChooserField.getDirectory() is currently not possible in RAP. Operation is ignored.");
 //      dialog.setFilterPath(getScoutFileChooser().getDirectory().getAbsolutePath());
-//    }
-//    if (getScoutFileChooser().getFileName() != null) {
+    }
+    if (getScoutFileChooser().getFileName() != null) {
+      LOG.info("Setting file name using IFileChooserField.getFileName() is currently possible in RAP. Operation is ignored.");
 //      dialog.setFileName(getScoutFileChooser().getFileName());
-//    }
+    }
     dialog.open();
     String[] selectedFiles = dialog.getFileNames();
     if (selectedFiles != null && selectedFiles.length > 0) {