[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform.swt] Problem with StatusLineManager
|
Hi,
I'm using the StatusLineManager to manage my status line.
I want to display many informations in the status line like (logo, text, save icon to invite the user to make a save, progressMonitor, etc...)
Here is the code I'm trying to use:
//////////In my ApplicationWindow createContents(Composite pParent) method //////////////
...
StatusLineManager sLManager = getStatusLineManager();
IProgressMonitor pm = sLManager.getProgressMonitor();
saveAction.setProgressMonitor(pm); //Pass the progressMonitor to my save action.
sLManager.setMessage(MY_LOGO, "Welcome message");
// Then I try to add an item to the status manager
StatusLineContributionItem slItem = new StatusLineContributionItem("Save", true, 10);
slItem.setText("Test");
sLManager.add(slItem);
...
///////////////////////
This code show only the logo and the welcome message when the application starts, but nothing about the item I've added.
Any help please??
Abdoulam