public abstract class ClasspathVariableInitializer extends Object
Clients should subclass this class to implement a specific classpath
variable initializer. The subclass must have a public 0-argument
constructor and a concrete implementation of initialize
.
IClasspathEntry
Constructor and Description |
---|
ClasspathVariableInitializer()
Creates a new classpath variable initializer.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
initialize(String variable)
Binds a value to the workspace classpath variable with the given name,
or fails silently if this cannot be done.
|
public ClasspathVariableInitializer()
public abstract void initialize(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
JavaCore#setClasspathVariable
.
variable
- the name of the workspace classpath variable
that requires a bindingJavaCore.getClasspathVariable(String)
,
JavaCore.setClasspathVariable(String, org.eclipse.core.runtime.IPath, org.eclipse.core.runtime.IProgressMonitor)
,
JavaCore.setClasspathVariables(String[], org.eclipse.core.runtime.IPath[], org.eclipse.core.runtime.IProgressMonitor)
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.