Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Status Line Contributions Displaying in the wrong order(Status Line Contributions)
Status Line Contributions Displaying in the wrong order [message #1044938] Fri, 19 April 2013 14:34
Terry Jahelka is currently offline Terry JahelkaFriend
Messages: 23
Registered: February 2012
Junior Member

I'm trying to add contribution items to the status line. Intent is different actions in my application can retrieve the appropriate contribution item and update it. However, every time I launch my client the order the contribution items appear changes.

IStatusLineManager slMgr = slMgr = ((IViewSite)site).getActionBars().getStatusLineManager();					

StatusLineContributionItem item = new StatusLineContributionItem(STATUS_LINE_LAST_UPDATED,StatusLineContributionItem.CALC_TRUE_WIDTH);

item = new StatusLineContributionItem(STATUS_LINE_ROW_COUNT,StatusLineContributionItem.CALC_TRUE_WIDTH);
slMgr.insertAfter(STATUS_LINE_LAST_UPDATED, item);

item = new StatusLineContributionItem(STATUS_LINE_NEW_ROW_COUNT,StatusLineContributionItem.CALC_TRUE_WIDTH);
slMgr.insertAfter(STATUS_LINE_ROW_COUNT, item);

item = new StatusLineContributionItem(STATUS_LINE_ACTIVE_RULE_SET,StatusLineContributionItem.CALC_TRUE_WIDTH);
slMgr.insertAfter(STATUS_LINE_NEW_ROW_COUNT, item);

How do I get the status line to render consistently?
Previous Topic:Eclipse Fully Dark Theme
Next Topic:Need to click Save All twice in juno
Goto Forum:

Current Time: Fri Nov 24 18:51:57 GMT 2017

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

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