Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Context Menu in Console View
Context Menu in Console View [message #277651] Tue, 14 December 2004 16:41 Go to next message
Eclipse UserFriend
Originally posted by: bala.paranj.novainfo.com

Hello,

I have read many articles on the Eclipse & IBM websites. I have also
browsed the help and documentation. I am still not clear on whether it is
possible to contribute action to the context menu of the console view.

Any pointers on this is appreciated.

Thanks,
Bala
Re: Context Menu in Console View [message #277661 is a reply to message #277651] Tue, 14 December 2004 19:11 Go to previous message
Eclipse UserFriend
Regular action contributions can be added to a console's context menu in
Eclipse 3.1. You'll need to append the menu id to the console type. See
https://bugs.eclipse.org/bugs/show_bug.cgi?id=78191 for details.

The org.eclipse.debug.ui plugin contributes the "Remove All Terminated"
action to the ProcessConsole's context menu with the following:

<extension
point="org.eclipse.ui.popupMenus">
<viewerContribution

targetID="org.eclipse.debug.ui.ProcessConsoleType.#TextConsole "
id="org.eclipse.debug.ui.processConsoleContextMenu">
<action
label="%RemoveAllTerminatedAction.label"
tooltip="%RemoveAllTerminatedAction.tooltip"
icon="icons/full/elcl16/rem_all_co.gif"

class=" org.eclipse.debug.internal.ui.views.console.ConsoleRemoveAll TerminatedActionDelegate "
menubarPath="additions"

id="org.eclipse.debug.ui.consoleRemoveAllTerminatedAction"/ >
<action
label="%TerminateAction.label"
tooltip="%TerminateAction.tooltip"
icon="icons/full/elcl16/terminate_co.gif"

class=" org.eclipse.debug.internal.ui.views.console.ConsoleTerminate ActionDelegate "
menubarPath="additions"
id="org.eclipse.debug.ui.consoleTerminateAction"/>
</viewerContribution>
</extension>

HTH
Kevin

Bala wrote:
> Hello,
>
> I have read many articles on the Eclipse & IBM websites. I have also
> browsed the help and documentation. I am still not clear on whether it
> is possible to contribute action to the context menu of the console view.
>
> Any pointers on this is appreciated.
>
> Thanks,
> Bala
>
>
>
Previous Topic:Can a link file target be a subdirectory?
Next Topic:Externally specifying an editor's IActionBar's actions
Goto Forum:
  


Current Time: Fri Jul 18 03:35:43 EDT 2025

Powered by FUDForum. Page generated in 0.07589 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top