public abstract class JsGlobalScopeVariableInitializer
extends java.lang.Object
Clients should subclass this class to implement a specific includepath
variable initializer. The subclass must have a public 0-argument
constructor and a concrete implementation of initialize
.
Constructor and Description |
---|
JsGlobalScopeVariableInitializer()
Creates a new includepath variable initializer.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
initialize(java.lang.String variable)
Binds a value to the workspace includepath variable with the given name,
or fails silently if this cannot be done.
|
public JsGlobalScopeVariableInitializer()
public abstract void initialize(java.lang.String variable)
A variable initializer is automatically activated whenever a variable value
is needed and none has been recorded so far. The implementation of
the initializer can set the corresponding variable using
JavaScriptCore#setClasspathVariable
.
variable
- the name of the workspace includepath variable
that requires a bindingJavaScriptCore.getIncludepathVariable(String)
,
JavaScriptCore#setIncludepathVariable(String, org.eclipse.core.runtime.IPath, org.eclipse.core.runtime.IProgressMonitor)
,
JavaScriptCore#setIncludepathVariables(String[], org.eclipse.core.runtime.IPath[], org.eclipse.core.runtime.IProgressMonitor)
Copyright (c) IBM Corp. and others 2000, 2010. All Rights Reserved.