title: Eclipse Plugin: Jump to a Line by adding Hyperlink to a row in SWT Table view
body: <p>The table looks like:</p>
  
  <pre><code>+-----------------+-----------------------+
  |File Path        |         Line Number   |
  |-----------------|-----------------------|
  | File1.java      |         10            |
  |-----------------|-----------------------|
  | File2.java      |         19            |
  +-----------------+-----------------------+
  </code></pre>
  
  <p>On double-clicking any row in the table, I want to jump to the the specified line number in the file of its row of the table.</p>
  
  <p>I am using the following function to go to a specified line of an Active Editor.</p>
  
  <pre class="lang-java prettyprint-override"><code>private static void goToLine(IEditorPart editorPart, int LineNumber)
  {
      if (!(editorPart instanceof ITextEditor) || LineNumber &lt;= 0)
      {
          return;
      }
  
      ITextEditor editor = (ITextEditor) editorPart;
      IDocument document = editor.getDocumentProvider().getDocument(
              editor.getEditorInput());
  
      if (document != null)
      {
          IRegion lineInfo = null;
  
          // line count internally starts with 0, and not with 1 like in GUI
          try
          {
              lineInfo = document.getLineInformation(LineNumber - 1);
          }
  
          catch (org.eclipse.jface.text.BadLocationException e)
          {
              // TODO Auto-generated catch block
              e.printStackTrace();
          }
  
          if (lineInfo != null)
          {
              editor.selectAndReveal(lineInfo.getOffset(), lineInfo.getLength());
          }
        }
      }   
  }
  </code></pre>
  
  <p>How to add hyperlinks to the rows of the table to jump to the line of the corresponding file?</p>