开发者

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

Confusion over Eclipse SWT ViewPart and its Toolbars?

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!

Confusion over Eclipse SWT ViewPart and its Toolbars?

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜