Hello,
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);
slMgr.add(item);
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?