/** * Registers recursively the given {@link SBasePlugin} from the {@link Model} * and {@link SBMLDocument}. * * @param sbasePlugin * the {@link SBasePlugin} to register. */ @SuppressWarnings("unused") private void registerChild(SBasePlugin sbasePlugin) { // Could/Should be used by the method #firePropertyChange // set package version and namespace if needed checkAndSetPackageNamespaceAndVersion(sbasePlugin, getSBMLDocument()); int childCount = sbasePlugin.getChildCount(); if (childCount > 0) { for (int i = 0; i < childCount; i++) { TreeNode childNode = sbasePlugin.getChildAt(i); if (childNode instanceof SBase) { registerChild((SBase) childNode); } } } }
checkAndSetPackageNamespaceAndVersion(sbasePlugin, doc);
&& checkAndSetPackageNamespaceAndVersion(sbase)) { SBMLDocument doc = getSBMLDocument(); if (doc != null) {