|
Re: It seems a Bug when calling "WorkbenchPage.resetPerspective" [message #520115 is a reply to message #520081] |
Thu, 11 March 2010 03:54 |
|
Hi Wayne,
have you tried the same code in RCP? The rule of thumb is: if it works
in RCP, but fails in RAP, then it's likely to be a bug in RAP.
Did you change the workbench layout by overriding
ApplicationWorkbenchAdvisor#createWindowContents? I remember that it's
easy to screw things up there....
Ralf
wayne wrote:
> My Env: Eclipse 3.5 RAP 1.3M4
>
> Please consider this scenario: custom define PresentationFactory, don't
> show CoolBar in ApplicationWorkbenchWindowAdvisor
> In this case, when calling resetPerspective, as per the code in
> WorkbenchPage.resetPerspective()
>
> public void resetPerspective() {
> // Run op in busy cursor.
> // Use set redraw to eliminate the "flash" that can occur in the
> // coolbar as the perspective is reset.
> ICoolBarManager2 mgr = (ICoolBarManager2)
> window.getCoolBarManager2();
> try {
> mgr.getControl2().setRedraw(false);
> BusyIndicator.showWhile(null, new Runnable() {
> public void run() {
> busyResetPerspective();
> }
> });
> } finally {
> mgr.getControl2().setRedraw(true);
> }
> }
>
> mgr.getControl2() will be null because we setShowCoolBar(false); Then an
> exception will be throw.
> Isn't is a bug?
>
>
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03666 seconds