+ \r
+ //\r
+ // Check if path already exists\r
+ //\r
+ if (GlobalData.isDuplicateRelativePath(Tools.getFilePathOnly(modulePath), mode)) {\r
+ Log.wrn("New File", "There already exists a same directory with a module");\r
+ return false;\r
+ }\r
+ \r
+ //\r
+ // Check if Guid+Version is unique\r
+ //\r
+ String packageGuid = packages.elementAt(this.jComboBoxExistingPackage.getSelectedIndex()).getGuid();\r
+ String packageVersion = packages.elementAt(this.jComboBoxExistingPackage.getSelectedIndex()).getVersion();\r
+ if (GlobalData.findModuleId(guid, version, packageGuid, packageVersion) != null) {\r
+ Log.wrn("New File", "A module with same Guid and same Version already exists, please selece a new Guid or Version!");\r
+ return false;\r
+ }\r