This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 137813 - StatusLineElementProviders does not honor ordering attributes
Summary: StatusLineElementProviders does not honor ordering attributes
Status: RESOLVED WORKSFORME
Alias: None
Product: platform
Classification: Unclassified
Component: Lookup (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker with 1 vote (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-20 10:57 UTC by _ tboudreau
Modified: 2008-12-22 11:44 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ tboudreau 2008-06-20 10:57:04 UTC
I am registering a StatusLineElementProvider with the following file contents in META-INF/services:

org.netbeans.modules.breadcrumb.StatusLineProvider
#position=-2147483648

to try to position my provider to the extreme left of the status bar.

No matter what I do, it always appears at the extreme right.  I would guess that the status bar and progress bar are getting preferential treatment.  It would 
be nicer if they were registered in the normal way, so that they could be ordered - in my case, the component I am adding really belongs to the left of the 
statusbar, or possibly between it and the progress bar.
Comment 1 _ tboudreau 2008-06-20 11:06:41 UTC
Update:  It appears this *does* work on JDK 5 on Mac OS, but not on JDK 6.  It also appears to be unusable because the component gets moved around 
violently as the status text changes.

Probably the layout of the statusbar should allocate percentages of space or something.
Comment 2 David Simonek 2008-06-20 11:41:56 UTC
Author of StatusLineElementProvider is Jirka, passing to him. Please reassign further if I'm wrong, I don't know who own
this at this time.
Comment 3 Jiri Rechtacek 2008-06-20 13:11:01 UTC
StatusLineElementProvider just reads element from the system lookup which should return them by given positioning.
Reassigned to lookup for evaluation.
Comment 4 Jaroslav Tulach 2008-08-05 08:42:29 UTC
Provide unit test please.