From 7e0e0a074b38ad73d924aa0a2b30e072d6f1782c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Dr=C4=83ghici?= Date: Sat, 28 Sep 2024 22:54:36 +0300 Subject: [PATCH 1/2] [SNAP-3771][SNAP-3772][SNAP-3773][SNAP-3774][SNAP-3775](snap-product-library-v2): Prefill the Start Date field with yesterday date and End Date field with today date for helping the beginner user of SNAP to make a simple quick search with Product Library. --- .../library/ui/v2/repository/input/ParametersPanel.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/snap-product-library-ui-v2/src/main/java/org/esa/snap/product/library/ui/v2/repository/input/ParametersPanel.java b/snap-product-library-ui-v2/src/main/java/org/esa/snap/product/library/ui/v2/repository/input/ParametersPanel.java index 064a734fa..240a5c405 100644 --- a/snap-product-library-ui-v2/src/main/java/org/esa/snap/product/library/ui/v2/repository/input/ParametersPanel.java +++ b/snap-product-library-ui-v2/src/main/java/org/esa/snap/product/library/ui/v2/repository/input/ParametersPanel.java @@ -56,7 +56,13 @@ public List> addParameterComponents(List Date: Sat, 28 Sep 2024 22:54:57 +0300 Subject: [PATCH 2/2] [SNAP-3773][SNAP-3774](snap-product-library-v2): Fix the bug with hiding of the searching progress bar when the searching process ends quickly with showing the results, before or during the starting of the thread for showing the progress bar. --- .../remote/download/DownloadProductListTimerRunnable.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/snap-product-library-ui-v2/src/main/java/org/esa/snap/product/library/ui/v2/repository/remote/download/DownloadProductListTimerRunnable.java b/snap-product-library-ui-v2/src/main/java/org/esa/snap/product/library/ui/v2/repository/remote/download/DownloadProductListTimerRunnable.java index d82b1f8a0..d8a721c07 100644 --- a/snap-product-library-ui-v2/src/main/java/org/esa/snap/product/library/ui/v2/repository/remote/download/DownloadProductListTimerRunnable.java +++ b/snap-product-library-ui-v2/src/main/java/org/esa/snap/product/library/ui/v2/repository/remote/download/DownloadProductListTimerRunnable.java @@ -80,9 +80,10 @@ public void notifyPageProducts(int pageNumber, List pageResul if (!isFinished()) { updatePageProductsLater(pageResults, totalProductCount, retrievedProductCount); if (!downloadsAllPages() && retrievedProductCount < totalProductCount) { - hideProgressPanelLater(); synchronized (lock) { try { + lock.wait(500); + hideProgressPanelLater(); lock.wait(); } catch (InterruptedException e) { Thread.currentThread().interrupt();