How to hide and Show views???? [message #449371] |
Thu, 11 May 2006 10:54  |
Eclipse User |
|
|
|
Originally posted by: juavizga.hotmail.com
I have a Persective with several views, and the TABS disposition is the following:
----------------------------
|VIEW1 |VIEW2 |VIEW3 |VIEW4 |
| |
|VIEW5 |VIEW6 |
|---------------------------|
I want that by default views from 5 & 6 are hidden and when I click on view 1, then view 5 appears, and that when I click on view 2, view 5 gets hidden and view 6 appears.
I tried with:
IWorkbenchPage wbp=PlatformUI.getWorkbench().getActiveWorkbenchWindow().get ActivePage();
wbp.hideView(wbp.findView(MyView6.ID));
and
IWorkbenchPage wbp=PlatformUI.getWorkbench().getActiveWorkbenchWindow().get ActivePage();
wbp.showView(MyView5.ID);
But nothing. Does anybody know how can I do it?
Thanks.
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03981 seconds