]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.acorn/src/org/simantics/acorn/AcornManagement.java
Removed contact application support prints
[simantics/platform.git] / bundles / org.simantics.acorn / src / org / simantics / acorn / AcornManagement.java
index 561a039134d8e80b69ce47c4f78c5ffc0a02ac45..231578ac6a6cd3734189a4cbb9509dfcc7a1ca44 100644 (file)
@@ -1,6 +1,5 @@
 package org.simantics.acorn;
 
-import java.nio.file.Path;
 import java.util.Properties;
 
 import org.simantics.db.Database;
@@ -13,8 +12,8 @@ public class AcornManagement implements Management {
     private final Database db;
     private final Properties properties;
 
-    AcornManagement(Path dbFolder, Properties properties) throws ProCoreException {
-        db = AcornDatabaseManager.getDatabase(dbFolder);
+    AcornManagement(Database db, Properties properties) throws ProCoreException {
+        this.db = db;
         this.properties = properties;
     }
 
@@ -34,7 +33,7 @@ public class AcornManagement implements Management {
     public void create() throws DatabaseException {
         db.initFolder(properties);
         if (!exist())
-            throw new DatabaseException("Failed to create ProCore database. folder=" + db.getFolder());
+            throw new DatabaseException("Failed to create Acorn database. folder=" + db.getFolder());
     }
 
     @Override