Summary: | [Contributions] Status line message label should allow for standard appearance (bevel border) | ||
---|---|---|---|
Product: | [Eclipse Project] Platform | Reporter: | Florian Priester <fwp> |
Component: | UI | Assignee: | Platform UI Triaged <platform-ui-triaged> |
Status: | ASSIGNED --- | QA Contact: | |
Severity: | normal | ||
Priority: | P5 | CC: | eclipse |
Version: | 3.1 | Keywords: | helpwanted |
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Whiteboard: |
Description
Florian Priester
2005-07-25 09:45:14 EDT
Workaround (terrible hack): --- import org.eclipse.jface.action.*; import org.eclipse.swt.*; import org.eclipse.swt.custom.*; import org.eclipse.swt.widgets.*; import java.lang.reflect.*; public class MyStatusLineManager extends StatusLineManager { public Control createControl(Composite parent, int style) { Control ctrl = super.createControl(parent, style); try { Field fld = ctrl.getClass().getDeclaredField("fMessageLabel"); fld.setAccessible(true); CLabel oldLbl = (CLabel) fld.get(ctrl); if ((oldLbl.getStyle() & SWT.SHADOW_IN) == 0) { CLabel newLbl = new CLabel((Composite) ctrl, SWT.SHADOW_IN); newLbl.setForeground(oldLbl.getForeground()); newLbl.setText (oldLbl.getText()); newLbl.setImage (oldLbl.getImage()); try { fld.set(ctrl, newLbl); oldLbl.dispose(); } catch (Exception ex) { newLbl.dispose(); } } } catch (Exception ex) { } return ctrl; } } There are no plans to work on this feature (In reply to comment #2) > There are no plans to work on this feature > Could this be position be reconsidered? It seems like an easy and very useful thing to do. As it is, StatusLineManager is not usable for standalone JFace applications if one wants to have a standard look-and-feel under Windows. If there is interest we can certainly reopen It should have been mentioned in comment #0 that the bevel appearance is really only appropriate for the Windows Classic Theme. Under the XP Theme, status bars usually have a different look. This means that, as with bug 63570, the right thing would be to have a native status bar control which SWT would have to provide (bug 88837) and then make JFace (and the Eclipse SDK) use it. I think this bug goes to Duong as part of contributions. Assigning to component owner PW 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. |