Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [pde-dev] how to show a view dynamically

Thanks a lot..
It worked :-)

Nalaka

-----Original Message-----
From: pde-dev-bounces@xxxxxxxxxxx [mailto:pde-dev-bounces@xxxxxxxxxxx]
On Behalf Of Alessandro Assab
Sent: Thursday, July 06, 2006 1:02 PM
To: Eclipse PDE general developers list.
Subject: Re: [pde-dev] how to show a view dynamically

Hi Nalaka,
try this

IWorkbenchPage page = 
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
page.showView(viewID); //viewID the id of the view extension to use

Regards
Alessandro

nalaka gamage wrote:
> Hi all,
> I have created a new view extending ViewPart. Now I can see this new 
> view in windows=>show view. Now I require to show this view 
> dynamically in one of my action class without user selct menu option 
> windows=>show view. Is there a way to do this?
> I just go through the api's and one possible method was 
> createPartControl() methos. However the api doc says not to call it 
> specifically, rather let workbench call it internally. Has any one 
> done this before
>  
> Regards
> Nalaka
>
>
------------------------------------------------------------------------
> Do you Yahoo!?
> Everyone is raving about the all-new Yahoo! Mail Beta. 
>
<http://us.rd.yahoo.com/evt=42297/*http://advision.webevents.yahoo.com/h
andraisers> 
>
>
------------------------------------------------------------------------
>
> _______________________________________________
> pde-dev mailing list
> pde-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/pde-dev
>   

_______________________________________________
pde-dev mailing list
pde-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/pde-dev


Back to the top