[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Adding the Restart button back into the Debg View toolbar

Thanks for the pointer. I have tried:

<extension
        point="org.eclipse.ui.menus">
<menuContribution
           locationURI="toolbar:org.eclipse.debug.ui.debugview.toolbar">
<command
              commandId="org.eclipse.debug.ui.commands.Restart"
              icon="icons/restart.gif"
              label="Restart"
              style="push">
</command>
</menuContribution>
</extension>

But nothing appears. Do I have the LocationURI right?

Thanks

On 31/03/2011 14:09, Marc Khouzam wrote:
Use the org.eclipse.ui.menus extension point to add commands to different UI parts.
There some examples of its use in different CDT plugins, e.g., org.eclipse.cdt.dsf.gdb.ui/plugin.xml

Marc

-----Original Message-----
From: cdt-dev-bounces@xxxxxxxxxxx
[mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of subs
Sent: Thursday, March 31, 2011 5:12 AM
To: cdt-dev@xxxxxxxxxxx
Subject: [cdt-dev] Adding the Restart button back into the
Debg View toolbar

Hi,

We are shipping a new product based on Helios/CDT. We are
getting a lot (yes, a lot!) of complaints from our customers
about the removal of the Restart button from the DebugView
toolbar (which was present in the Galileo/CDT product). Yes,
it is still available in the context menu, but this is a lot
less convenient.

I am not sure how to go about adding it back in. I can use a
viewContribution to add a button to the toolbar, but Restart
is provided  as a command. How do I go about adding a command
to the DebugView
toolbar (specifically the restart command, with ID
org.eclipse.debug.ui.commands.Restart)?

Thanks

--
Subs

_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev

_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev


--
Subs