Package org.jboss.forge.resources.events

Examples of org.jboss.forge.resources.events.ResourceModified


      if (resourceFactory != null)
      {
         BeanManager manager = resourceFactory.getManagerInstance();
         if (manager != null)
         {
            manager.fireEvent(new ResourceModified(this));
         }
      }
   }
View Full Code Here


   private void fireResourceModified()
   {
      if (resourceFactory != null) {
         BeanManager manager = resourceFactory.getManagerInstance();
         if (manager != null) {
            resourceFactory.getManagerInstance().fireEvent(new ResourceModified(this), new Annotation[] {});
         }
      }
   }
View Full Code Here

      if (resourceFactory != null)
      {
         BeanManager manager = resourceFactory.getManagerInstance();
         if (manager != null)
         {
            manager.fireEvent(new ResourceModified(this));
         }
      }
   }
View Full Code Here

   private void fireResourceModified()
   {
      if (resourceFactory != null) {
         BeanManager manager = resourceFactory.getManagerInstance();
         if (manager != null) {
            resourceFactory.getManagerInstance().fireEvent(new ResourceModified(this), new Annotation[] {});
         }
      }
   }
View Full Code Here

   private void fireResourceModified()
   {
      if (resourceFactory != null) {
         BeanManager manager = resourceFactory.getManagerInstance();
         if (manager != null) {
            resourceFactory.getManagerInstance().fireEvent(new ResourceModified(this), new Annotation[] {});
         }
      }
   }
View Full Code Here

         // FIXME this should/can-not use the Maven Native file writer if we are going to abstract file APIs
         MavenXpp3Writer writer = new MavenXpp3Writer();
         FileWriter fw = new FileWriter(getPOMFile().getUnderlyingResourceObject());
         writer.write(fw, pom);
         fw.close();
         manager.fireEvent(new ResourceModified(getPOMFile()), new Annotation[] {});
      }
      catch (IOException e)
      {
         throw new ProjectModelException("Could not write POM file: " + getPOMFile(), e);
      }
View Full Code Here

         // FIXME this should/can-not use the Maven Native file writer if we are going to abstract file APIs
         MavenXpp3Writer writer = new MavenXpp3Writer();
         FileWriter fw = new FileWriter(getPOMFile().getUnderlyingResourceObject());
         writer.write(fw, pom);
         fw.close();
         manager.fireEvent(new ResourceModified(getPOMFile()), new Annotation[] {});
      }
      catch (IOException e)
      {
         throw new ProjectModelException("Could not write POM file: " + getPOMFile(), e);
      }
View Full Code Here

         // FIXME this should/can-not use the Maven Native file writer if we are going to abstract file APIs
         MavenXpp3Writer writer = new MavenXpp3Writer();
         FileWriter fw = new FileWriter(getPOMFile().getUnderlyingResourceObject());
         writer.write(fw, pom);
         fw.close();
         manager.fireEvent(new ResourceModified(getPOMFile()), new Annotation[] {});
      }
      catch (IOException e)
      {
         throw new ProjectModelException("Could not write POM file: " + getPOMFile(), e);
      }
View Full Code Here

      if (resourceFactory != null)
      {
         BeanManager manager = resourceFactory.getManagerInstance();
         if (manager != null)
         {
            resourceFactory.getManagerInstance().fireEvent(new ResourceModified(this), new Annotation[] {});
         }
      }
   }
View Full Code Here

         // FIXME this should/can-not use the Maven Native file writer if we are going to abstract file APIs
         MavenXpp3Writer writer = new MavenXpp3Writer();
         FileWriter fw = new FileWriter(getPOMFile().getUnderlyingResourceObject());
         writer.write(fw, pom);
         fw.close();
         manager.fireEvent(new ResourceModified(getPOMFile()), new Annotation[] {});
      }
      catch (IOException e)
      {
         throw new ProjectModelException("Could not write POM file: " + getPOMFile(), e);
      }
View Full Code Here

TOP

Related Classes of org.jboss.forge.resources.events.ResourceModified

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.