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:
parent
ddd221c187
commit
e5e40811cf
1 changed files with 21 additions and 0 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue