On Monday, January 28, 2013 08:24:23 PM Amit Shukla wrote:
> Hello,
>
> I have two different views
> 1- Data
> 2- Result
>
> in Data viewpart I have created some input variables using this values I
> have to apply query and display results in the table format in Result
> viewPart .
>
> Here is my button click event
>
> btnQuery_2.addMouseListener(new MouseAdapter() {
> @Override
> public void mouseUp(MouseEvent e) {
>
> //getdata();// get inputdata provided by user
> IViewPart viewPart =
> PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().findVie
> w("customproduct.result"); IWorkbenchPage page =
> PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
> if (!page.isPartVisible(viewPart))
> page.bringToTop(viewPart);
> }
> });
> when we click on query button I want to create table and display it in
> Result viewPart .
>
> I don't know
> * how to add Result viewPart in active page with specific location (at
> bottom to editor)
> * how to add table in result viewpart
>
>
> Thanks
> Amit
First idea,
Create a composite ResultComposite that contains the result table. Set this
composite has "invisible".
public void createPartControl(Composite parent) {
...
resultComposite = new ResultComposite(parent, SWT.NONE);
resultComposite.setVisible(false);
...
Thus when you want to present the result, fill that table and
resultComposite.setVisible(true)
hope it help you
--
Mauricio Pazos
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel