private TypeReference(IJavaElement enclosingElement, int accuracy, int start, int length, boolean insideDocComment, IResource resource, int simpleNameStart, String simpleName) { super(enclosingElement, accuracy, start, length, insideDocComment, SearchEngine.getDefaultSearchParticipant(), resource); fSimpleNameStart= simpleNameStart; fSimpleTypeName= simpleName; }
private TypeReference(IJavaElement enclosingElement, int accuracy, int start, int length, boolean insideDocComment, IResource resource, int simpleNameStart, String simpleName) { super(enclosingElement, accuracy, start, length, insideDocComment, SearchEngine.getDefaultSearchParticipant(), resource); fSimpleNameStart= simpleNameStart; fSimpleTypeName= simpleName; }
private TypeReference(IJavaElement enclosingElement, int accuracy, int start, int length, boolean insideDocComment, IResource resource, int simpleNameStart, String simpleName) { super(enclosingElement, accuracy, start, length, insideDocComment, SearchEngine.getDefaultSearchParticipant(), resource); fSimpleNameStart= simpleNameStart; fSimpleTypeName= simpleName; }
private TypeReference(IJavaElement enclosingElement, int accuracy, int start, int length, boolean insideDocComment, IResource resource, int simpleNameStart, String simpleName) { super(enclosingElement, accuracy, start, length, insideDocComment, SearchEngine.getDefaultSearchParticipant(), resource); fSimpleNameStart= simpleNameStart; fSimpleTypeName= simpleName; }
public void indexDocument(SearchDocument document, IPath indexPath) { if (!(document instanceof JavaSearchDocumentDelegate)) return; // use Java search indexing SearchEngine.getDefaultSearchParticipant().indexDocument(document, indexPath); }
public JrtIndexer(File jrt, SearchParticipant participant, Index index, IPath container, IndexManager indexManager) { this.jrt = jrt; this.participant = (participant != null) ? participant : SearchEngine.getDefaultSearchParticipant(); this.index = index; IndexLocation indexLocation = index.getIndexLocation(); this.indexPath = indexLocation != null ? new Path(indexLocation.getCanonicalFilePath()) : null; this.container = container; this.indexManager = indexManager; }
public JrtIndexer(File jrt, SearchParticipant participant, Index index, IPath container, IndexManager indexManager) { this.jrt = jrt; this.participant = (participant != null) ? participant : SearchEngine.getDefaultSearchParticipant(); this.index = index; IndexLocation indexLocation = index.getIndexLocation(); this.indexPath = indexLocation != null ? new Path(indexLocation.getCanonicalFilePath()) : null; this.container = container; this.indexManager = indexManager; }
/** * Trigger addition of a resource to an index * Note: the actual operation is performed in background */ public void addBinary(IFile resource, IPath containerPath) { if (JavaCore.getPlugin() == null) return; SearchParticipant participant = SearchEngine.getDefaultSearchParticipant(); SearchDocument document = participant.getDocument(resource.getFullPath().toString()); IndexLocation indexLocation = computeIndexLocation(containerPath); scheduleDocumentIndexing(document, containerPath, indexLocation, participant); } /**
/** * Trigger addition of a resource to an index * Note: the actual operation is performed in background */ public void addBinary(IFile resource, IPath containerPath) { if (JavaCore.getPlugin() == null) return; SearchParticipant participant = SearchEngine.getDefaultSearchParticipant(); SearchDocument document = participant.getDocument(resource.getFullPath().toString()); IndexLocation indexLocation = computeIndexLocation(containerPath); scheduleDocumentIndexing(document, containerPath, indexLocation, participant); } /**
/** * Trigger addition of a resource to an index * Note: the actual operation is performed in background */ public void addBinary(IFile resource, IPath containerPath) { if (JavaCore.getPlugin() == null) return; SearchParticipant participant = SearchEngine.getDefaultSearchParticipant(); SearchDocument document = participant.getDocument(resource.getFullPath().toString()); IndexLocation indexLocation = computeIndexLocation(containerPath); scheduleDocumentIndexing(document, containerPath, indexLocation, participant); } /**
/** * Trigger addition of a resource to an index * Note: the actual operation is performed in background */ public void addBinary(IFile resource, IPath containerPath) { if (JavaCore.getPlugin() == null) return; SearchParticipant participant = SearchEngine.getDefaultSearchParticipant(); SearchDocument document = participant.getDocument(resource.getFullPath().toString()); IndexLocation indexLocation = computeIndexLocation(containerPath); scheduleDocumentIndexing(document, containerPath, indexLocation, participant); } /**
/** * Trigger addition of a resource to an index * Note: the actual operation is performed in background */ public void addBinary(IFile resource, IPath containerPath) { if (JavaCore.getPlugin() == null) return; SearchParticipant participant = SearchEngine.getDefaultSearchParticipant(); SearchDocument document = participant.getDocument(resource.getFullPath().toString()); IPath indexLocation = computeIndexLocation(containerPath); scheduleDocumentIndexing(document, containerPath, indexLocation, participant); } /**
/** * Trigger addition of a resource to an index * Note: the actual operation is performed in background */ public void addBinary(IFile resource, IPath containerPath) { if (JavaCore.getPlugin() == null) return; SearchParticipant participant = SearchEngine.getDefaultSearchParticipant(); SearchDocument document = participant.getDocument(resource.getFullPath().toString()); IndexLocation indexLocation = computeIndexLocation(containerPath); scheduleDocumentIndexing(document, containerPath, indexLocation, participant); } /**
private static SearchMatch createSearchResult(ASTNode superCall, IMethod constructor) { int start= superCall.getStartPosition(); int end= ASTNodes.getInclusiveEnd(superCall); //TODO: why inclusive? IResource resource= constructor.getResource(); return new SearchMatch(constructor, SearchMatch.A_ACCURATE, start, end - start, SearchEngine.getDefaultSearchParticipant(), resource); }
private static SearchMatch createSearchResult(ASTNode superCall, IMethod constructor) { int start= superCall.getStartPosition(); int end= ASTNodes.getInclusiveEnd(superCall); //TODO: why inclusive? IResource resource= constructor.getResource(); return new SearchMatch(constructor, SearchMatch.A_ACCURATE, start, end - start, SearchEngine.getDefaultSearchParticipant(), resource); }
private static SearchMatch createSearchResult(ASTNode superCall, IMethod constructor) { int start= superCall.getStartPosition(); int end= ASTNodes.getInclusiveEnd(superCall); //TODO: why inclusive? IResource resource= constructor.getResource(); return new SearchMatch(constructor, SearchMatch.A_ACCURATE, start, end - start, SearchEngine.getDefaultSearchParticipant(), resource); }
/** * Trigger addition of a resource to an index * Note: the actual operation is performed in background */ public void addSource(IFile resource, IPath containerPath, SourceElementParser parser) { if (JavaCore.getPlugin() == null) return; SearchParticipant participant = SearchEngine.getDefaultSearchParticipant(); SearchDocument document = participant.getDocument(resource.getFullPath().toString()); document.setParser(parser); IndexLocation indexLocation = computeIndexLocation(containerPath); scheduleDocumentIndexing(document, containerPath, indexLocation, participant); } /*
/** * Trigger addition of a resource to an index * Note: the actual operation is performed in background */ public void addSource(IFile resource, IPath containerPath, SourceElementParser parser) { if (JavaCore.getPlugin() == null) return; SearchParticipant participant = SearchEngine.getDefaultSearchParticipant(); SearchDocument document = participant.getDocument(resource.getFullPath().toString()); document.setParser(parser); IndexLocation indexLocation = computeIndexLocation(containerPath); scheduleDocumentIndexing(document, containerPath, indexLocation, participant); } /*
public static void findSuiteMethods(IJavaElement element, Set result, IProgressMonitor pm) throws CoreException { // fix for bug 36449 JUnit should constrain tests to selected project // [JUnit] IJavaSearchScope scope= SearchEngine.createJavaSearchScope(new IJavaElement[] { element }, IJavaSearchScope.SOURCES); SearchRequestor requestor= new SuiteMethodTypesCollector(result); int matchRule= SearchPattern.R_EXACT_MATCH | SearchPattern.R_CASE_SENSITIVE | SearchPattern.R_ERASURE_MATCH; SearchPattern suitePattern= SearchPattern.createPattern("suite() Test", IJavaSearchConstants.METHOD, IJavaSearchConstants.DECLARATIONS, matchRule); //$NON-NLS-1$ SearchParticipant[] participants= new SearchParticipant[] { SearchEngine.getDefaultSearchParticipant() }; new SearchEngine().search(suitePattern, participants, scope, requestor, pm); }
public static void findSuiteMethods(IJavaElement element, Set<IType> result, IProgressMonitor pm) throws CoreException { // fix for bug 36449 JUnit should constrain tests to selected project // [JUnit] IJavaSearchScope scope= SearchEngine.createJavaSearchScope(new IJavaElement[] { element }, IJavaSearchScope.SOURCES); SearchRequestor requestor= new SuiteMethodTypesCollector(result); int matchRule= SearchPattern.R_EXACT_MATCH | SearchPattern.R_CASE_SENSITIVE | SearchPattern.R_ERASURE_MATCH; SearchPattern suitePattern= SearchPattern.createPattern("suite() Test", IJavaSearchConstants.METHOD, IJavaSearchConstants.DECLARATIONS, matchRule); //$NON-NLS-1$ SearchParticipant[] participants= new SearchParticipant[] { SearchEngine.getDefaultSearchParticipant() }; new SearchEngine().search(suitePattern, participants, scope, requestor, pm); }