public class BasicBrowserLibraryContainer extends java.lang.Object implements IJsGlobalScopeContainer
Container for generic client-side scripting libraries. This container must support all offered versions to avoid duplicates being added into a project's include path.
Path format:
org.eclipse.wst.jsdt.launching.baseBrowserLibrary/StandardBrowser/(html5|html4)?
K_APPLICATION, K_DEFAULT_SYSTEM, K_SYSTEM
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDescription()
Answers a readable description of this container
|
IIncludePathEntry[] |
getIncludepathEntries()
Answers the set of includepath entries this container is mapping to.
|
int |
getKind()
Answers the kind of this container.
|
IPath |
getPath()
Answers the container path identifying this container.
|
java.lang.String[] |
resolvedLibraryImport(java.lang.String a) |
public java.lang.String getDescription()
IJsGlobalScopeContainer
getDescription
in interface IJsGlobalScopeContainer
public IIncludePathEntry[] getIncludepathEntries()
IJsGlobalScopeContainer
The set of entries associated with a includepath container may contain any of the following:
CPE_LIBRARY
) CPE_PROJECT
) This method is called by the JavaScript model when it needs to resolve this includepath container entry into a list of library and project entries. The method is typically called exactly once for a given JavaScript project, and the resulting list of entries cached internally by the JavaScript model. This method must not be called by other clients.
There are a wide variety of conditions under which this method may be invoked. To ensure that the implementation does not interfere with correct functioning of the JavaScript model, the implementation should use only the following JavaScript model APIs:
JavaScriptCore.newLibraryEntry(IPath, IPath, IPath, boolean)
and variantsJavaScriptCore.newProjectEntry(IPath, boolean)
and variantsJavaScriptCore#create(org.eclipse.core.resources.IWorkspaceRoot)
JavaScriptCore#create(org.eclipse.core.resources.IProject)
IJavaScriptModel.getJavaScriptProjects()
IJavaScriptProject.getRawIncludepath()
IJavaScriptProject.readRawIncludepath()
IJavaScriptProject#getOutputLocation()
IJavaScriptProject#readOutputLocation()
getIncludepathEntries
in interface IJsGlobalScopeContainer
IIncludePathEntry
public int getKind()
IJsGlobalScopeContainer
K_APPLICATION
if this container maps to an application libraryK_SYSTEM
if this container maps to a system libraryK_DEFAULT_SYSTEM
if this container maps to a default system library (library
implicitly contributed by the runtime).getKind
in interface IJsGlobalScopeContainer
public IPath getPath()
IJsGlobalScopeContainer
The container ID is also used to identify aJsGlobalScopeContainerInitializer
registered on the extension point "org.eclipse.wst.jsdt.core.JsGlobalScopeContainerInitializer", which can
be invoked if needing to resolve the container before it is explicitly set.
getPath
in interface IJsGlobalScopeContainer
public java.lang.String[] resolvedLibraryImport(java.lang.String a)
resolvedLibraryImport
in interface IJsGlobalScopeContainer
Copyright (c) IBM Corp. and others 2000, 2010. All Rights Reserved.