Solved! Go to Solution.
ArcGIS 10.0 Tool Add-in.
ITool has a deactivate method that is called by the system when you click on another tool from the previous tool in use. How can I call that deactivate method? I can't seem to find a class that returns a reference to Tool.
ArcGIS 10.0 Tool Add-in.
ITool has a deactivate method that is called by the system when you click on another tool from the previous tool in use. How can I call that deactivate method? I can't seem to find a class that returns a reference to Tool.
java.lang.ClassCastException: com.esri.arcgis.systemUI.ICommandProxy cannot be cast to com.esri.arcgis.addins.desktop.Tool
IApplication app = GetMeSomehow(); app.CurrentTool = null; // (or 'Nothing' if VB)