Commit aa45c408 authored by Hernan Ponce de Leon's avatar Hernan Ponce de Leon
Browse files

Merge branch '3485_Bug_When_saving_FMU' into 'master'

Bug resolved: There was an error while saving the project after loading

See merge request !65
parents 3ceefc9b c85ca2ca
ExternalSpecificationEditor.java 91c48b46b04b415df8c9ac38a6b513f2b69cff7f GREEN
ExternalSpecificationEditor.java 25863438d7232ccbd2d1713f60fa5d3e22f310ed GREEN
ExternalSpecificationEditorBinding.java c5ede1e02867805e28e6c95c52ec3557466db47a GREEN
......@@ -23,8 +23,10 @@ import static org.fortiss.af3.expression.utils.ExpressionModelElementFactory.boo
import static org.fortiss.af3.expression.utils.ExpressionModelElementFactory.createNoVal;
import static org.fortiss.af3.expression.utils.ExpressionModelElementFactory.doubleType;
import static org.fortiss.af3.expression.utils.ExpressionModelElementFactory.intType;
import static org.fortiss.af3.project.utils.ProjectUtils.getFileProject;
import static org.fortiss.tooling.kernel.ui.util.DataBindingUtils.bind;
import static org.fortiss.tooling.kernel.ui.util.WidgetsFactory.createTextWithUndo;
import static org.fortiss.tooling.kernel.utils.UniqueIDUtils.generateAllIDs;
import java.io.BufferedOutputStream;
import java.io.File;
......@@ -182,6 +184,7 @@ public class ExternalSpecificationEditor extends FormsEditorBase<IExternalBehavi
DefaultHandler handler =
parseXMLAndCreateOrModifyPorts(container, newOutputPorts, newInputPorts);
saxParser.parse(tempBuildDirectoryPath + File.separator + xmlName, handler);
generateAllIDs(getFileProject(container));
deleteExtraPorts(newInputPorts, newOutputPorts, container);
} catch(Exception e) {
MessageDialog.openInformation(currentShell, "[" + fileType +
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment