| Summary: | ToolItem.setWidth(SWT.SEPARATOR_FILL) does not do what the JavaDoc promises | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Thomas Singer <eclipse> |
| Component: | SWT | Assignee: | Carolyn MacLeod <carolynmacleod4> |
| Status: | CLOSED WONTFIX | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | eclipse.felipe, Silenio_Quarti |
| Version: | 3.7 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | stalebug | ||
|
Description
Thomas Singer
Silenio, isn't SEPARATOR_FILL a hint ? If so we need to say it in the doc. Yes, it is a hint currently. It only works for Mac/Cocoa shell toolbar (i. e. Shell.getToolBar()). Car, could you update the java doc? So there is currently no possibility to provide stretching separators on non-OSX systems, except of rewriting the whole toolbar stuff? I believe it is possible to implement it on top of the toolbar by adding a resize listener to the toolbar and dynamically changing the size (ToolItem.setWidth()) of a SWT.SEPARATOR item (as long as the toolbar is not wrappable). Currently, SWT.SEPARATOR_FILL items are treated the same as if they were SWT.SEPARATOR items in non MacOSX systems and on MacOSX for normal toolbars (toolbars other then Shell.getToolBar()). This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. If the bug is still relevant, please remove the "stalebug" whiteboard tag. |