Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[platform-ui-dev] adding a toolbar button between the debug stepping buttons on the main toolbar

Hello,

 

I wanted to insert two assembly stepping buttons between the standard debug stepping buttons but I am unable to do so.

I added a contribution with a path:

 

    <menuContribution

       locationURI="toolbar:org.eclipse.debug.ui.main.toolbar?before=stepOverGroup">

       <command

             commandId="myId"

                               

The button is added to the toolbar but it is not inserted at the right position. ( the green stepping arrow).

 

cid:image001.png@01CF0DF2.9A4A48C0

 

It does work well when I try to insert them in the main menu as well as in the debug view toolbar.

 

cid:image002.png@01CF0DF3.F5B11170

 

 

cid:image003.png@01CF0DF3.F5B11170

 

I see that in the plugin.xml “org.eclipse.debug.ui” the toolbar groups are defined properly to allows contributions between the buttons:

 

          <toolbar

                id="org.eclipse.debug.ui.main.toolbar"

                label="%DebugActionSet.label">

             <separator

                   name="breakpointGroup"

                   visible="true">

             </separator>

             <separator

                   name="threadGroup"

                   visible="true">

             </separator>

             <separator

                   name="stepGroup">

             </separator>

             <separator

                   name="stepIntoGroup">

             </separator>

             <separator

                   name="stepOverGroup">

             </separator>

             <separator

                   name="stepReturnGroup">

             </separator>

             <separator

                   name="emptyStepGroup">

 

But something is preventing my toolbars to appear at the right place.

 

Has anyone experienced similar problems?

Or, may be, my contribution is not the proper way to contribute to the main toolbar?

Could there be a different way to contribute to the main debug toolbar?

 

Thanks

Dobrin

 


Back to the top