Hello guys!
I have an application in SWT, that I run as Eclipse Application. So, when I use Eclipse Indigo SR2 Packages (v 3.7.2) the status line works fine:
But when I run that app in Luna Service Release 1 (4.4.1) using exactly the same code there is no status line at all:
code:
public void preWindowOpen() {
final IWorkbenchWindowConfigurer configurer = getWindowConfigurer();
configurer.setInitialSize(new Point(1000, 750));
configurer.setShowCoolBar(false);
configurer.setShowStatusLine(true);
configurer.setTitle("Console");
ConnectionController.getInstance().addConnectionListener(
new ConnectionListener() {
@Override
public void connectionEstablished() {
logger.info("<*> Connection established!");
String url = (ServerController.getCurrentUrl() == null) ? "" : ServerController.getCurrentUrl();
String login = (ServerController.getCurrentLogin() == null) ? "" : ServerController.getCurrentLogin();
lastStatus = "Status: Connected Adress: " + url + " User: " + login;
logger.info("<*> Connect to " + url + "\t User: " + login);
updateStatus();
}
@Override
public void connectionLost() {
logger.info("connection lost!");
}
});
}
@Override
public void postWindowCreate() {
lastStatus = "Status : not connected";
((ApplicationWindow) PlatformUI.getWorkbench().getActiveWorkbenchWindow()).setStatus(lastStatus);
}
public static void updateStatus() {
((ApplicationWindow) PlatformUI.getWorkbench()
.getActiveWorkbenchWindow()).setStatus(lastStatus);
}
Thanks in advance!