On Monday, April 16, 2012 04:22:06 PM omur yavuz wrote: > I ve got a problem with modal tools :). i want to listen modal tool > selection change and activate my viewport based selection of the tool. For > example i ll make myviewpart only polygon tool and line tool selected > . i tried several methods to do ; > > 1) Listening Balackboard : its working to listen edit state , i can catch > starting editing but can't handle switching to another tool like zoom > 2) listening tool lifecycle : added IToolLifecycleListener , workbench > didn't call change event after i clicked tool. > > can you give me an advice ? maybe, you have a 3) option 3) add a listener at the layer, so your the viewpart could be enable if the selected layer allows polygon or line (Feature Type's geometry).
cheers -- Mauricio Pazos _______________________________________________ User-friendly Desktop Internet GIS (uDig) http://udig.refractions.net http://lists.refractions.net/mailman/listinfo/udig-devel
