Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » How to close View/Perspectives through program?
How to close View/Perspectives through program? [message #205161] Wed, 03 March 2004 08:19 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
>
Previous Topic:Code analysis and AEP?
Next Topic:libpangoxft-1.0.so
Goto Forum:
  


Current Time: Sat May 24 00:25:30 EDT 2025

Powered by FUDForum. Page generated in 0.02873 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top