Examples of ResourceDeleted


Examples of org.jboss.forge.addon.resource.events.ResourceDeleted

            {
            case CREATED:
               changes.add(new ResourceCreated(resource));
               break;
            case DELETED:
               changes.add(new ResourceDeleted(resource));
               break;
            case MODIFIED:
               changes.add(new ResourceModified(resource));
               break;
            }
View Full Code Here

Examples of org.jboss.forge.resource.events.ResourceDeleted

   {
      if (recursive)
      {
         if (_deleteRecursive(file, true))
         {
            resourceFactory.fireEvent(new ResourceDeleted(this));
            return true;
         }
         return false;
      }

      if ((file.listFiles() != null) && (file.listFiles().length != 0))
      {
         throw new RuntimeException("directory not empty");
      }

      if (OperatingSystemUtils.isWindows())
      {
         System.gc(); // ensure no lingering handles that would prevent deletion
      }

      if (file.delete())
      {
         resourceFactory.fireEvent(new ResourceDeleted(this));
         return true;
      }
      return false;
   }
View Full Code Here

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Examples of org.uberfire.workbench.events.ResourceDeleted

        } else if ( event.kind().equals( StandardWatchEventKind.ENTRY_RENAME ) ) {
            _affectedPath = convert( context.getOldPath() );
            result = new ResourceRenamed( convert( context.getPath() ), context.getMessage() );
        } else if ( event.kind().equals( StandardWatchEventKind.ENTRY_DELETE ) ) {
            _affectedPath = convert( context.getOldPath() );
            result = new ResourceDeleted();
        } else {
            _affectedPath = null;
            result = null;
        }
        if ( _affectedPath == null ) {
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.