Java Code Examples for org.eclipse.emf.ecore.util.EcoreUtil.getAllContents()

The following are Jave code examples for showing how to use getAllContents() of the org.eclipse.emf.ecore.util.EcoreUtil class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: rest-modeling-framework   File: RamlModelBuilder.java   View Source Code Vote up 5 votes
public void resolveAll(final EObject eObject) {
    final TreeIterator<EObject> allContents = EcoreUtil.getAllContents(eObject, true);
    while (allContents.hasNext()) {
        final EObject next = allContents.next();
        if (next instanceof TypedElement) {
            scope = Scope.of(resource).with(next, next.eContainmentFeature());
            resolve((TypedElement) next);
        }
    }
}
 
Example 2
Project: neoscada   File: TypeWalker.java   View Source Code Vote up 4 votes
public void walk ( final EObject start, final TypeVisitor<? super T> visitor ) throws Exception
{
    final TreeIterator<?> iterator = EcoreUtil.getAllContents ( start, true );
    walk ( iterator, visitor );
}
 
Example 3
Project: neoscada   File: TypeWalker.java   View Source Code Vote up 4 votes
public void walk ( final Collection<?> start, final TypeVisitor<? super T> visitor ) throws Exception
{
    final TreeIterator<?> iterator = EcoreUtil.getAllContents ( start, true );
    walk ( iterator, visitor );
}