Je crée une barre d'état pour mon application e4 rcp mais la barre d'état est trop petite.RCP E4 La barre d'état est trop petite
Dans mon Appliication.e4xmi est le suivant configuré:
Entretenu Fenêtre -> TrimBars -> Fenêtre Rogner (en bas) -> Barre d'outils -> Contrôle Tool (lien vers ma classe StatusBar)
liés StatusBar classe:
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());
}
}
Trop petit dans quel sens? Pas assez profond? Pas assez long? –
La hauteur de la barre d'état est trop petite. – Darksmilie