|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.m2m.atl.adt.ui.text.atl.AtlCompletionDataSource
public class AtlCompletionDataSource
The AtlCompletionDataSource, retrieves data from EMF metamodels.
| Constructor Summary | |
|---|---|
AtlCompletionDataSource(AtlEditor editor)
Creates an ATL completion data source. |
|
| Method Summary | |
|---|---|
static java.lang.Object |
eGet(org.eclipse.emf.ecore.EObject self,
java.lang.String featureName)
Returns the value of a feature on an EObject. |
org.eclipse.emf.ecore.EClassifier |
getEClassifierFromAtlType(org.eclipse.emf.ecore.EObject atlType)
Returns the EMF classifier matching with an ATL type. |
java.util.List |
getHelperTypesProposals(java.lang.String prefix,
int offset)
Computes types completion for helper, i.e. primitive types and all metamodels types |
static org.eclipse.swt.graphics.Image |
getImage(java.lang.String path)
Looks for an image in the icons folder. |
java.util.List |
getMetaElementsProposals(java.lang.String prefix,
int offset,
int filter)
Metamodel elements proposals for a given filter. |
java.util.List |
getMetaFeaturesProposals(java.util.List existing,
org.eclipse.emf.ecore.EObject atlType,
java.lang.String prefix,
int offset)
Features proposals for a given MetaElement. |
java.util.Collection |
getMetamodelsProposals(java.lang.String prefix,
int offset)
Metamodels names proposals. |
java.util.List |
getPathProposals(java.lang.String prefix,
int offset)
Computes proposals for EMF paths. |
static java.util.List |
getProposalsFromList(int offset,
java.lang.String prefix,
java.lang.Object[] proposals)
|
java.util.List |
getURIProposals(java.lang.String prefix,
int offset)
Computes proposals for EMF uris. |
static java.util.Map |
getVariables(org.eclipse.emf.ecore.EObject rule)
Returns the list of variables. |
java.util.List |
getVariablesProposals(org.eclipse.emf.ecore.EObject rule,
java.lang.String prefix,
int offset)
Returns a list of variables proposals. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AtlCompletionDataSource(AtlEditor editor)
editor - the current ATL editor.| Method Detail |
|---|
public java.util.List getURIProposals(java.lang.String prefix,
int offset)
prefix - the current prefixoffset - the current offset
public java.util.List getPathProposals(java.lang.String prefix,
int offset)
prefix - the current prefixoffset - the current offset
public java.util.List getMetaElementsProposals(java.lang.String prefix,
int offset,
int filter)
prefix - completion prefixoffset - completion offsetfilter - the given filter
public java.util.Collection getMetamodelsProposals(java.lang.String prefix,
int offset)
prefix - completion prefixoffset - completion offset
public java.util.List getMetaFeaturesProposals(java.util.List existing,
org.eclipse.emf.ecore.EObject atlType,
java.lang.String prefix,
int offset)
existing - the list of features that have ever been typedatlType - the type under its "OclModelElement" formprefix - completion prefixoffset - completion offset
public java.util.List getHelperTypesProposals(java.lang.String prefix,
int offset)
prefix - completion prefixoffset - completion offset
public static org.eclipse.swt.graphics.Image getImage(java.lang.String path)
path - the image path
public static java.lang.Object eGet(org.eclipse.emf.ecore.EObject self,
java.lang.String featureName)
self - the EObjectfeatureName - the feature name
public org.eclipse.emf.ecore.EClassifier getEClassifierFromAtlType(org.eclipse.emf.ecore.EObject atlType)
atlType - the ATL type
public static java.util.Map getVariables(org.eclipse.emf.ecore.EObject rule)
rule - the current rule
public java.util.List getVariablesProposals(org.eclipse.emf.ecore.EObject rule,
java.lang.String prefix,
int offset)
rule - the current ruleprefix - current prefixoffset - current offset
public static java.util.List getProposalsFromList(int offset,
java.lang.String prefix,
java.lang.Object[] proposals)
|
Copyright 2007 IBM Corporation and others. All Rights Reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||