Class AtlCompletionDataSource
java.lang.Object
org.eclipse.m2m.atl.adt.ui.text.atl.AtlCompletionDataSource
The AtlCompletionDataSource, retrieves data from EMF metamodels.
-
Constructor Summary
ConstructorDescriptionAtlCompletionDataSource
(AtlSourceManager manager) Creates a new completion datasource. -
Method Summary
Modifier and TypeMethodDescriptionReturns the current file context.static String
getATLFileContext
(AtlSourceManager manager) Returns the current file context.Returns the ATL primitive types instances.getClassifiers
(int filter) Metamodel classifiers for a given filter.String[]
Metamodels names.static org.eclipse.core.runtime.IPath[]
getPaths()
Computes proposals for EMF paths.static String[]
getURIs()
Returns the currently registered URIs.
-
Constructor Details
-
AtlCompletionDataSource
Creates a new completion datasource.- Parameters:
manager
- the source manager
-
-
Method Details
-
getATLFileContext
Returns the current file context.- Returns:
- the current file context
-
getATLFileContext
Returns the current file context.- Returns:
- the current file context
-
getURIs
Returns the currently registered URIs.- Returns:
- the currently registered URIs
-
getPaths
public static org.eclipse.core.runtime.IPath[] getPaths()Computes proposals for EMF paths.- Returns:
- the proposals
-
getMetamodels
Metamodels names.- Returns:
- the names
-
getClassifiers
public Map<String,org.eclipse.m2m.atl.adt.ui.text.atl.types.OclAnyType[]> getClassifiers(int filter) Metamodel classifiers for a given filter.- Parameters:
filter
- the given filter- Returns:
- the filtered classifiers (with metamodelName as key)
-
getAtlPrimitiveTypes
Returns the ATL primitive types instances.- Returns:
- the ATL primitive types instances
-