import org.simantics.db.WriteGraph;\r
import org.simantics.db.common.request.UnaryRead;\r
import org.simantics.db.common.request.WriteRequest;\r
-import org.simantics.db.common.utils.Logger;\r
import org.simantics.db.exception.DatabaseException;\r
import org.simantics.db.layer0.util.Layer0Utils;\r
import org.simantics.db.layer0.util.RemoverUtil;\r
import org.simantics.utils.ui.ISelectionUtils;\r
import org.simantics.views.swt.client.base.ISWTViewNode;\r
import org.simantics.views.swt.client.impl.SWTExplorer;\r
+import org.slf4j.Logger;\r
+import org.slf4j.LoggerFactory;\r
\r
import gnu.trove.map.hash.THashMap;\r
import gnu.trove.set.hash.THashSet;\r
* @author Tuukka Lehtonen\r
*/\r
public class SCL {\r
+ \r
+ private static final Logger LOGGER = LoggerFactory.getLogger(SCL.class);\r
\r
final public static String EMPTY = "";\r
final public static String MAPPED = "Mapped";\r
try {\r
doAdd((Variable)properties.input);\r
} catch (DatabaseException e) {\r
- Logger.defaultLogError(e);\r
+ LOGGER.error("newAnnotationModifier failed", e);\r
}\r
return null;\r
\r
String name = graph.getPossibleRelatedValue(r, L0.HasName, Bindings.STRING);\r
if(name != null) {\r
if (result.put(name, r) != null)\r
- System.err.println(this + ": The database contains siblings with the same name " + name + " (resource=$" + resource.getResourceId() +").");\r
+ LOGGER.error("The database contains siblings with the same name " + name + " (resource=$" + resource.getResourceId() +").");\r
}\r
}\r
return result;\r