I am developing an Engine Java application.I would like to use the ready-to-use buttons but I do not like the toolbar control.I used the techniques described here: http://resources.arcgis.com/en/help/arcobjects-java/concepts/engine/0001/000100000785000000.htm under the "Control commands without the ToolbarBean" subject but I changed the code a little to look like this:ICommand c = (ICommand)new ControlsSelectFeaturesTool(); This works nicely.Now I would like to create my buttons dynamically by some configuration file.I would like the software to read the file and create the buttons by the names found in the file.For example if the string in the file is "Controls.ControlsSelectFeaturesTool" I would like to run something like this:ICommand c = (ICommand)CreateObject("Controls.ControlsSelectFeaturesTool")Can somebody explain if this can be done and how?ThanksMody
switch(toolName) // toolName is a string from file { case "Controls.ControlsSelectFeaturesTool": ICommand c = (ICommand)new ControlsSelectFeaturesTool(); //more logic etc break; case "": //.... break; }
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.