deidrev

ControlsAddDataCommand onClick() fails silently

Discussion created by deidrev on Aug 24, 2012
Hi All

I'm currently updating our java application to work with ArcGIS 10.1.  While using ArcGIS 9.3 and 10.0, we had a ToolbarBean which contained a ControlsAddDataCommand as an item (among other menu items).

After updating to 10.1, all the other menu items continue to work (ControlsOpenDocCommand, ControlsSaveAsDocCommand)... however  ControlsAddDataCommand.onClick is not behaving correctly.  No exception is thrown, nothing appears in the log, but nothing happens - it appears to fail silently.

Nothing tricky was done to create the object or the toolbar its in...
toolbarBean = new ToolbarBean();
   try {
    toolbarBean.addItem(new ControlsOpenDocCommand(), 0, -1, true, 0, 1);
    toolbarBean.addItem(new ControlsAddDataCommand(), 0, -1, false, 0, 1);
    toolbarBean.addItem(new ControlsSaveAsDocCommand(), 0, -1, false, 0, 1);
    } catch (IOException e) {
    ESRIPluginArc10_1.api.log(getClass(), Level.WARNING,
      "Could not initialise ESRI toolbar properly", e);
   }


Has something changed that I should be aware of? Is this a known bug?

Outcomes