import org.simantics.structural.stubs.StructuralResource2;
import org.simantics.utils.datastructures.Pair;
import org.simantics.utils.ui.ErrorLogger;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
/**
* A first-hand component naming strategy implementation for structural models.
*/
public class CaseInsensitiveComponentNamingStrategy2 extends ComponentNamingStrategyBase implements ChangeListener {
+ private static final Logger LOGGER = LoggerFactory.getLogger(CaseInsensitiveComponentNamingStrategy2.class);
private static final boolean DEBUG_ALL = false;
private static final boolean DEBUG_GRAPH_UPDATES = false | DEBUG_ALL;
private static final boolean DEBUG_CACHE_INITIALIZATION = false | DEBUG_ALL;
if (components.size() > 1) {
// Found duplicate names in the model !!
// TODO: generate issue!
- System.err.println("WARNING: found multiple components with same name '" + componentName + "': " + components);
- System.err.println("TODO: generate issue");
+ LOGGER.warn("WARNING: found multiple components with same name '" + componentName + "': " + components);
+ LOGGER.warn("TODO: generate issue");
} else {
String prevName = r2s.putIfAbsent(component, componentName);
if (prevName == null)