SIL.FieldWorks.LexText.Controls.MSAPopupTreeManager.MakeTargetMenuItem C# (CSharp) Method

MakeTargetMenuItem() public method

Populate the tree with just ONE menu item, the one that we want to select.
public MakeTargetMenuItem ( ) : TreeNode
return System.Windows.Forms.TreeNode
		public TreeNode MakeTargetMenuItem()
		{
			CheckDisposed();

			PopupTree popupTree = GetPopupTree();
			popupTree.Nodes.Clear();
			var msa = m_sense.MorphoSyntaxAnalysisRA;
			TreeNode match = null;
			if (msa == null)
				match = AddNotSureItem(popupTree);
			else
				match = AddTreeNodeForMsa(popupTree, m_sense.Cache.TsStrFactory, msa);
			return match;
		}