io.sarl.apputils.eclipseextensions.buildpath
Class AbstractSARLBasedClasspathContainer
All Superinterfaces:
org.eclipse.jdt.core.IClasspathContainer
abstract class AbstractSARLBasedClasspathContainer
extends java.lang.Object
implements org.eclipse.jdt.core.IClasspathContainer
Classpath container dedicated to the SARL environment.
Maven Group Identifier:
io.sarl.apputils
Maven Artifact Identifier:
eclipseextensions
Since:
0.15
Property Summary
Modifier and type Property and description
java.util.Set<E> bundleDependencies
Replies the list of the symbolic names of the bundle dependencies.
org.eclipse.jdt.core.IClasspathEntry classpathEntries
protected java.util.Comparator<T> classpathEntryComparator
Replies the classpath entry that must be used by this object.
org.eclipse.core.runtime.IPath path
Constructor Summary
Constructor and description
new(IPath,IJavaProject,Comparator<T>)
Constructor.
Action Summary
Modifier and type Action and description
final java.util.Set<E> getBundleDependencies
Replies the list of the symbolic names of the bundle dependencies.
final org.eclipse.jdt.core.IClasspathEntry getClasspathEntries
protected java.util.Comparator<T> getClasspathEntryComparator
Replies the classpath entry that must be used by this object.
org.eclipse.core.runtime.IPath getPath
protected boolean isModular
Replies if the associated project is module or not.
void reset
Reset the container.
protected abstract void updateBundleList(Set<E>)
Compute the entries of the container.
protected abstract void updateClasspathEntries(Set<E>)
Compute the list of classpath entries for the current container.
Property Details
bundleDependencies
val bundleDependencies : java.util.Set<E>
Replies the list of the symbolic names of the bundle dependencies.

This property is an alias for the action: getBundleDependencies

Returns:
the bundle symbolic names of the dependencies.
classpathEntries
val classpathEntries : org.eclipse.jdt.core.IClasspathEntry

This property is an alias for the action: getClasspathEntries

classpathEntryComparator
protected val classpathEntryComparator : java.util.Comparator<T>
Replies the classpath entry that must be used by this object.

This property is an alias for the action: getClasspathEntryComparator

Returns:
the comparator, never null .
Since:
0.15
path
val path : org.eclipse.core.runtime.IPath

This property is an alias for the action: getPath

Constructor Details
new(IPath,IJavaProject,Comparator<T>)
new(IPath,IJavaProject,Comparator<T>)
Constructor.
Parameters:
containerPath - the path of the container, e.g. the project.
javaProject - the reference to the containing Java project
entryComparator - the comparator of classpath entries to use.
Since:
0.15
Action Details
getBundleDependencies
def getBundleDependencies : java.util.Set<E>
Replies the list of the symbolic names of the bundle dependencies.
Returns:
the bundle symbolic names of the dependencies.
getClasspathEntries
def getClasspathEntries : org.eclipse.jdt.core.IClasspathEntry
getClasspathEntryComparator
protected def getClasspathEntryComparator : java.util.Comparator<T>
Replies the classpath entry that must be used by this object.
Returns:
the comparator, never null .
Since:
0.15
getPath
def getPath : org.eclipse.core.runtime.IPath
isModular
protected def isModular : boolean
Replies if the associated project is module or not.
Returns:
true if the project is module; otherwise false .
reset
def reset
Reset the container.
updateBundleList(Set<E>)
protected def updateBundleList(Set<E>)
Compute the entries of the container.

This is called from getBundleDependencies(). It is defined for enabling subclasses to update the list of the bundle entries.
Parameters:
entries - the list of entries to update.
updateClasspathEntries(Set<E>)
protected def updateClasspathEntries(Set<E>)
Compute the list of classpath entries for the current container.

This is called from getClasspathEntries(). It is defined for enabling subclasses to update the list of the classpath entries.
Parameters:
entries - the list of entries to update.