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 7926575
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T18:50:02+00:00 2026-06-03T18:50:02+00:00

I am programming an Eclipse RCP application. I have a View on the left

  • 0

I am programming an Eclipse RCP application.
I have a View on the left and an editor on the right. The view is a menu. With a click on a button in the menu, the editor should open AND the view should change. The editor opens after the click but the view does not change.

Do I have to close the menu-view and open a new one? If yes, how?

If i write page.showView(ID_of_my_view_class.ID) before page.openEditor(..) it opens a new tab next to the displayed console with the logs.

current code:

    public Object execute(ExecutionEvent event) throws ExecutionException {
    this.log.info(this.getClass().getSimpleName() + " called");
    IWorkbenchWindow window = HandlerUtil.getActiveWorkbenchWindow(event);
    IWorkbenchPage page = window.getActivePage();
    KuenstlerEditorInput input = new KuenstlerEditorInput(new Kuenstler());
    try {
        page.openEditor(input, KuenstlerEditor.ID);
    } catch (PartInitException e) {
        MessageDialog.openError(window.getShell(), "Error",
                "Editor f¸r K¸nstler konnte nicht geˆffnet werden: "
                        + e.getMessage());
        this.log.error(e);
    }
    return null;
}

When I start the program, it looks like this: https://i.stack.imgur.com/1faPT.png
When I do the page.showView(the_ID.ID) command, it looks like this: https://i.stack.imgur.com/tsoP9.png

The view should appear on the left, instead of the menu with all the buttons.

  • 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-03T18:50:05+00:00Added an answer on June 3, 2026 at 6:50 pm

    Use the org.eclipse.ui.perspectives extension point to create a perspective, and then provide an implementation of IPerspectiveFactory which will allow you to define the location of the named views that you create.

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

Sidebar

Related Questions

This not a programming question but Most of the programmers using Eclipse should have
I'm currently programming on an eclipse RCP application in Java for an university project.
When programming in Eclipse I use small vertical bar on the right side of
I have been told that Eclipse is a good tool for programming in certain
I have been working on Eclipse recently. I am fairly new to java programming,
When programming in Eclipse I love to use the Open Resource dialog (Ctrl +
I've been programming Android in Eclipse for about a year now and I have
I'm developing a custom text editor for a programming language in Eclipse. Is it
I am new to Eclipse and Android programming in general but I have been
I am using Eclipse for Android programming. Is there a tool for view an

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.