1 package org.simantics.modeling.tests.commands;
3 import org.simantics.databoard.Bindings;
4 import org.simantics.db.DevelopmentKeys;
5 import org.simantics.db.testing.common.CommandSequenceEnvironment;
6 import org.simantics.db.testing.common.WriteCommand;
7 import org.simantics.utils.Development;
9 public class ModificationEvents extends WriteCommand<CommandSequenceEnvironment> {
11 transient private boolean enable;
13 public ModificationEvents(boolean enable) {
18 public void run(CommandSequenceEnvironment environment) throws Exception {
21 Development.setProperty(DevelopmentKeys.WRITEGRAPH_DEBUG, true, Bindings.BOOLEAN);
22 Development.setProperty(DevelopmentKeys.WRITEGRAPH_DEBUG_NAMES, true, Bindings.BOOLEAN);
23 Development.setProperty(DevelopmentKeys.PRINT, false, Bindings.BOOLEAN);
24 Development.setProperty(DevelopmentKeys.LOGGER_ECHO, false, Bindings.BOOLEAN);
26 Development.setProperty(DevelopmentKeys.WRITEGRAPH_DEBUG, false, Bindings.BOOLEAN);
27 Development.setProperty(DevelopmentKeys.WRITEGRAPH_DEBUG_NAMES, false, Bindings.BOOLEAN);
28 Development.setProperty(DevelopmentKeys.PRINT, true, Bindings.BOOLEAN);
29 Development.setProperty(DevelopmentKeys.LOGGER_ECHO, true, Bindings.BOOLEAN);