On Tuesday, January 29, 2013 07:37:45 PM Amit Shukla wrote:
> Thanks for reply, But I want to display result in another view like
> TableView in udig. I have create a viewpart for displaying result, but it
> is not added in perspective so that it is not present in
> activeworkbenchwindow or activepage. 
> I want to add viewpart at the bottom
> and in that viewpart i want to display result. On button click how to add
> viewpart?????
To open a new view  you could use the following idiom

ResultView view = (ResultView) ApplicationGIS.getView(true, ResultView.ID);
if (view == null) {
        IWorkbenchPage page =PlatformUI
                 .getWorkbench()
                       .getActiveWorkbenchWindow()
                                     .getActivePage();
                view = (ResultView) page.findView(ResultView.ID);
}

To display this view at the botton I think that  you will need a new 
IFolderLayout in the IPageLayout  to contain this ResultView 

> 
> Thanks Mauricio Pazos once again
> 
> Regards
> Amit
-- 
Mauricio Pazos
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel

Reply via email to