Beispiel #1
0
 private void tsbFindNode_Click(object sender, EventArgs e)
 {
     try
     {
         if (!ide.IsDocumentOpen())
         {
             return;
         }
         PointOfInterest pt = null;//= EditPointHelper.FindPointUnderCursor(ide, treeManager);
         if (pt != null)
         {
             pt.Text = ide.GetCurrentLine();
             pt      = TreeSearchEngine.FindPointInAspectTree(Manager.WorkingAspect, pt);
             if (pt != null)
             {
                 TreeNode tn = Adapter.FindNodeByValue(pt);
                 tvAspects.SelectedNode = tn;
                 tvAspects.Focus();
                 SetStatus("");
                 return;
             }
         }
         SetStatus(Strings.CannotFindSubAspect);
     }
     catch (Exception exc)
     {
         ExceptionInfoHelper.ShowInfo(exc);
     }
 }