How to close View/Perspectives through program? [message #205161] |
Wed, 03 March 2004 08:19  |
Eclipse User |
|
|
|
Hi,
How can I dynamically close/remove views from my perspective through
program, depending on some action I take in my workbench?
On the same lines, how can I dynamically close/remove perspective from my
window through program, depending on some action I take in my workbench?
Thanks,
Vishal
|
|
|
Re: How to close View/Perspectives through program? [message #220973 is a reply to message #205161] |
Fri, 02 April 2004 15:25  |
Eclipse User |
|
|
|
Originally posted by: jaitirth_shirole.hotmail.com
Hello Vishal and Group,
I am also stuck at the same problem.
There is a hideView() method in the IWorkbenchPage interface using
which a view can be closed. The name of the method says hideXX but
internally it closes the view.
My problem is :- in a workbench page, I have views opened of the
same IViewPart class. Through program I want to close one of them.
When I tried following the above solution, it doesn't close the
desired ViewPart, but closes some other view part. Don't know how to solve
this problem?
If you got any clues please reply at jaitirth_shirole@hotmail.com
"Vishal Khandelwal" <vishal_khandelwal@persistent.co.in> wrote in message
news:c24lqv$72b$1@eclipse.org...
> Hi,
> How can I dynamically close/remove views from my perspective through
> program, depending on some action I take in my workbench?
> On the same lines, how can I dynamically close/remove perspective from my
> window through program, depending on some action I take in my workbench?
>
> Thanks,
> Vishal
>
|
|
|
Powered by
FUDForum. Page generated in 0.02873 seconds