remove limit for selection dialogs
authorKatja Luther <k.luther@bgbm.org>
Mon, 14 Jan 2019 14:57:03 +0000 (15:57 +0100)
committerKatja Luther <k.luther@bgbm.org>
Mon, 14 Jan 2019 14:57:03 +0000 (15:57 +0100)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/dialog/selection/AbstractFilteredCdmResourceSelectionDialog.java

index a3115fa51639bd3d7dbdaa69543a55edc2e5fa6b..e71711dbf35a025936e72b3251b89ade9e206729 100644 (file)
@@ -22,6 +22,7 @@ import java.util.UUID;
 import org.apache.commons.lang.StringUtils;
 import org.eclipse.core.runtime.IProgressMonitor;
 import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.jobs.Job;
 import org.eclipse.jface.dialogs.IDialogConstants;
 import org.eclipse.jface.dialogs.IDialogSettings;
 import org.eclipse.jface.viewers.ILabelProvider;
@@ -70,12 +71,14 @@ public abstract class AbstractFilteredCdmResourceSelectionDialog<T extends ICdmB
        protected List<UuidAndTitleCache<T>> model;
        private final Set<T> transientCdmObjects = new HashSet<T>();
        private final String settings;
-       protected final int limitOfInitialElements = 100;
+       protected final Integer limitOfInitialElements = null;
 
        private T selectedObject;
 
        protected Set<UUID> cdmBaseToBeFiltered;
 
+       protected Job searchJob;
+
 
        /**
         * <p>Constructor for AbstractFilteredCdmResourceSelectionDialog.</p>
@@ -569,7 +572,7 @@ public abstract class AbstractFilteredCdmResourceSelectionDialog<T extends ICdmB
         if (control != null){
             pattern = ((Text)control).getText();
             if (pattern.equals("*") || pattern.equals("?")){
-                callService(null);
+                callService("*");
             }else if (StringUtils.isNotBlank(pattern)){
                 callService(pattern);
             }