Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SNAP-3771_SNAP-3772_SNAP-3773_SNAP-3774_SNAP-3775_product_library #238

Open
wants to merge 3 commits into
base: 11.x
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,13 @@ public List<AbstractParameterComponent<?>> addParameterComponents(List<Repositor
Number defaultValue = (param.getDefaultValue() == null) ? null : (Number)param.getDefaultValue();
parameterComponent = new NumberParameterComponent(param.getName(), param.getType(), defaultValue, param.getLabel(), param.isRequired(), textFieldPreferredHeight, textFieldBackgroundColor);
} else if (param.getType() == LocalDateTime.class || param.getType() == LocalDateTime[].class) {
parameterComponent = new DateParameterComponent(param.getName(), param.getLabel(), param.isRequired(), textFieldPreferredHeight, textFieldBackgroundColor);
final DateParameterComponent dateParameterComponent = new DateParameterComponent(param.getName(), param.getLabel(), param.isRequired(), textFieldPreferredHeight, textFieldBackgroundColor);
if (param.getName().toLowerCase().startsWith("start")) {
dateParameterComponent.setParameterValue(LocalDateTime.now().minusDays(1));
} else if (param.getName().toLowerCase().startsWith("end")) {
dateParameterComponent.setParameterValue(LocalDateTime.now());
}
parameterComponent = dateParameterComponent;
} else if (param.getType() == String[].class) {
String defaultValue = (param.getDefaultValue() == null) ? null : param.getDefaultValue().toString();
if(param.getName().toLowerCase().contentEquals("password")){
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,10 @@ public void notifyPageProducts(int pageNumber, List<RepositoryProduct> 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();
Expand Down