Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » showing or disposing a view programmatically
showing or disposing a view programmatically [message #437215] Tue, 01 June 2004 13:58 Go to next message
Eclipse UserFriend
Originally posted by: sunay.yaldiz.gentleware.com

Hello all,

Is it possible to call "show view XXX" programmatically(where the view
id is available of course), without intervention of the user? And also,
how can I again programmatically close the view(I tried calling
dispose() on a view intance but it behaved quite strangely).

Sunay
Re: showing or disposing a view programmatically [message #437298 is a reply to message #437215] Wed, 02 June 2004 20:01 Go to previous message
Chengdong Li is currently offline Chengdong LiFriend
Messages: 36
Registered: July 2009
Member
Sunay Yaldiz wrote:

> Hello all,

> Is it possible to call "show view XXX" programmatically(where the view
> id is available of course), without intervention of the user? And also,
> how can I again programmatically close the view(I tried calling
> dispose() on a view intance but it behaved quite strangely).

> Sunay

To show a view:
===============
getSite().getPage().showView(ObjectChartView.ID_VIEW)

to hide a view:
===============
getSite().getPage().hideView(instance);

However, when the view trying to hide itself, it seems that it will
dispose the parent composite which you can get during the
"createPartControl()".

-Chengdong
Previous Topic:Using Eclipse On Unix
Next Topic:createPartControl and view
Goto Forum:
  


Current Time: Tue Apr 23 07:22:16 GMT 2024

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

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

Back to the top