Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Problem with perspective change after last update [20091214]
Problem with perspective change after last update [20091214] [message #504173] Thu, 17 December 2009 14:44 Go to next message
Aleksandar Pavlov is currently offline Aleksandar PavlovFriend
Messages: 79
Registered: July 2009
Member
Hi friends,
yesterday I updated my RAP installation from the Eclipse software
updates menu and created new target platform with the new jars (built on
14th Dec).
Now I found out that my project doesn't work anymore. The problem is
that the programmatical perspective switch doesn't happen. My command
contains the line:

PlatformUI.getWorkbench().openWorkbenchWindow("myProjectID.perspectiveMain ",
null);

The command is executed after login button click.

When I switch back the the previous target platform (built on 17th of
August) everything works.
Any ideas what happens?
Thanks in advance,
Aleks
Re: Problem with perspective change after last update [20091214] [message #504208 is a reply to message #504173] Thu, 17 December 2009 16:44 Go to previous messageGo to next message
Rüdiger Herrmann is currently offline Rüdiger HerrmannFriend
Messages: 581
Registered: July 2009
Senior Member
Hi Aleks,

would you please file a bug report so that we can keep track of the
problem.

TIA
Rüdiger

On 17.12.2009 15:44, Aleksandar Pavlov wrote:
> Hi friends,
> yesterday I updated my RAP installation from the Eclipse software
> updates menu and created new target platform with the new jars (built on
> 14th Dec).
> Now I found out that my project doesn't work anymore. The problem is
> that the programmatical perspective switch doesn't happen. My command
> contains the line:
>
> PlatformUI.getWorkbench().openWorkbenchWindow("myProjectID.perspectiveMain ",
> null);
>
> The command is executed after login button click.
>
> When I switch back the the previous target platform (built on 17th of
> August) everything works.
> Any ideas what happens?
> Thanks in advance,
> Aleks
Re: Problem with perspective change [message #504532 is a reply to message #504208] Mon, 21 December 2009 09:53 Go to previous messageGo to next message
Aleksandar Pavlov is currently offline Aleksandar PavlovFriend
Messages: 79
Registered: July 2009
Member
Rüdiger Herrmann wrote:
> would you please file a bug report so that we can keep track of the
> problem.

Hello again,
Interestingly enough I couldn't create a snippet reproducing the
problem. In a small exemplary project the perspective switch works fine.
However, I changed the approach for login from:

PlatformUI.getWorkbench().openWorkbenchWindow("myProject.perspectiveMain ",
null);

to:

PlatformUI.getWorkbench().showPerspective("myProject.perspectiveMain ",
PlatformUI.getWorkbench().getActiveWorkbenchWindow());

But now I have new problem for the logout command, the code:

IWorkbenchWindow activeWorkbenchWindow =
PlatformUI.getWorkbench().getWorkbenchWindows()[0];

PlatformUI.getWorkbench().showPerspective("myProject.perspectiveLogin ",
activeWorkbenchWindow);

throws SWTException "Widget disposed".

PlatformUI.getWorkbench().getActiveWorkbenchWindow() also throws
SWTException "Widget disposed" when I use it derectly.

Could someone give me suggestions what is happening with my perspectives
and what other ways are there for switching them.

Thanks a lot,
Aleks
Re: Problem with perspective change [message #504615 is a reply to message #504532] Mon, 21 December 2009 19:05 Go to previous message
Rüdiger Herrmann is currently offline Rüdiger HerrmannFriend
Messages: 581
Registered: July 2009
Senior Member
as you are metnioning a "logout" scenario, are you executing the
code *after* the workbench was closed? If so, that would explain the
exception.
If you have a snippet to reproduce and think this is a bug, please
open a bugzilla.


On 21.12.2009 10:53, Aleksandar Pavlov wrote:
> Rüdiger Herrmann wrote:
>> would you please file a bug report so that we can keep track of the
>> problem.
>
> Hello again,
> Interestingly enough I couldn't create a snippet reproducing the
> problem. In a small exemplary project the perspective switch works fine.
> However, I changed the approach for login from:
>
> PlatformUI.getWorkbench().openWorkbenchWindow("myProject.perspectiveMain ",
> null);
>
> to:
>
> PlatformUI.getWorkbench().showPerspective("myProject.perspectiveMain ",
> PlatformUI.getWorkbench().getActiveWorkbenchWindow());
>
> But now I have new problem for the logout command, the code:
>
> IWorkbenchWindow activeWorkbenchWindow =
> PlatformUI.getWorkbench().getWorkbenchWindows()[0];
>
> PlatformUI.getWorkbench().showPerspective("myProject.perspectiveLogin ",
> activeWorkbenchWindow);
>
> throws SWTException "Widget disposed".
>
> PlatformUI.getWorkbench().getActiveWorkbenchWindow() also throws
> SWTException "Widget disposed" when I use it derectly.
>
> Could someone give me suggestions what is happening with my perspectives
> and what other ways are there for switching them.
>
> Thanks a lot,
> Aleks
Previous Topic:table question
Next Topic:Memory is exhausted quickly during development
Goto Forum:
  


Current Time: Fri Apr 19 15:26:34 GMT 2024

Powered by FUDForum. Page generated in 0.02136 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top