|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.wst.jsdt.web.core.javascript.search.JsSearchSupport
public class JsSearchSupport
Provisional API: This class/interface is part of an interim API that is still under development and expected to
change significantly before reaching stability. It is being made available at this early stage to solicit feedback
from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
(repeatedly) as the API evolves.
(copied from JSP)
Central access to java indexing and search. All contact between JDT indexing
and Searching should be done through here.
Clients should access the methods of this class via the single instance via
getInstance()
.
Method Summary | |
---|---|
SearchDocument |
addJspFile(IFile file)
schedules a search document representing this JSP file for indexing (by the java indexer) |
IPath |
computeIndexLocation(IPath containerPath)
|
static JsSearchSupport |
getInstance()
Clients should access the methods of this class via the single instance via getInstance() |
IPath |
getModelJspPluginWorkingLocation()
|
IPath |
getModelJspPluginWorkingLocation(IProject project)
|
IProgressMonitor |
getProgressMonitor()
JSP Indexing and Search jobs check this |
SearchDocument |
getSearchDocument(java.lang.String searchDocPath)
Centralized place to access JSPSearchDocuments (used by JSPSearchParticipant and JSPSearchRequestor) |
boolean |
isCanceled()
JSP Indexing and Search jobs check this |
static boolean |
isJsp(IFile file)
Utility method to check if a file is a jsp file (since this is done frequently) |
void |
search(IJavaScriptElement element,
IJavaScriptSearchScope scope,
SearchRequestor requestor)
Search for an IJavaScriptElement, constrained by the given parameters. |
void |
search(java.lang.String searchText,
IJavaScriptSearchScope scope,
int searchFor,
int limitTo,
int matchMode,
boolean isCaseSensitive,
SearchRequestor requestor)
Perform a java search w/ the given parameters. |
void |
searchRunnable(IJavaScriptElement element,
IJavaScriptSearchScope scope,
SearchRequestor requestor)
Search for an IJavaScriptElement, constrained by the given parameters. |
void |
setCanceled(boolean cancel)
JSP Indexing and Search jobs check this |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static JsSearchSupport getInstance()
public static boolean isJsp(IFile file)
public SearchDocument addJspFile(IFile file)
file
- the JSP file
CoreException
public void search(java.lang.String searchText, IJavaScriptSearchScope scope, int searchFor, int limitTo, int matchMode, boolean isCaseSensitive, SearchRequestor requestor)
searchText
- the string of text to search onsearchFor
- IJavaScriptSearchConstants.TYPE, METHOD, FIELD, PACKAGE, etc...limitTo
- IJavaScriptSearchConstants.DECLARATIONS,
IJavaScriptSearchConstants.REFERENCES,
IJavaScriptSearchConstants.IMPLEMENTORS, or
IJavaScriptSearchConstants.ALL_OCCURRENCESmatchMode
- allow * wildcards or notisCaseSensitive
- requestor
- passed in to accept search matches (and do "something" with
them)public void search(IJavaScriptElement element, IJavaScriptSearchScope scope, SearchRequestor requestor)
element
- scope
- requestor
- public void searchRunnable(IJavaScriptElement element, IJavaScriptSearchScope scope, SearchRequestor requestor)
element
- scope
- requestor
- public SearchDocument getSearchDocument(java.lang.String searchDocPath)
searchDocPath
- doc
-
public final IPath computeIndexLocation(IPath containerPath)
public IPath getModelJspPluginWorkingLocation(IProject project)
public IPath getModelJspPluginWorkingLocation()
public final void setCanceled(boolean cancel)
public final boolean isCanceled()
public final IProgressMonitor getProgressMonitor()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |