0

I have 3 views in a window. The first view has content from a tree viewer. The second view has content in FillLayout. Both views get the data from the DB. Once I click on a link from the second view, I get the new window popping out. But this window looses both first and second views. I don't know what I am missing here. Any insight is highly appreciated.

Kumar S
  • 431
  • 2
  • 6
  • 16
  • What window are you opening? Could you paste some code snippet? – Kris Aug 25 '11 at 06:24
  • Here is the code snippet: button1 exists in window 1 : Buttton1.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { try { PlatformUI.getWorkbench().openWorkbenchWindow(Perspective.ID,null); } catch (WorkbenchException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } } }); – Kumar S Aug 27 '11 at 00:21

1 Answers1

0

I think the window you are opening is showing just the views which are not opened in other windows, thats why you see just a single view. You should search for other ways of opening a new window (as far as I know there are many ways and openWorkbenchWindow is just one of them) Have a look here for some help, looks quite similar to your problem.

Community
  • 1
  • 1
Kris
  • 5,714
  • 2
  • 27
  • 47