Package repast.simphony.engine.environment

Examples of repast.simphony.engine.environment.ControllerRegistry


   * Invoked when an action occurs (i.e. then the menu item is clicked).
   * Creates a {@link DbOutputterDescriptorAction}, shows the wizard and adds to action to registry and scenario tree.
   */
  @Override
  public void actionPerformed(ActionEvent e) {
    ControllerRegistry registry = evt.getRegistry();
    Object contextID = evt.getContextID();
    DbOutputterDescriptorAction<DbOutputter, DbOutputterDescriptor> action = createAction((JFrame) SwingUtilities
        .getWindowAncestor(evt.getTree()), DataUtilities.getDataGathererDescriptors(registry, contextID), evt
        .getScenario(), contextID);
    if (action != null) {
      ControllerAction parent = registry.findAction(contextID, ControllerActionConstants.OUTPUTTER_ROOT);
      registry.addAction(contextID, parent, action);
      evt.addActionToTree(action);
    }
  }
View Full Code Here

TOP

Related Classes of repast.simphony.engine.environment.ControllerRegistry

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.