A bit of fun here with the new palette - it really shows that some of the tools need to sort out their enablement a bit better.
As an example the Select Tools do not really do much when the current layer is a raster. 1. Review a working example <modalTool categoryId="net.refractions.udig.tool.edit.create" class="net.refractions.udig.tools.edit.impl.PolygonTool" icon="icons/etool16/new_polygon_mode.gif" id="net.refractions.udig.tools.polygonEdit" name="%edit.polygon.name" onToolbar="true" toolCursorId="arrowCursor" tooltip="%edit.polygon.tooltip"> <cursor hotspotX="10" hotspotY="10" image="icons/pointers/edit_source.gif"/> <enablement> <and> <property propertyId="net.refractions.udig.project.FeatureStoreResourceProperty" expectedValue=""/> <or> <property propertyId="net.refractions.udig.project.ui.GeometryType" expectedValue="com.vividsolutions.jts.geom.MultiPolygon"/> <property propertyId="net.refractions.udig.project.ui.GeometryType" expectedValue="com.vividsolutions.jts.geom.Polygon"/> </or> </and> </enablement> </modalTool> 2. And then we should be able to do something similar for SelectTool ... <enablement> <property propertyId="net.refractions.udig.project.FeatureSourceResourceProperty" expectedValue=""/> </enablement> 3. Only trouble is that "FeatureSourceResourceProperty" does not exist - so we need to write it Can we do this as a separate pull request?? -- Jody Garnett
_______________________________________________ User-friendly Desktop Internet GIS (uDig) http://udig.refractions.net http://lists.refractions.net/mailman/listinfo/udig-devel
