[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform.swt] Re: Problem with StatusLineManager
|
You will probably get a better response to this Eclipse Workbench question
on the eclipse platform newsgroup.
news://news.eclipse.org/eclipse.platform
"Abdennabi Lamaangar" <abdoulam@xxxxxxxxx> wrote in message
news:5778280.1133556939368.JavaMail.root@xxxxxxxxxxxxxxxxxxxx
> 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