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;
/**
* A visual contribution rule test that checks whether the input content is an
*/
public class InstanceOfTest implements Test {
+ private static final Logger LOGGER = LoggerFactory.getLogger(InstanceOfTest.class);
String bundleName;
String className;
Class<?> clazz;
return clazz;
Bundle b = Platform.getBundle(bundleName);
if (b == null) {
- System.err.println(getClass() + " could not resolve class " + className + ", bundle " + bundleName + " not found in platform");
+ LOGGER.error(getClass() + " could not resolve class " + className + ", bundle " + bundleName + " not found in platform");
failed = true;
return null;
}
this.clazz = b.loadClass(className);
return clazz;
} catch (ClassNotFoundException e) {
- System.err.println(getClass() + " could not resolve class " + className + ", from bundle " + bundleName);
+ LOGGER.error(getClass() + " could not resolve class " + className + ", from bundle " + bundleName, e);
failed = true;
return null;
}