[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.newcomer] Re: passing input to views at runtime??

On Tue, 08 Sep 2009 07:05:33 -0400, ankita wrote:

> Hi everyone,
> 
> I wanted to know that is this possible that we create views at runtime
> and then pass the input at runtime too. If yes, then kindly explain it
> with an example.
> 

You can use showView and pass IWorkbenchPage.VIEW_CREATE and cast
the returned IViewPart to your class. Then call any custom set#
methods you have created and finally call IWorkbenchPage.VIEW_ACTIVATE
to finish showing it.