List of usage examples for org.eclipse.jdt.internal.core.search BasicSearchEngine BasicSearchEngine
public BasicSearchEngine(WorkingCopyOwner workingCopyOwner)
From source file:org.eclipse.jdt.core.search.SearchEngine.java
License:Open Source License
/** * Creates a new search engine with a list of working copies that will take precedence over * their original compilation units in the subsequent search operations. * <p>//from w w w . ja v a 2s . c o m * Note that passing an empty working copy will be as if the original compilation * unit had been deleted.</p> * <p> * Since 3.0 the given working copies take precedence over primary working copies (if any). * * @param workingCopies the working copies that take precedence over their original compilation units * @since 3.0 */ public SearchEngine(ICompilationUnit[] workingCopies) { this.basicEngine = new BasicSearchEngine(workingCopies); }
From source file:org.eclipse.jdt.core.search.SearchEngine.java
License:Open Source License
/** * Creates a new search engine with a list of working copies that will take precedence over * their original compilation units in the subsequent search operations. * <p>/*www .j a v a 2s .com*/ * Note that passing an empty working copy will be as if the original compilation * unit had been deleted.</p> * <p> * Since 3.0 the given working copies take precedence over primary working copies (if any). * * @param workingCopies the working copies that take precedence over their original compilation units * @since 2.0 * @deprecated Use {@link #SearchEngine(ICompilationUnit[])} instead. */ public SearchEngine(IWorkingCopy[] workingCopies) { int length = workingCopies.length; ICompilationUnit[] units = new ICompilationUnit[length]; System.arraycopy(workingCopies, 0, units, 0, length); this.basicEngine = new BasicSearchEngine(units); }
From source file:org.eclipse.jdt.core.search.SearchEngine.java
License:Open Source License
/** * Creates a new search engine with the given working copy owner. * The working copies owned by this owner will take precedence over * the primary compilation units in the subsequent search operations. * * @param workingCopyOwner the owner of the working copies that take precedence over their original compilation units * @since 3.0// w w w . ja v a 2 s . c o m */ public SearchEngine(WorkingCopyOwner workingCopyOwner) { this.basicEngine = new BasicSearchEngine(workingCopyOwner); }