Skip to main content

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

The toolbar button orders are broken in E4, see 
https://bugs.eclipse.org/394386 and https://bugs.eclipse.org/376896
Note that the orders also change on restart.

There have been various attempts at fixing this, with mixed results. Your 
best bet at this time is to use a location that works fine in 3.8, and 
then hope the platform bugs finally get fixed.

Markus



From:   "Alexiev, Dobrin" <dalexiev@xxxxxx>
To:     "platform-ui-dev@xxxxxxxxxxx" <platform-ui-dev@xxxxxxxxxxx>
Date:   2014-01-10 17:53
Subject:        [platform-ui-dev] adding a toolbar button between the 
debug stepping buttons on the main toolbar
Sent by:        platform-ui-dev-bounces@xxxxxxxxxxx



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). 
 

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

 
 

 
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
 _______________________________________________
platform-ui-dev mailing list
platform-ui-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-ui-dev



Back to the top