import org.tianocore.frameworkwizard.common.ui.IDialog;\r
import org.tianocore.frameworkwizard.common.ui.IFrame;\r
import org.tianocore.frameworkwizard.common.ui.StarLabel;\r
-import org.tianocore.frameworkwizard.module.Identification.ModuleIdentification;\r
+import org.tianocore.frameworkwizard.module.Identifications.ModuleIdentification;\r
import org.tianocore.frameworkwizard.packaging.PackageIdentification;\r
import org.tianocore.frameworkwizard.platform.PlatformIdentification;\r
import org.tianocore.frameworkwizard.workspace.Workspace;\r
String packagePath = packages.elementAt(this.jComboBoxExistingPackage.getSelectedIndex()).getPath();\r
String modulePath = Tools.convertPathToCurrentOsType(this.jTextFieldFilePath.getText());\r
Vector<String> msaFile = wt.getAllModulesOfPackage(packagePath);\r
- packagePath = packagePath.substring(0, packagePath.lastIndexOf(DataType.FILE_SEPARATOR));\r
- String path = Tools.getRelativePath(modulePath, packagePath);\r
\r
for (int index = 0; index < msaFile.size(); index++) {\r
- if (msaFile.elementAt(index).equals(path)) {\r
+ if (msaFile.elementAt(index).equals(modulePath)) {\r
Log.err("This module is already existing in selected package");\r
return false;\r
}\r