Skip to content
This repository was archived by the owner on Oct 4, 2021. It is now read-only.

Commit 120551b

Browse files
committed
Update context menu item to "delete"
1 parent dead73e commit 120551b

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Pads.ProjectPad/ProjectFileNodeBuilder.cs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -289,18 +289,18 @@ public override void DeleteMultipleItems ()
289289

290290
if (hasChildren) {
291291
if (files.Count == 1)
292-
question = GettextCatalog.GetString ("Remove the file {0} and " +
292+
question = GettextCatalog.GetString ("Are you sure you want to delete the file {0} and " +
293293
"its code-behind children from project {1}?",
294294
Path.GetFileName (files[0].Name), files[0].Project.Name);
295295
else
296-
question = GettextCatalog.GetString ("Remove the selected files and " +
296+
question = GettextCatalog.GetString ("Are you sure you want to delete the selected files and " +
297297
"their code-behind children from the project?");
298298
} else {
299299
if (files.Count == 1)
300-
question = GettextCatalog.GetString ("Remove file {0} from project {1}?",
300+
question = GettextCatalog.GetString ("Are you sure you want to delete file {0} from project {1}?",
301301
Path.GetFileName (files[0].Name), files[0].Project.Name);
302302
else
303-
question = GettextCatalog.GetString ("Remove the selected files from the project?");
303+
question = GettextCatalog.GetString ("Are you sure you want to delete the selected files from the project?");
304304
}
305305

306306
var result = MessageService.AskQuestion (question, GetDeleteConfirmationButtons (filesExist));
@@ -392,7 +392,6 @@ public void UpdateRemoveItem (CommandInfo info)
392392
{
393393
//don't allow removing children from parents. The parent can be removed and will remove the whole group.
394394
info.Enabled = CanDeleteMultipleItems ();
395-
info.Text = GettextCatalog.GetString ("Remove");
396395
}
397396

398397
[CommandHandler (ViewCommands.OpenWithList)]

main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Pads.ProjectPad/ProjectFolderNodeBuilder.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ public override void DeleteMultipleItems ()
203203
AlertButton result;
204204

205205
if (project == null) {
206-
question.Text = GettextCatalog.GetString ("Are you sure you want to remove directory {0}?", folder.Name);
206+
question.Text = GettextCatalog.GetString ("Are you sure you want to delete directory {0}?", folder.Name);
207207
result = MessageService.AskQuestion (question);
208208
if (result == AlertButton.Delete) {
209209
DeleteFolder (folder);
@@ -218,12 +218,12 @@ public override void DeleteMultipleItems ()
218218

219219
//if the parent directory has already been removed, there may be nothing to do
220220
if (isProjectFolder) {
221-
question.Text = GettextCatalog.GetString ("Are you sure you want to remove directory {0}?", folder.Name);
221+
question.Text = GettextCatalog.GetString ("Are you sure you want to delete directory {0}?", folder.Name);
222222
result = MessageService.AskQuestion (question);
223223
if (result != AlertButton.Delete)
224224
break;
225225
} else {
226-
question.Text = GettextCatalog.GetString ("Are you sure you want to remove directory {0} from project {1}?",
226+
question.Text = GettextCatalog.GetString ("Are you sure you want to delete directory {0} from project {1}?",
227227
folder.Name, project.Name);
228228
result = MessageService.AskQuestion (question);
229229
if (result != AlertButton.Delete)
@@ -335,7 +335,6 @@ static void DeleteFolder (ProjectFolder folder)
335335
public void UpdateRemoveItem (CommandInfo info)
336336
{
337337
info.Enabled = CanDeleteMultipleItems ();
338-
info.Text = GettextCatalog.GetString ("Remove");
339338
}
340339

341340
[CommandHandler (ProjectCommands.IncludeToProject)]

0 commit comments

Comments
 (0)