|
1 | 1 | /******************************************************************************* |
2 | | - * Copyright (c) 2017, 2025 Lablicate GmbH. |
| 2 | + * Copyright (c) 2017, 2026 Lablicate GmbH. |
3 | 3 | * |
4 | 4 | * This program and the accompanying materials are made |
5 | 5 | * available under the terms of the Eclipse Public License 2.0 |
@@ -54,8 +54,6 @@ public class TargetsListUI extends ExtendedTableViewer { |
54 | 54 |
|
55 | 55 | private IUpdateListener updateListener; |
56 | 56 |
|
57 | | - private IPreferenceStore preferenceStore = Activator.getDefault().getPreferenceStore(); |
58 | | - |
59 | 57 | public TargetsListUI(Composite parent, int style) { |
60 | 58 |
|
61 | 59 | this(parent, TITLES, style); |
@@ -183,7 +181,7 @@ public void update(ViewerCell cell) { |
183 | 181 | int retentionTimeTarget = libraryInformation.getRetentionTime(); |
184 | 182 |
|
185 | 183 | if(retentionTime != null && retentionTimeTarget != 0) { |
186 | | - |
| 184 | + IPreferenceStore preferenceStore = Activator.getDefault().getPreferenceStore(); |
187 | 185 | boolean useAbsoluteDeviation = preferenceStore.getBoolean(PreferenceSupplier.P_USE_ABSOLUTE_DEVIATION_RETENTION_TIME); |
188 | 186 | double deviation; |
189 | 187 | double deviationWarn; |
@@ -238,7 +236,7 @@ public void update(ViewerCell cell) { |
238 | 236 | float retentionIndexTarget = libraryInformation.getRetentionIndex(); |
239 | 237 |
|
240 | 238 | if(retentionIndex != null && retentionIndexTarget != 0) { |
241 | | - |
| 239 | + IPreferenceStore preferenceStore = Activator.getDefault().getPreferenceStore(); |
242 | 240 | boolean useAbsoluteDeviation = preferenceStore.getBoolean(PreferenceSupplier.P_USE_ABSOLUTE_DEVIATION_RETENTION_INDEX); |
243 | 241 | double deviation; |
244 | 242 | double deviationWarn; |
|
0 commit comments