mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-13 05:44:11 +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;
|
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]
|
[IDECommand]
|
||||||
public void CopyToDependents(String srcPath)
|
public void CopyToDependents(String srcPath)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue