1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 20:42:21 +02:00

Added RemoveProject functionality

This commit is contained in:
Brian Fiete 2020-05-19 09:08:35 -07:00
parent ddd221c187
commit e5e40811cf

View file

@ -1235,6 +1235,27 @@ namespace IDE
return project;
}
[IDECommand]
public void RemoveProject(String projectName)
{
let project = gApp.mWorkspace.FindProject(projectName);
if (project == null)
{
mScriptManager.Fail("Unable to find project");
return;
}
bool success = gApp.mProjectPanel.mProjectToListViewMap.TryGetValue(project.mRootFolder, var projectItem);
if (!success)
{
mScriptManager.Fail("Unable to find project in panel");
return;
}
gApp.mProjectPanel.mListView.GetRoot().SelectItemExclusively(projectItem);
gApp.mProjectPanel.[Friend]RemoveSelectedItems(false);
}
[IDECommand]
public void CopyToDependents(String srcPath)
{