Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8340681
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T05:14:50+00:00 2026-06-09T05:14:50+00:00

In my RCP application I use this code to switch perspective : IWorkbenchWindow window

  • 0

In my RCP application I use this code to switch perspective :

IWorkbenchWindow window = getViewSite().getWorkbenchWindow();
window.getWorkbench().showPerspective(PRODUCT_PERSPECTIVE_ID, window);

I didn’t change my code but I changed my developement environnement from

java 6 64bits + windows + Eclipse Indigo

to

java 7 32bits + windows + Eclipse Juno

And now the perspective doesn’t switch any more, with no exception and nothing suspect visible in debug.

I didn’t find any bug report.

Is there an explanation ? A workaround ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T05:14:54+00:00Added an answer on June 9, 2026 at 5:14 am

    I have run into this problem as well. As far as I can tell, it is a regression in Juno (4.2.0). I used the debugger to step through the call to showPerspective(). At no point was any explicit attempt made to actually change the perspective. Perhaps there is an internal event listener missing, or perhaps the port of showPerspective() to the new framework is incomplete.

    As a work-around, the following code successfully changed perspectives for me:

    IWorkbenchWindow window = getViewSite().getWorkbenchWindow();
    IPerspectiveRegistry registry = workbench.getPerspectiveRegistry();
    IWorkbenchPage page = window.getActivePage();
    page.setPerspective(registry.findPerspectiveWithId(PRODUCT_PERSPECTIVE_ID));
    

    Depending upon the context in which these calls are made, you might want to null-guard some of these calls, or check Workbench.isClosing() to be safe.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is regarding an automation I need to use GEF in RCP application. In
Can I use Eclipse RCP framework with google's window builder pro for desktop application
I have the following code in my RCP application: EntityManagerFactory emf = Persistence.createEntityManagerFactory(todos); EntityManager
Here's a use case: I have a desktop application (built using Eclipse RCP) which
I want to use LWJGL in an Eclipse RCP application, but either using the
I like to use the navigation history provided by Eclipse in my RCP Application.
I develop an Eclipse RCP application which makes heavy use of OSGi bundles which
We are developing an Eclipse RCP application. We decided to use SVN for revision
I have an Eclipse RCP application where I use NSIS to generate the exe
I would like to use CNF in my RCP application, but I need add

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.