Package org.eclipse.core.resources

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


        IResourceDelta delta = getDelta(project);
        final boolean[] changed = new boolean[1];
        ISigilProjectModel sigil = SigilCore.create(project);
        final IPath bldRoot = sigil.findBundleLocation().removeLastSegments(1);

        delta.accept(new IResourceDeltaVisitor()
        {
            public boolean visit(IResourceDelta delta) throws CoreException
            {
                if (!changed[0])
                {
View Full Code Here


            default:
                visitor = new NoOpVisitor();
            }
            if (rootDelta != null) {
                try {
                    rootDelta.accept(visitor);
                } catch (final CoreException e) {
                    ErlLogger.warn(e);
                }
            }
            final Set<IProject> prjs = Sets.newHashSet();
View Full Code Here

    @Override
    public void resourceChanged(final IResourceChangeEvent event) {
        final IResourceDelta delta = event.getDelta();
        try {
            delta.accept(new IResourceDeltaVisitor() {

                @Override
                public boolean visit(final IResourceDelta aDelta) throws CoreException {
                    final IResource res = aDelta.getResource();
                    if (res.getLocation().equals(new Path(filePath))) {
View Full Code Here

        final HashSet<IResource> changedElements = new HashSet<IResource>();

        try {
            final IResourceDelta delta = event.getDelta();
            if (delta != null) {
                delta.accept(new ProjectErrorVisitor(changedElements));
            }
        } catch (final CoreException e) {
            ErlLogger.error(e);
        }
View Full Code Here

      return;
    }
    final ErlDeltaProcessor deltaProcessor = new ErlDeltaProcessor();
    try {
      IResourceDelta _delta = event.getDelta();
      _delta.accept(deltaProcessor);
    } catch (final Throwable _t) {
      if (_t instanceof CoreException) {
        final CoreException e = (CoreException)_t;
        ErlLogger.error(e);
      } else {
View Full Code Here

    public void resourceChanged(final IResourceChangeEvent event) {
        final IResourceDelta delta = event.getDelta();
        try {
            if (delta != null) {
                // ErlLogger.debug("change " + event.toString());
                delta.accept(this);
            }
        } catch (final CoreException e) {
            ErlLogger.warn(e);
        }
    }
View Full Code Here

            return;
        }

        try {
            final long time = System.currentTimeMillis();
            delta.accept(new IResourceDeltaVisitor() {
                @Override
                public boolean visit(final IResourceDelta theDelta) throws CoreException {
                    final IResource resource = theDelta.getResource();
                    if (!(resource instanceof IContainer)) {
                        return false;
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

    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

    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

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.