Have a look at the initial tool example, where a runnable is used to update the
status line from the display thread.
Your tool should also make sure that the view is on screen, has been
constructed and so on. The controls may not be created until the user has
brought the view to the front for example.
--
Jody Garnett
On Monday, 31 December 2012 at 4:38 PM, Amit Shukla wrote:
> Hello all,
>
> I have created copy of selection tool. And I want to display some information
> on select of layer in viewPart.
>
> I have created one function in my custom viewPart....
>
> public void setItems(String dist , String panc , String vil ) {
> lbldist.setText(dist);
> lblpan.setText(panc);
>
> lblvil.setText(vil);
> }
> As I call the function from custom_selection tool
>
> adminboundary.setItems(dist, panc, vil);
>
> But here nullpointerexception occure, "lbldist" is null.
>
> How do I change the label from selection tool.....
>
> Thanks
> Amit
>
> _______________________________________________
> User-friendly Desktop Internet GIS (uDig)
> http://udig.refractions.net
> http://lists.refractions.net/mailman/listinfo/udig-devel
>
>
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel