]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.modeling/src/org/simantics/modeling/CompilePGraphs.java
Replace System.err and System.out with SLF4J Logging
[simantics/platform.git] / bundles / org.simantics.modeling / src / org / simantics / modeling / CompilePGraphs.java
index 7f7171dca54a8b82ece8f27441e7d58c7079eb29..7781fbeffdbe9d90cafd4b8e01346f27984c1f31 100644 (file)
@@ -66,12 +66,15 @@ import org.simantics.ltk.Problem;
 import org.simantics.modeling.internal.Activator;
 import org.simantics.utils.FileUtils;
 import org.simantics.utils.datastructures.Pair;
+import org.slf4j.LoggerFactory;
 
 /**
  * @author Antti Villberg
  */
 public class CompilePGraphs {
 
+    private static final org.slf4j.Logger LOGGER = LoggerFactory.getLogger(CompilePGraphs.class);
+
     public static interface UserAgent {
         void reportProblems(CompilationResult result);
     }
@@ -149,6 +152,8 @@ public class CompilePGraphs {
                        if (name == null) name = id;
                        if (name.equals(thisOntology.first))
                                continue;
+                       if (name.contains("ModelBroker"))
+                           continue;
             URL tg = b.getEntry("/graph.tg");
             if (tg == null) continue;
             File f = url2file(FileLocator.resolve(tg), b.getSymbolicName());
@@ -287,7 +292,7 @@ public class CompilePGraphs {
                 Logger.defaultLogError(e);
             }
         } else {
-            System.err.println("Unsupported URL protocol '" + url + "' for FastLZ native library file '" + fileName);
+            LOGGER.warn("Unsupported URL protocol");
         }   
         return null;
     }