Skip to content
Snippets Groups Projects
Commit bd69ccf4 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

extension of multi package to compartment added when necessary

parent dbe45fda
No related branches found
No related tags found
2 merge requests!630WIP: Resolve "The privileges of a new user are not saved in some cases",!591Resolve "SBML Reaction glyphs missing curve segment result in NullPointer exception"
......@@ -11,6 +11,7 @@ import org.sbml.jsbml.ext.layout.BoundingBox;
import org.sbml.jsbml.ext.layout.CompartmentGlyph;
import org.sbml.jsbml.ext.layout.Dimensions;
import org.sbml.jsbml.ext.layout.Point;
import org.sbml.jsbml.ext.multi.MultiCompartmentPlugin;
import lcsb.mapviewer.converter.model.sbml.SbmlElementExporter;
import lcsb.mapviewer.converter.model.sbml.SbmlExtension;
......@@ -38,6 +39,11 @@ public class SbmlCompartmentExporter extends SbmlElementExporter<Compartment, or
}
//for now we don't have this information - needed for validation
result.setConstant(false);
if (isExtensionEnabled(SbmlExtension.MULTI)) {
MultiCompartmentPlugin multiExtension = new MultiCompartmentPlugin(result);
multiExtension.setIsType(false);
result.addExtension("multi", multiExtension);
}
return result;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment