5 Replies Latest reply on Feb 3, 2014 6:08 AM by gastaldi

    New Command isn't picked up by Forge 2.0 in my addon

    rdul064

      Hi,

       

      I'm trying to create a custom command in an addon.

       

      So I followed a bit the documentation which is their on the github space and looked at the javaee addon code.

       

      I created a class which extends AbstractUICommand

       

      And I have the following method.

      
      @Override
      public UICommandMetadata getMetadata(UIContext context) {
           return Metadata.forCommand(PrimeFacesSetup.class).name("primefaces-setup")
                .description("Setup PrimeFaces in your project")
                .category(Categories.create("PrimeFaces"));
      }
      
      
      

       

       

      The addon can be installed and I see in the log that it is started.

       

      But I can't find my command in the list when i do command-list.

       

      Do I need to register the Command in some way?

       

      Thanks

      Rudy De Busscher