Problem with StatusLineManager [message #465021] |
Fri, 02 December 2005 20:55 |
Eclipse User |
|
|
|
Originally posted by: abdoulam.gmail.com
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
|
|
|
Re: Problem with StatusLineManager [message #465084 is a reply to message #465021] |
Mon, 05 December 2005 15:27 |
Veronika Irvine Messages: 1272 Registered: July 2009 |
Senior Member |
|
|
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@gmail.com> wrote in message
news:5778280.1133556939368.JavaMail.root@cp1.javalobby.org...
> 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
|
|
|
Powered by
FUDForum. Page generated in 0.01962 seconds