Commit d519a37d authored by Nico Mack's avatar Nico Mack

Added methods for bulk suspension of change notifications of variables

parent dbf85e20
......@@ -52,6 +52,14 @@ public class ApplicationContext {
// ---------------------------------------------------------------------------
public static void suspendListenerNotification(boolean suspendIt, Variable<?>... vars) {
for (Variable<?> variable : vars) {
variable.suspendListenerNotification(suspendIt);
}
}
// ---------------------------------------------------------------------------
public static void atomicUpdate(List<Variable<?>> variables, List<Object> values) {
Preconditions.checkArgument(!variables.isEmpty(), "No variables to update!"); //$NON-NLS-1$
Preconditions.checkArgument(variables.size() == values.size(), "Sizes of variables and values lists must match!"); //$NON-NLS-1$
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment