Package org.jboss.forge.addon.javaee.facets

Examples of org.jboss.forge.addon.javaee.facets.JavaEESpecFacet


   }

   @Override
   public Result execute(final UIExecutionContext context) throws Exception
   {
      JavaEESpecFacet chosen = javaEEVersion.getValue();
      if (facetFactory.install(getSelectedProject(context.getUIContext()), chosen))
      {
         return Results.success("JavaEE " + chosen.getSpecVersion() + " has been installed.");
      }
      return Results.fail("Could not install JavaEE " + chosen.getSpecVersion());
   }
View Full Code Here


   }

   @Override
   public Result execute(final UIExecutionContext context) throws Exception
   {
      JavaEESpecFacet chosen = javaEEVersion.getValue();
      if (facetFactory.install(getSelectedProject(context.getUIContext()), chosen))
      {
         // This facet may activate other facets, so better invalidate the cache
         projectFactory.invalidateCaches();
         return Results.success("JavaEE " + chosen.getSpecVersion() + " has been installed.");
      }
      return Results.fail("Could not install JavaEE " + chosen.getSpecVersion());
   }
View Full Code Here

TOP

Related Classes of org.jboss.forge.addon.javaee.facets.JavaEESpecFacet

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.