Examples of saveJavaSource()


Examples of org.jboss.forge.addon.parser.java.facets.JavaSourceFacet.saveJavaSource()

         err.println();
         return Results.fail("Syntax Errors found. See above");
      }
      else
      {
         javaResource = javaSourceFacet.saveJavaSource(source);
      }
      uiContext.setSelection(javaResource);
      return Results.success(getType() + " " + source.getQualifiedName() + " was created");
   }
View Full Code Here

Examples of org.jboss.forge.addon.parser.java.facets.JavaSourceFacet.saveJavaSource()

   {
      Project selectedProject = getSelectedProject(context);
      if (selectedProject != null)
      {
         JavaSourceFacet facet = selectedProject.getFacet(JavaSourceFacet.class);
         facet.saveJavaSource(field.getOrigin());
      }
      context.getUIContext().setSelection(javaResource);
   }

   @Override
View Full Code Here

Examples of org.jboss.forge.addon.parser.java.facets.JavaSourceFacet.saveJavaSource()

      else
      {
         SOURCETYPE decorated = decorateSource(context, project, source);
         if (decorated != null)
            source = decorated;
         javaResource = javaSourceFacet.saveJavaSource(source);
      }

      uiContext.setSelection(javaResource);
      return Results.success(getType() + " " + source.getQualifiedName() + " was created");
   }
View Full Code Here

Examples of org.jboss.forge.addon.parser.java.facets.JavaSourceFacet.saveJavaSource()

               {
                  Refactory.createEquals(javaSource, (FieldSource<?>[]) javaSource.getFields().toArray(new FieldSource[javaSource.getFields().size()]));
               }
            }
         }
         javaSourceFacet.saveJavaSource(javaSource);
        
        
      }

      return null;
View Full Code Here

Examples of org.jboss.forge.addon.parser.java.facets.JavaSourceFacet.saveJavaSource()

      JavaSourceFacet javaSourceFacet = project.getFacet(JavaSourceFacet.class);
      List<JavaResource> selection = new ArrayList<>();

      for (JavaClassSource javaClass : endpoints)
      {
         selection.add(javaSourceFacet.saveJavaSource(javaClass));
      }
      uiContext.setSelection(selection);
      return Results.success("Endpoint created");
   }
View Full Code Here

Examples of org.jboss.forge.addon.parser.java.facets.JavaSourceFacet.saveJavaSource()

      {
         applicationClass.addAnnotation(ApplicationPath.class).setStringValue(path);
      }
      try
      {
         facet.saveJavaSource(applicationClass);
      }
      catch (FileNotFoundException ffe)
      {
         throw new IllegalStateException(ffe);
      }
View Full Code Here

Examples of org.jboss.forge.addon.parser.java.facets.JavaSourceFacet.saveJavaSource()

               {
                  Refactory.createEquals(javaSource, (FieldSource<?>[]) javaSource.getFields().toArray(new FieldSource[javaSource.getFields().size()]));
               }
            }
         }
         javaSourceFacet.saveJavaSource(javaSource);
        
        
      }

      return null;
View Full Code Here

Examples of org.jboss.forge.addon.parser.java.facets.JavaSourceFacet.saveJavaSource()

      final Annotation<JavaClassSource> constraintAnnotation = addConstraintOnProperty(property, onAccessor,
               NotNull.class,
               message);

      JavaSourceFacet javaSourceFacet = project.getFacet(JavaSourceFacet.class);
      javaSourceFacet.saveJavaSource(constraintAnnotation.getOrigin());
   }

   public void addMinConstraint(Project project, JavaClassSource klass, String propertyName, boolean onAccessor,
            String message, String min)
            throws FileNotFoundException
View Full Code Here

Examples of org.jboss.forge.addon.parser.java.facets.JavaSourceFacet.saveJavaSource()

               Min.class,
               message);
      constraintAnnotation.setLiteralValue(min);

      JavaSourceFacet javaSourceFacet = project.getFacet(JavaSourceFacet.class);
      javaSourceFacet.saveJavaSource(constraintAnnotation.getOrigin());
   }

   public void addMaxConstraint(Project project, JavaClassSource klass, String propertyName, boolean onAccessor,
            String message, String max)
            throws FileNotFoundException
View Full Code Here

Examples of org.jboss.forge.addon.parser.java.facets.JavaSourceFacet.saveJavaSource()

               Max.class,
               message);
      constraintAnnotation.setLiteralValue(max);

      JavaSourceFacet javaSourceFacet = project.getFacet(JavaSourceFacet.class);
      javaSourceFacet.saveJavaSource(constraintAnnotation.getOrigin());
   }

   public void addSizeConstraint(Project project, JavaClassSource klass, String propertyName, boolean onAccessor,
            String message,
            String min, String max) throws FileNotFoundException
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.