/*
 * Copyright 2013 Red Hat, Inc. and/or its affiliates.
 *
 * Licensed under the Eclipse Public License version 1.0, available at
 * http://www.eclipse.org/legal/epl-v10.html
 */
package org.jboss.forge.addon.javaee.validation.ui;

import org.jboss.forge.addon.javaee.validation.ValidationFacet;
import org.jboss.forge.addon.projects.stacks.annotations.StackConstraint;
import org.jboss.forge.addon.ui.context.UIContext;
import org.jboss.forge.addon.ui.util.Metadata;
import org.jboss.forge.roaster.model.source.JavaInterfaceSource;

/**
 *
 * @author <a href="antonio.goncalves@gmail.com">Antonio Goncalves</a>
 */
@StackConstraint(ValidationFacet.class)
public class ValidationNewGroupCommandImpl extends AbstractValidationCommand<JavaInterfaceSource> implements
         ValidationNewGroupCommand
{

   @Override
   public Metadata getMetadata(UIContext context)
   {
      return Metadata.from(super.getMetadata(context), getClass())
               .name("Constraint: New Group")
               .description("Create a Bean Validation group");
   }

   @Override
   protected String getType()
   {
      return "Constraint Group";
   }

   @Override
   protected Class<JavaInterfaceSource> getSourceType()
   {
      return JavaInterfaceSource.class;
   }
}
@@ -1130,24 +1130,195 @@
 roup%22;%0A   %7D%0A
+   %0A   @Override%0A   protected boolean supportsExtends()%0A   %7B%0A      return false;%0A   %7D%0A%0A   @Override%0A   protected boolean supportsImplements()%0A   %7B%0A      return false;%0A   %7D
 %0A   @Overrid
@@ -1426,8 +1426,9 @@
 ;%0A   %7D%0A%7D
+%0A

Update ValidationNewGroupCommandImpl.java