我有一个基于 eclipse e4 框架构建的应用程序。我想定位一个Handled Tool Item
到最右端。我怎样才能实现它?
You need to use two 'Toolbar' entries with a 'Tool Control' between them:
所以像这样:
In the Tags for the Tool Control add the word stretch
this will make the trim bar manager stretch out the control to use all available space pushing everything after it to the right:
控件的类可以很简单,例如:
public class SpacerControl
{
@PostConstruct
public void postConstruct(Composite parent)
{
Composite body = new Composite(parent, SWT.NONE);
body.setLayout(new GridLayout());
}
}
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)