Class AtlCompletionDataSource

java.lang.Object
org.eclipse.m2m.atl.adt.ui.text.atl.AtlCompletionDataSource

public class AtlCompletionDataSource extends Object
The AtlCompletionDataSource, retrieves data from EMF metamodels.
  • Constructor Details

    • AtlCompletionDataSource

      public AtlCompletionDataSource(AtlSourceManager manager)
      Creates a new completion datasource.
      Parameters:
      manager - the source manager
  • Method Details

    • getATLFileContext

      public String getATLFileContext()
      Returns the current file context.
      Returns:
      the current file context
    • getATLFileContext

      public static String getATLFileContext(AtlSourceManager manager)
      Returns the current file context.
      Returns:
      the current file context
    • getURIs

      public static String[] 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

      public String[] 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

      public Map<String,org.eclipse.m2m.atl.adt.ui.text.atl.types.OclAnyType[]> getAtlPrimitiveTypes()
      Returns the ATL primitive types instances.
      Returns:
      the ATL primitive types instances