|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jst.jsp.core.taglib.TaglibIndex
public final class TaglibIndex
A non-extendable index manager for taglibs similar to the previous J2EE ITaglibRegistry but lacking any ties to project natures. Each record returned from the index represents a single tag library descriptor. Indexing is only persisted between sessions for entries on the Java Build Path. New ADD events will be sent to ITaglibIndexListeners during each workbench session for both cached and newly found records. REMOVE events are not fired on workbench shutdown. The record's contents should be examined for any further information.
Method Summary | |
---|---|
static void |
addTaglibIndexListener(ITaglibIndexListener listener)
NOT API. |
static ITaglibRecord[] |
getAvailableTaglibRecords(org.eclipse.core.runtime.IPath fullPath)
Finds all of the visible ITaglibRecords for the given path in the workspace. |
static org.eclipse.core.runtime.IPath |
getContextRoot(org.eclipse.core.runtime.IPath path)
Deprecated. - is not correct in flexible projects |
static TaglibIndex |
getInstance()
|
static void |
removeTaglibIndexListener(ITaglibIndexListener listener)
NOT API. |
static ITaglibRecord |
resolve(java.lang.String basePath,
java.lang.String reference,
boolean crossProjects)
Finds a matching ITaglibRecord given the reference. |
static void |
shutdown()
Instructs the index to stop listening for resource and classpath changes, and to forget all information about the workspace. |
static void |
startup()
Instructs the index to begin listening for resource and classpath changes. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void addTaglibIndexListener(ITaglibIndexListener listener)
listener
- the listener to be addedpublic static ITaglibRecord[] getAvailableTaglibRecords(org.eclipse.core.runtime.IPath fullPath)
Values defined within the XML Catalog will not be returned.
fullPath
- -
a path within the workspace
public static org.eclipse.core.runtime.IPath getContextRoot(org.eclipse.core.runtime.IPath path)
path
- -
a path under the web-app root
public static TaglibIndex getInstance()
public static void removeTaglibIndexListener(ITaglibIndexListener listener)
listener
- the listener to be removedpublic static ITaglibRecord resolve(java.lang.String basePath, java.lang.String reference, boolean crossProjects)
basePath
- -
the workspace-relative path for IResources, full filesystem
path otherwisereference
- -
the URI to lookup, for example the uri value from a taglib
directivecrossProjects
- -
whether to search across projects (currently ignored)
public static void shutdown()
public static void startup()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |