Confusion over Eclipse SWT ViewPart and its Toolbars?
I followed roughly the recipe in this blog entry http://eclipsercptutorials.blogspot.com/2009/05/add-toolbar-to-view-in-eclipse-rcp.html
Which looks like that — the image appears left to the minimize/maxi开发者_开发百科mize icons
The thing is, if I don't assign an image to the action, then the item doesn't appear in the header, but in a separate toolbar!
Why?
What I know is the action bar icons appear next to the minimize/maximize icons if they can fit, and appear below them if not. I did not experience the phenomenon you describe, but it's common practice to have only icons in view action bars. I recommend reading the Eclipse UI Guidelines.
精彩评论