contribute to status line [message #328127] |
Wed, 14 May 2008 15:55  |
Eclipse User |
|
|
|
Hi there,
I try to contribute some simple text to the status line.
I wrote a little plugin without any view, it shall simply write the
current mouse cursor position to the status line.
I tried to get some valid StatusLineManager but the only way I can get
it seems to be via a view. I don't have a view, so I try to search for
any resp. all ones:
IViewReference views[] =
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActi vePage().getViewReferences();
for (int i = 0; i < views.length; i++) {
IStatusLineManager line =
views[i].getView(false).getViewSite().getActionBars().getSta tusLineManager();
line.setMessage(msg);
line.update(true);
}
This is really ugly. Is there no straight forward way to contribute to
the status line without access to a certain view?
Best regards,
Hauke
|
|
|
|
Powered by
FUDForum. Page generated in 0.02860 seconds