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

Cosimulation: code review



Issue-Ref:3486
Signed-off-by: Hernan Ponce de Leon's avatarHernan Ponce de Leon <ponce@fortiss.org>
parent 5ec9c340
ExternalSpecificationEditor.java e077b7ae51c980b9cd0031c41670daa047bb7246 YELLOW
ExternalSpecificationEditor.java 727a19aa22157c8c3ba46bc4402ca6078d2201ac GREEN
ExternalSpecificationEditorBinding.java c5ede1e02867805e28e6c95c52ec3557466db47a GREEN
......@@ -16,6 +16,7 @@
package org.fortiss.af3.cosimulation.ui.editor;
import static org.apache.commons.io.FileUtils.deleteDirectory;
import static org.apache.commons.io.FilenameUtils.removeExtension;
import static org.eclipse.ui.PlatformUI.getWorkbench;
import static org.fortiss.af3.component.utils.ComponentModelElementFactory.createInputPort;
import static org.fortiss.af3.component.utils.ComponentModelElementFactory.createOutputPort;
......@@ -193,7 +194,7 @@ public class ExternalSpecificationEditor extends FormsEditorBase<IExternalBehavi
}
try {
deleteDirectory(new File(tempBuildDirectoryPath));
container.setName(FilenameUtils.removeExtension(new File(filePath).getName()));
container.setName(removeExtension(new File(filePath).getName()));
} catch(Exception e) {
MessageDialog.openInformation(currentShell, "[Error]",
"Detailed Error: \n" + e.getMessage());
......
Markdown is supported
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