Package org.eclipse.core.resources

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


                ITagDirRecord record = (ITagDirRecord) reference;
                IPath path = record.getPath();
                IResource found = ResourcesPlugin.getWorkspace().getRoot().findMember(path, false);

                try {
                  found.accept(new IResourceVisitor() {
                    public boolean visit(IResource resource) throws CoreException {
                      if (resource.getType() == IResource.FILE) {
                        addDependsOn(resource);
                      }
                      return true;
View Full Code Here


                String baseLocation = record.getBaseLocation();
                if (baseLocation != null && baseLocation.indexOf("://") < 0) {
                  IResource found = ResourcesPlugin.getWorkspace().getRoot().findMember(baseLocation, false);
                  if (found != null) {
                    try {
                      found.accept(new IResourceVisitor() {
                        public boolean visit(IResource resource) throws CoreException {
                          if (resource.getType() == IResource.FILE) {
                            addDependsOn(resource);
                          }
                          return true;
View Full Code Here

                  updateClasspathLibrary(resource.getLocation().toString(), ITaglibIndexDelta.ADDED, entry.isExported());
                }
              }
              else if (resource.getType() == IResource.FOLDER) {
                try {
                  resource.accept(new Indexer(), 0);
                }
                catch (CoreException e) {
                  Logger.logException(e);
                }
              }
View Full Code Here

        IPath path = entry.getPath();
        try {
          IResource sourceFolder = ResourcesPlugin.getWorkspace().getRoot().findMember(path);
          // could be a bad .classpath file
          if(sourceFolder != null) {
            sourceFolder.accept(new Indexer(), 0);
          }
        }
        catch (CoreException e) {
          Logger.logException(e);
        }
View Full Code Here

                ITagDirRecord record = (ITagDirRecord) reference;
                IPath path = record.getPath();
                IResource found = ResourcesPlugin.getWorkspace().getRoot().findMember(path, false);

                try {
                  found.accept(new IResourceVisitor() {
                    public boolean visit(IResource resource) throws CoreException {
                      if (resource.getType() == IResource.FILE) {
                        addDependsOn(resource);
                      }
                      return true;
View Full Code Here

                String baseLocation = record.getBaseLocation();
                if (baseLocation != null && baseLocation.indexOf("://") < 0) {
                  IResource found = ResourcesPlugin.getWorkspace().getRoot().findMember(baseLocation, false);
                  if (found != null) {
                    try {
                      found.accept(new IResourceVisitor() {
                        public boolean visit(IResource resource) throws CoreException {
                          if (resource.getType() == IResource.FILE) {
                            addDependsOn(resource);
                          }
                          return true;
View Full Code Here

                  updateClasspathLibrary(resource.getLocation().toString(), ITaglibIndexDelta.ADDED, entry.isExported());
                }
              }
              else if (resource.getType() == IResource.FOLDER) {
                try {
                  resource.accept(new Indexer(), 0);
                }
                catch (CoreException e) {
                  Logger.logException(e);
                }
              }
View Full Code Here

        IPath path = entry.getPath();
        try {
          IResource sourceFolder = ResourcesPlugin.getWorkspace().getRoot().findMember(path);
          // could be a bad .classpath file
          if(sourceFolder != null) {
            sourceFolder.accept(new Indexer(), 0);
          }
        }
        catch (CoreException e) {
          Logger.logException(e);
        }
View Full Code Here

                    });
                }
            } else if (event.getType() == IResourceChangeEvent.PRE_DELETE) {
                IResource resource = event.getResource();
                if (resource != null) {
                    resource.accept(new IResourceVisitor() {
                        public boolean visit(IResource resource) throws CoreException {
                            removeElementsFromResource(resource);
                            return true;
                        }
                    });
View Full Code Here

                    });
                }
            } else if (event.getType() == IResourceChangeEvent.PRE_CLOSE) {
                IResource resource = event.getResource();
                if (resource != null) {
                    resource.accept(new IResourceVisitor() {
                        public boolean visit(IResource resource) throws CoreException {
                            removeElementsFromResource(resource);
                            return true;
                        }
                    });
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.