|
|
|
@ -34,8 +34,14 @@ namespace ICSharpCode.AvalonEdit.AddIn.ContextActions |
|
|
|
static ContextActionsPopup MakePopupWithClipboardOptions(EditorRefactoringContext context) |
|
|
|
static ContextActionsPopup MakePopupWithClipboardOptions(EditorRefactoringContext context) |
|
|
|
{ |
|
|
|
{ |
|
|
|
var popupViewModel = new ContextActionsPopupViewModel(); |
|
|
|
var popupViewModel = new ContextActionsPopupViewModel(); |
|
|
|
popupViewModel.Title = MenuService.ConvertLabel(StringParser.Parse("${res:SharpDevelop.Refactoring.ClipboardRing}")); |
|
|
|
var actions = BuildClipboardRingData(context); |
|
|
|
popupViewModel.Actions = BuildClipboardRingData(context); |
|
|
|
|
|
|
|
|
|
|
|
string labelSource = "${res:SharpDevelop.Refactoring.ClipboardRing}"; |
|
|
|
|
|
|
|
if (actions == null || actions.Count == 0) |
|
|
|
|
|
|
|
labelSource = "${res:SharpDevelop.Refactoring.ClipboardRingEmpty}"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
popupViewModel.Title = MenuService.ConvertLabel(StringParser.Parse(labelSource)); |
|
|
|
|
|
|
|
popupViewModel.Actions = actions; |
|
|
|
return new ClipboardRingPopup { Actions = popupViewModel }; |
|
|
|
return new ClipboardRingPopup { Actions = popupViewModel }; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|