[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.newcomer] Re: passing input to views at runtime??
|
- From: Dilton <diltonm@xxxxxxxxx>
- Date: Tue, 8 Sep 2009 17:51:36 +0000 (UTC)
- Newsgroups: eclipse.newcomer
- Organization: EclipseCorner
- User-agent: Pan/0.132 (Waxed in Black)
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.