Revision 935960dc
Added by Katja Luther over 7 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/dialog/selection/AbstractFilteredCdmResourceSelectionDialog.java | ||
---|---|---|
10 | 10 |
|
11 | 11 |
package eu.etaxonomy.taxeditor.ui.dialog.selection; |
12 | 12 |
|
13 |
import java.lang.reflect.Field; |
|
14 | 13 |
import java.text.Collator; |
15 | 14 |
import java.util.Comparator; |
16 | 15 |
import java.util.HashSet; |
... | ... | |
70 | 69 |
private final Set<T> transientCdmObjects = new HashSet<T>(); |
71 | 70 |
private final String settings; |
72 | 71 |
protected final int limitOfInitialElements = 100; |
73 |
|
|
72 |
|
|
74 | 73 |
protected T cdmBaseToBeFiltered; |
75 | 74 |
|
76 | 75 |
|
... | ... | |
277 | 276 |
// and all the clever caching prevents the content provider from knowing that the model has changed |
278 | 277 |
// I am aware, that this is a hack, but the FilteredSelectionDialog API does not offer a convenient |
279 | 278 |
// way to solve the problem. |
280 |
try { |
|
281 |
Field lastCompletedFilter = this.getClass().getSuperclass().getSuperclass().getDeclaredField("lastCompletedFilter"); |
|
282 |
lastCompletedFilter.setAccessible(true); |
|
283 |
lastCompletedFilter.set(this, null); |
|
284 |
} catch (SecurityException e) { |
|
285 |
MessagingUtils.error(getClass(), e); |
|
286 |
} catch (NoSuchFieldException e) { |
|
287 |
MessagingUtils.error(getClass(), e); |
|
288 |
} catch (IllegalArgumentException e) { |
|
289 |
MessagingUtils.error(getClass(), e); |
|
290 |
} catch (IllegalAccessException e) { |
|
291 |
MessagingUtils.error(getClass(), e); |
|
292 |
} |
|
279 |
// try {
|
|
280 |
// Field lastCompletedFilter = this.getClass().getSuperclass().getSuperclass().getDeclaredField("lastCompletedFilter");
|
|
281 |
// lastCompletedFilter.setAccessible(true);
|
|
282 |
// lastCompletedFilter.set(this, null);
|
|
283 |
// } catch (SecurityException e) {
|
|
284 |
// MessagingUtils.error(getClass(), e);
|
|
285 |
// } catch (NoSuchFieldException e) {
|
|
286 |
// MessagingUtils.error(getClass(), e);
|
|
287 |
// } catch (IllegalArgumentException e) {
|
|
288 |
// MessagingUtils.error(getClass(), e);
|
|
289 |
// } catch (IllegalAccessException e) {
|
|
290 |
// MessagingUtils.error(getClass(), e);
|
|
291 |
// }
|
|
293 | 292 |
|
294 | 293 |
// this also is not the nicest way to do it. |
295 | 294 |
// I am still amazed, that FilteredSelectionDialog does not offer any methods to change its data |
Also available in: Unified diff
ref #6176: the referencingObjectsCount is only called for wizards not in details view