3 Replies Latest reply on Feb 19, 2015 8:23 AM by

    [forge-dev]  Adding methods to the CommandController

      Hi all,

       

      I'm investigating how to refactor UICommands in the best way (see the

      analysis in https://issues.jboss.org/browse/FORGE-2109). But before

      refactoring, I would like to add a stronger test coverage so I make sure I

      don't break things.

       

       

      I was looking at CommandController that list of the command inputs :

       

      Map<String, InputComponent<?, ?>> getInputs();

       

       

      I would like to add the following commands

       

      InputComponent<?, ?> getInput(String input); // returns one input

      boolean hasInput(String input); // checks if the input is present

       

       

      What do you think ?

       

      --

      Antonio Goncalves

      Software architect and Java Champion

       

      Web site <http://www.antoniogoncalves.org/> | Twitter

      <http://twitter.com/agoncal> | LinkedIn <http://www.linkedin.com/in/agoncal>

      | Paris JUG <http://www.parisjug.org/> | Devoxx France

      <http://www.devoxx.fr/>