Examples of indexLibrary()


Examples of org.eclipse.jdt.internal.core.search.indexing.IndexManager.indexLibrary()

          // index jar file only once (if the root is in its declaring project)
          IPath jarPath = root.getPath();
          switch (delta.getKind()) {
            case IResourceDelta.ADDED:
              // index the new jar
              indexManager.indexLibrary(jarPath, root.getJavaProject().getProject(), root.getIndexPath());
              break;
            case IResourceDelta.CHANGED:
              // first remove the index so that it is forced to be re-indexed
              indexManager.removeIndex(jarPath);
              // then index the jar
View Full Code Here

Examples of org.eclipse.jdt.internal.core.search.indexing.IndexManager.indexLibrary()

              break;
            case IResourceDelta.CHANGED:
              // first remove the index so that it is forced to be re-indexed
              indexManager.removeIndex(jarPath);
              // then index the jar
              indexManager.indexLibrary(jarPath, root.getJavaProject().getProject(), root.getIndexPath());
              break;
            case IResourceDelta.REMOVED:
              // the jar was physically removed: remove the index
              indexManager.discardJobs(jarPath.toString());
              indexManager.removeIndex(jarPath);
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.