Exemplo n.º 1
0
        //////////////////////////////////////////////////////////////////////////
        /// <summary>
        /// Select the line of NAntNode in the VisualStudio editor.
        /// </summary>
        /// <param name="nantNode">The node</param>
        //////////////////////////////////////////////////////////////////////////

        public void SelectNodeLine()
        {
            // First load the file into VisualStudio
            VisualStudioUtils.ShowFile(m_ApplicationObject, m_Filename);

            // Refocus AddIn (lost while opening the file)
            VisualStudioUtils.ShowWindow(m_ApplicationObject, "NAntAddin");

            // Display the node's line within the file
            VisualStudioUtils.ShowLine(m_ApplicationObject, m_Filename, m_CurrentNode.LineNumber, false);

            // Finally display the document
            VisualStudioUtils.ShowDocument(m_ApplicationObject, m_Filename);
        }