import org.simantics.db.layer0.variable.Variable;
import org.simantics.ui.selection.WorkbenchSelectionElement;
import org.simantics.viewpoint.ontology.ViewpointResource;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
public class SpecialNodeType implements NodeType {
+
+ private static final Logger LOGGER = LoggerFactory.getLogger(SpecialNodeType.class);
+
public Resource resource;
Class<?> contentType;
if (bundleId != null) {
bundle = Platform.getBundle(bundleId);
if (bundle == null)
- System.err.println("Referenced bundle '" + bundleId + "' not found in platform.");
+ LOGGER.warn("Referenced bundle '" + bundleId + "' not found in platform.");
}
if (bundle != null)
contentType = bundle.loadClass(contentTypeName);
else
contentType = Class.forName(contentTypeName);
} catch (ClassNotFoundException e) {
- System.err.println("Unknown content type " + contentTypeName);
+ LOGGER.error("Unknown content type {} - {}", contentTypeName, e.getMessage());
+ if (LOGGER.isTraceEnabled())
+ LOGGER.trace("Unknown content type {}", contentTypeName, e);
}
else
- System.err.println("Content type is NULL.");
+ LOGGER.warn("Content type is NULL.");
}
return new SpecialNodeType(r, contentType);
}