+ MenuItem projectImportAddItem
+ {
+ projectMenu, $"Import projects into workspace...", a, Key { a, true, true };
+ disabled = true;
+ bool NotifySelect(MenuItem selection, Modifiers mods)
+ {
+ char path[MAX_LOCATION];
+ FileDialog fileDialog = importFolderProjectsDialog;
+ fileDialog.master = parent;
+ path[0] = '\0';
+ StripLastDirectory(path, ide.workspace.workspaceDir);
+ MakeSystemPath(path);
+ fileDialog.currentDirectory = path;
+ fileDialog.filePath = path;
+ if(fileDialog.Modal() == ok)
+ {
+ ImportFolderProjectsFSI fsi { noParsing = mods.ctrl && mods.shift };
+ ide.project.topNode.GetFullFilePath(fsi.selfProjectPath);
+ MakeSystemPath(fsi.selfProjectPath);
+ PrintLn("self: ", fsi.selfProjectPath);
+ fsi.Iterate(fileDialog.filePath);
+ delete fsi;
+ }
+ return true;
+ }
+ };