我为我的e4 rcp应用程序创建一个状态栏,但状态栏很小。RCP E4状态栏是小的
以我Appliication.e4xmi是以下配置:
修剪窗口 - > TrimBars - >窗装饰(底部) - >工具栏 - >工具控制(链接到我的StatusBar类)
链接状态条类:
public class StatusBar {
private Label label;
@Inject
private IEventBroker eventBroker;
public static final String STATUSBAR = "statusbar";
@Inject
@Optional
public void getEvent(@UIEventTopic(STATUSBAR) String message) {
updateInterface(message);
}
@PostConstruct
public void createControls(Composite parent) {
label = new Label(parent, SWT.LEFT);
label.setBackground(parent.getBackground());
}
public void updateInterface(String message) {
try {
Display.getDefault().asyncExec(new Runnable() {
@Override
public void run() {
try {
label.setText(message);
} catch (Exception e) {
logger.error(e.fillInStackTrace());
}
}
});
} catch (Exception exception) {
logger.error(exception.fillInStackTrace());
}
}
太小,以什么方式?不够深?不够长? –
状态栏的高度很小。 – Darksmilie