Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Problem with StatusLineManager
Problem with StatusLineManager [message #465021] Fri, 02 December 2005 20:55 Go to next message
Eclipse UserFriend
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 Go to previous message
Veronika Irvine is currently offline Veronika IrvineFriend
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
Previous Topic:Problem with TableTreeViewer with SWT.CHECK on FEDORA CORE 3 -- HELP NEEDED!
Next Topic:Popup windows / date entry content completition
Goto Forum:
  


Current Time: Sat Dec 14 16:56:25 GMT 2024

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

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

Back to the top