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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T17:09:18+00:00 2026-05-11T17:09:18+00:00

Question about Eclipse RCP and whole perspective/view/editor design – what is the best way

  • 0

Question about Eclipse RCP and whole perspective/view/editor design – what is the best way to create application which will display multiple windows on multiple monitors? Tutorials and book I’ve seen always pack RCP/SWT design into views inside perspective within single application window.

Should one window rule all others or they all should be equal (closing last one exits application)? How deal with the perspectives and views? Are there any other things we should know?

Environment: Eclipse Ganymede, Windows XP.

  • 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-05-11T17:09:19+00:00Added an answer on May 11, 2026 at 5:09 pm

    A single Eclipse workbench can create multiple windows. Each window is laid out using a perspective, so different windows could be set to different perspectives, or the same perspective, and you can switch perspectives in each window independently of the other windows.

    You can also set input for each window. This is useful if each window is working on different data (for example, each window could be connected to a different server or could be showing data from different databases that all have the same schema but different data).

    It may be that you are using windows only so that you can see different perspectives of the same data on different monitors. In that case you do not need to programatically create the windows but need only add the action supplied by the workbench. This can be done by modifying your ActionBarAdvisor class:

    add to the field declarations:

    private IWorkbenchAction newWindowAction;
    

    add to the code where you make the actions (typically a method called makeActions):

        newWindowAction = ActionFactory.OPEN_NEW_WINDOW.create(window);
        register(newWindowAction);
    

    add to the code where you create the menus:

        menu.add(newWindowAction);
    

    where menu is typically the Window menu. If you don’t have a Window menu already in your application and would like to create one, the following line will work:

        MenuManager menu = new MenuManager(
          "&Window", 
          IWorkbenchActionConstants.M_WINDOW);
    

    This will give you a menu item that will create a new window in the same way as the Window->New Window menu item in the Eclipse IDE.

    If, on the other hand, you want each window to show different data then you will need to open the new windows programatically. This allows you to set different input for each window. You will need a line of code something like:

    IWorkbenchPage newPage = window.openPage(inputObject);
    

    where inputObject contains information that identifies the data shown in the window. If you want to set the initial perspective this can be done by calling setPerspective on the page.

    You will want to set the title in each window:

    newPage.getWorkbenchWindow().getShell().setText(windowTitle);
    

    where windowTitle is a string describing the input to the window.

    You can fetch the input for a window as follows:

    window.getActivePage().getInput()
    

    You can then cast this to whatever class you are using as your window input.

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

Sidebar

Related Questions

Here's a use case: I have a desktop application (built using Eclipse RCP) which
I recently asked a question about Oracle Encryption. Along the way to finding a
I have a question about best practices regarding how one should approach storing complex
Following Izb's question about Best binary XML format for JavaME , I'm looking for
I'm a beginner with Eclipse RCP and I'm trying to build an application for
Today I have question about Eclipse . I use this IDE very long and
Please note: This is a question about the Eclipse plugin Subversive , and not
This is not an Eclipse-programming question, but rather a question about the Eclipse user-interface
I have a question about the eclipse. I want to write JSP by using
Hi I am new to php eclipse and I have a question about my

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.