X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.modeling%2Fsrc%2Forg%2Fsimantics%2Fmodeling%2Fservices%2FCaseInsensitiveComponentNamingStrategy2.java;h=a8a8a7319899fb3ef02cb576fa291ef22ed28eea;hp=cd2c00b6dcf83f0dc47452fbb8428e65f6b2ce4f;hb=1dfeb7d5c49b1391cd9d877e1eddab18995cb151;hpb=c13c4179bda758e77fe1f2032d3c4268bb9e3120 diff --git a/bundles/org.simantics.modeling/src/org/simantics/modeling/services/CaseInsensitiveComponentNamingStrategy2.java b/bundles/org.simantics.modeling/src/org/simantics/modeling/services/CaseInsensitiveComponentNamingStrategy2.java index cd2c00b6d..a8a8a7319 100644 --- a/bundles/org.simantics.modeling/src/org/simantics/modeling/services/CaseInsensitiveComponentNamingStrategy2.java +++ b/bundles/org.simantics.modeling/src/org/simantics/modeling/services/CaseInsensitiveComponentNamingStrategy2.java @@ -46,6 +46,8 @@ import org.simantics.project.IProject; 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. @@ -61,6 +63,7 @@ import org.simantics.utils.ui.ErrorLogger; */ 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; @@ -291,8 +294,8 @@ public class CaseInsensitiveComponentNamingStrategy2 extends ComponentNamingStra 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)