]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.browsing.ui.model/src/org/simantics/browsing/ui/model/labeldecorators/ConstantLabelDecorationRule.java
Replace System.err and System.out with SLF4J Logging
[simantics/platform.git] / bundles / org.simantics.browsing.ui.model / src / org / simantics / browsing / ui / model / labeldecorators / ConstantLabelDecorationRule.java
index 2df8e52ee93ca8e98b1b85e9ba5655e0e6c57197..5ba9ced6ed3fa07ca9ae71f96e8661818cb00044 100644 (file)
@@ -22,6 +22,8 @@ import org.simantics.db.ReadGraph;
 import org.simantics.db.Resource;
 import org.simantics.db.exception.DatabaseException;
 import org.simantics.viewpoint.ontology.ViewpointResource;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
 
 /**
  * Constant label decoration rule decorates the label in a fixed way.
@@ -29,6 +31,7 @@ import org.simantics.viewpoint.ontology.ViewpointResource;
  */
 public class ConstantLabelDecorationRule extends AbstractLabelDecorator implements LabelDecorationRule {
 
+    private static final Logger LOGGER = LoggerFactory.getLogger(ConstantLabelDecorationRule.class);
     /**
      * For headless instances where no Display is available
      */
@@ -69,7 +72,7 @@ public class ConstantLabelDecorationRule extends AbstractLabelDecorator implemen
                     this.style |= SWT.ITALIC;
                     break;
                 default:
-                    System.err.println("Invalid character '" + c + "' in style string. Only B and I recognized.");
+                   LOGGER.info("Invalid character '" + c + "' in style string. Only B and I recognized.");
                 }
     }