Class ScopeBasedSelectable

  • All Implemented Interfaces:
    ISelectable

    public class ScopeBasedSelectable
    extends java.lang.Object
    implements ISelectable
    • Constructor Detail

      • ScopeBasedSelectable

        public ScopeBasedSelectable​(IScope scope)
    • Method Detail

      • isEmpty

        public boolean isEmpty()
        Description copied from interface: ISelectable
        Clients may want to check the selectable to skip its processing in case it is empty. Implementations should be fast and not require expensive precalculation. Selectable may return false if it is too expensive to compute the actual result.
        Specified by:
        isEmpty in interface ISelectable
        Returns:
        true if the selectable does not provide any descriptions.
      • getExportedObjects

        public java.lang.Iterable<IEObjectDescription> getExportedObjects​(org.eclipse.emf.ecore.EClass type,
                                                                          QualifiedName name,
                                                                          boolean ignoreCase)
        Specified by:
        getExportedObjects in interface ISelectable
        Returns:
        all elements which match the given qualified name and type. May not be null.
      • getExportedObjectsByType

        public java.lang.Iterable<IEObjectDescription> getExportedObjectsByType​(org.eclipse.emf.ecore.EClass type)
        Specified by:
        getExportedObjectsByType in interface ISelectable
        Returns:
        all elements which match the given type. May not be null.
      • getExportedObjectsByObject

        public java.lang.Iterable<IEObjectDescription> getExportedObjectsByObject​(org.eclipse.emf.ecore.EObject object)
        Specified by:
        getExportedObjectsByObject in interface ISelectable
        Returns:
        all elements which match the given instance. May not be null.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
        Since:
        2.4