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

Merge branch '3486_removing_.fmu_from_component_name' into 'master'

Now the .fmu doesn't appear in the component name having FMU

See merge request !66
parents 325b7564 fe6096d3
ExternalSpecificationEditor.java 25863438d7232ccbd2d1713f60fa5d3e22f310ed GREEN
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;
......@@ -41,6 +42,7 @@ import java.util.zip.ZipInputStream;
import javax.xml.parsers.SAXParser;
import javax.xml.parsers.SAXParserFactory;
import org.apache.commons.io.FilenameUtils;
import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.jface.layout.GridDataFactory;
import org.eclipse.swt.SWT;
......@@ -192,7 +194,7 @@ public class ExternalSpecificationEditor extends FormsEditorBase<IExternalBehavi
}
try {
deleteDirectory(new File(tempBuildDirectoryPath));
container.setName(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