Skip to content

Commit

Permalink
FORGE-1929: Fixed category name
Browse files Browse the repository at this point in the history
  • Loading branch information
gastaldi committed Jul 10, 2014
1 parent eaaec5f commit c8d9b37
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,12 @@
import org.jboss.forge.addon.ui.context.UIExecutionContext;
import org.jboss.forge.addon.ui.input.UIInput;
import org.jboss.forge.addon.ui.input.UISelectMany;
import org.jboss.forge.addon.ui.metadata.UICommandMetadata;
import org.jboss.forge.addon.ui.metadata.WithAttributes;
import org.jboss.forge.addon.ui.result.NavigationResult;
import org.jboss.forge.addon.ui.result.navigation.NavigationResultBuilder;
import org.jboss.forge.addon.ui.util.Categories;
import org.jboss.forge.addon.ui.util.Metadata;
import org.jboss.forge.furnace.util.Lists;
import org.jboss.forge.furnace.util.OperatingSystemUtils;
import org.jboss.forge.furnace.util.Strings;
Expand Down Expand Up @@ -70,6 +73,14 @@ public void initializeUI(UIBuilder builder) throws Exception
builder.add(accessControlAllowOrigin).add(accessControlAllowMethods).add(accessControlAllowHeaders);
}

@Override
public UICommandMetadata getMetadata(UIContext context)
{
return Metadata.from(super.getMetadata(context), getClass()).name("REST: New " + getType())
.description("Generate a " + getType())
.category(Categories.create("Java EE", "JAX-RS"));
}

@Override
protected String getType()
{
Expand Down

0 comments on commit c8d9b37

Please sign in to comment.