Commit 61fd37ca authored by aziz's avatar aziz
Browse files

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


Signed-off-by: default avataraziz <aziz@fortiss.org>
parent 3ceefc9b
ExternalSpecificationEditor.java 91c48b46b04b415df8c9ac38a6b513f2b69cff7f GREEN
ExternalSpecificationEditor.java 8e5b1e4971499a50465e64247031ba336ee844db YELLOW
ExternalSpecificationEditorBinding.java c5ede1e02867805e28e6c95c52ec3557466db47a GREEN
......@@ -39,6 +39,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;
......@@ -189,7 +190,7 @@ public class ExternalSpecificationEditor extends FormsEditorBase<IExternalBehavi
}
try {
deleteDirectory(new File(tempBuildDirectoryPath));
container.setName(new File(filePath).getName());
container.setName(FilenameUtils.removeExtension(new File(filePath).getName()));
} catch(Exception e) {
MessageDialog.openInformation(currentShell, "[Error]",
"Detailed Error: \n" + e.getMessage());
......
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