Eclipse RCP App - Multi-Window Design for Multiple Monitors

The question about Eclipse RCP and the whole perspective / view / editor is what is the best way to create an application that displays multiple windows on multiple monitors? The tutorials and books I've seen always put together the RCP / SWT design in perspective views in a single application window.

If one window controls all the others, or should all of them be equal (closing the last exit from the application)? How to deal with prospects and opinions? Are there other things we need to know?

Environment: Eclipse Ganymede, Windows XP.

+5
source share
1 answer

Eclipse . , , .

. , (, , , ).

, , . , , . , ActionBarAdvisor:

:

private IWorkbenchAction newWindowAction;

, ( , makeActions):

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

, :

    menu.add(newWindowAction);

"". , :

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

, , Window- > New Window Eclipse IDE.

, , , , . . , :

IWorkbenchPage newPage = window.openPage(inputObject);

inputObject , , . , , setPerspective .

:

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

windowTitle - , .

:

window.getActivePage().getInput()

, .

+7

All Articles