@Override
public void run(ReadGraph graph) throws DatabaseException {
- System.out.println("START PLANT3D LOAD");
+ //System.out.println("START PLANT3D LOAD");
PipingRules.setEnabled(false);
IMappingSchema<Resource,INode> schema = getSchema(graph);
mapping = Mappings.createWithListening(schema);
throw new DatabaseException(e);
}
- System.out.println("END PLANT3D LOAD");
+ //System.out.println("END PLANT3D LOAD");
}
});
if (nodeMap.isRangeModified());
nodeMap.commit("Load sync");
} catch (Exception e) {
+ ExceptionUtils.logAndShowError("Failed to load model correctly", e);
//throw new DatabaseException(e);
}
panel.removeListener(this);
}
try {
if (selected.size() == 0) {
- for (Item eq : P3DUtil.getEquipments(getLibraryUri())) {
- m.add(new AddEquipmentAction(rootNode, eq));
- }
+ m.add(new AddEquipmentAction(rootNode, getLibraryUri()));
+// for (Item eq : P3DUtil.getEquipments(getLibraryUri())) {
+// m.add(new AddEquipmentAction(rootNode, eq));
+// }
} else if (selected.size() == 1) {
IP3DNode node = (IP3DNode)selected.get(0);
if (node instanceof Equipment) {