title: Adding to Eclipse's console view pop-up menu
body: <p>In Eclipse plugin development, I have been able to add an item to the right-click context menu on the project explorer by doing this:</p>
  
  <pre><code>&lt;extension point="org.eclipse.ui.menus"&gt;
      &lt;menuContribution locationURI="popup:org.eclipse.jdt.ui.PackageExplorer"&gt;
          &lt;command ... &gt;
              ...
          &lt;/command&gt;
      &lt;/menuContribution&gt;
  &lt;/extension&gt;
  </code></pre>
  
  <p>But when I try to add to the pop-up menu for the ConsoleView, I'm not getting results.</p>
  
  <pre><code>&lt;extension point="org.eclipse.ui.menus"&gt;
      &lt;menuContribution locationURI="popup:org.eclipse.ui.console.ConsoleView"&gt;
          &lt;command ... &gt;
              ...
          &lt;/command&gt;
      &lt;/menuContribution&gt;
  &lt;/extension&gt;
  </code></pre>
  
  <p>I've been looking at the output from alt-shift-F1 and alt-shift-F2 (Plug-in Spy), which is where I got <code>org.eclipse.ui.console.ConsoleView</code>.  But I can't seem to get to the pop-up menu itself.  I can get information about the individual pop-up menu items (Select All, Clear, etc), but I guess I just don't quite know how to "dig" with Plug-in Spy to get the right information.</p>
  
  <p><strong>EDIT: Showing the results of my work using the answer from below</strong></p>
  
  <p>Plug-in Selection Spy had the following:</p>
  
  <pre><code>Active Part (Console)
      The active view identifier:
          org.eclipse.ui.console.ConsoleView
  Active Selection
      The selection class:
          TextSelection
  Active Help
      The active help context identifiers:
          org.eclipse.debug.ui.process_console_context
  </code></pre>
  
  <p>It was that last entry which pointed me toward the <strong>process console</strong> as opposed to the message console.  The link in the answer had <code>IDebugUIConstants.ID_PROCESS_CONSOLE_TYPE</code> defined as <code>org.eclipse.debug.ui.ProcessConsoleType</code>.  So I ended up with this, and it worked:</p>
  
  <pre><code>  &lt;menuContribution
          locationURI="popup:org.eclipse.debug.ui.ProcessConsoleType.#ContextMenu"&gt;
       &lt;command
             commandId="com.grch.cmgtsdk.merge"
             label="Yowza!"
             style="push"&gt;
       &lt;/command&gt;
    &lt;/menuContribution&gt;
  </code></pre>