| Summary: | [RCP] setShow* methods have no effect after window is opened | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Nick Edgar <n.a.edgar> |
| Component: | UI | Assignee: | Platform UI Triaged <platform-ui-triaged> |
| Status: | RESOLVED WONTFIX | QA Contact: | |
| Severity: | normal | ||
| Priority: | P5 | Keywords: | helpwanted |
| Version: | 3.0 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows 2000 | ||
| Whiteboard: | stalebug | ||
|
Description
Nick Edgar
Kim, would you be able to have a look at this?
In 3.1 I made an (unreleased) patch which changed
public void setShowCoolBar(boolean show) {
showToolBar = show;
// @issue need to be able to reconfigure after window's controls created
}
to:
public void setShowCoolBar(boolean show) {
if (show != showToolBar) {
showToolBar = show;
window.updateLayout();
}
}
Likewise for setShowFastViewBars, setShowPerspectiveBar, setShowStatusLine and
setShowProgressIndicator.
But there have been subsequent changes here and I don't want to stomp on your toes.
This uses the following (new) method in WorkbenchWindow.
/**
* Updates the layout data for the default layout, and relays out the shell.
* Note that this will only have an effect if the default implementation of
* WorkbenchAdvisor.createWindowContents() has been invoked.
*/
void updateLayout() {
if (defaultLayout == null)
return;
updateLayoutDataForContents();
if (getShell() != null && !getShell().isDisposed()) {
getShell().layout();
}
}
Boris, I'm inclined to close this as WONTFIX but will defer to you. Prakash is now responsible for watching bugs in the [RCP] component area. 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. -- The automated Eclipse Genie. This bug is marked as stale for some time. If it is still relevant for the current release, please reopen and remove the stalebug whiteboard tag. |