private void DoGetEntries(NSTextView view, string selection, string language, Boss boss) { int group = 0; bool editable = view.isEditable(); foreach (ITextContextCommands i in boss.GetRepeated<ITextContextCommands>()) { var items = new List<TextContextItem>(); i.Get(selection, language, editable, items); if (items.Count > 0) { if (!items.All(item => item.Name == null)) { for (int j = 0; j < items.Count; ++j) { m_entries.Add(new Entry(items[j], group)); } ++group; } } } }