Package org.eclipse.core.resources

Examples of org.eclipse.core.resources.IResourceDelta.accept()


  private void performIncrementalBuild() throws CoreException {
    final ProjectModel projectModel = model.getModel(getProject());
   
    IResourceDelta delta = getDelta(getProject());
    delta.accept(new IResourceDeltaVisitor() {

      public boolean visit(IResourceDelta delta) throws CoreException {
        if (delta.getResource() instanceof IFolder) {
          return true;
        }
View Full Code Here


    public void resourceChanged(final IResourceChangeEvent event) {
        try {
            if (event.getType() == IResourceChangeEvent.POST_CHANGE) {
                IResourceDelta delta = event.getDelta();
                if (delta != null) {
                    delta.accept(new IResourceDeltaVisitor() {
                        public boolean visit(IResourceDelta delta) throws CoreException {
                            IResource resource = delta.getResource();
                            removeElementsFromResource(resource);
                            boolean result = true;
                            if (delta.getKind() != IResourceDelta.REMOVED) {
View Full Code Here

    @Override
    public void resourceChanged(IResourceChangeEvent event) {
      IResourceDelta delta = event.getDelta();
      try {
        if (delta != null)
          delta.accept(this);
      } catch (CoreException exception) {
        // What should be done here?
      }
    }
View Full Code Here

             }
         return true;
         }
    };
    try {
      rootDelta.accept(visitor);
    } catch(CoreException e){
      System.out.println(e.getMessage());
      e.printStackTrace();
    }
  }
View Full Code Here

   */
  public final void resourceChanged(IResourceChangeEvent event) {
    IResourceDelta delta= event.getDelta();
    try {
      if(delta != null && isInstalled)
        delta.accept(this);
    }
    catch(CoreException coreException) {
      ErrorDialog.openError(editorPart.getSite().getShell(), Messages.EditorFileSynchronizer_internal_error, coreException.getMessage(),
          coreException.getStatus());
    }
View Full Code Here

              _xifexpression = _fullPath.isPrefixOf(editorFilePath);
            }
            return _xifexpression;
          }
        };
        _delta.accept(_function);
      }
    } catch (Throwable _e) {
      throw Exceptions.sneakyThrow(_e);
    }
  }
View Full Code Here

  }

  protected IResourceDelta createSaveDelta() throws CoreException {
    IResourceDelta javaResource = mock(IResourceDelta.class);
    when(javaResource.getFullPath()).thenReturn(new Path("a.java"));
    javaResource.accept((IResourceDeltaVisitor) anyObject());

    return createResourceDelta(project, new IResourceDelta[] { javaResource });
  }
}
View Full Code Here

          }
          return true;
        }
      };
      try {
        delta.accept(visitor);
      }
      catch (CoreException e) {
        // XXX open error dialog with syncExec or print to log file
        e.printStackTrace();
      }
View Full Code Here

public class WodParserCacheInvalidator implements IResourceChangeListener, IResourceDeltaVisitor {
  public void resourceChanged(IResourceChangeEvent event) {
    IResourceDelta delta = event.getDelta();
    if (delta != null) {
      try {
        delta.accept(this);
      }
      catch (CoreException e) {
        Activator.getDefault().log(e);
      }
    }
View Full Code Here

        fullBuildDeltaVisitor.buildStarted(project);
        project.accept(fullBuildDeltaVisitor);
      }
      if (deltaVisitor != null && projectDelta != null) {
        deltaVisitor.buildStarted(project);
        projectDelta.accept(deltaVisitor);
      }
    } finally {
      this.notifyBuildPreparationDone(kind, args, monitor, buildCache);

      if (fullBuildDeltaVisitor != 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.