Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Problem with StatusLine in application running through Eclipse Luna Service Release 1 (4.4.1)
Problem with StatusLine in application running through Eclipse Luna Service Release 1 (4.4.1) [message #1609810] Tue, 10 February 2015 10:57 Go to next message
Ru Sibgatullin is currently offline Ru SibgatullinFriend
Messages: 4
Registered: February 2015
Junior Member
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:
index.php/fa/20777/0/

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:
index.php/fa/20778/0/

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!
  • Attachment: 371.png
    (Size: 1.42KB, Downloaded 278 times)
  • Attachment: 441.png
    (Size: 1.30KB, Downloaded 290 times)
Re: Problem with StatusLine in application running through Eclipse Luna Service Release 1 (4.4.1) [message #1611416 is a reply to message #1609810] Wed, 11 February 2015 10:54 Go to previous message
Niraj Modi is currently offline Niraj ModiFriend
Messages: 48
Registered: November 2013
Member
Please post this query on "Eclipse Platform" forum: https://www.eclipse.org/forums/index.php/f/11/
Previous Topic:Load an SWT composite in OSX Objective-C NSView?
Next Topic:Internet Explorer version used for help pages
Goto Forum:
  


Current Time: Sun Jan 17 20:21:46 GMT 2021

Powered by FUDForum. Page generated in 0.01653 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top