Class TrivialEClassBasedNavigatorFilter

java.lang.Object
com._1c.g5.v8.dt.navigator.filters.TrivialEClassBasedNavigatorFilter
All Implemented Interfaces:
IEClassBasedNavigatorFilter, com.google.common.base.Predicate<org.eclipse.xtext.resource.IEObjectDescription>, Predicate<org.eclipse.xtext.resource.IEObjectDescription>

public class TrivialEClassBasedNavigatorFilter extends Object implements IEClassBasedNavigatorFilter
The default implementation of IEClassBasedNavigatorFilter reprsenting trivial predicate for EObjectDescription's.
  • Constructor Summary

    Constructors
    Constructor
    Description
    TrivialEClassBasedNavigatorFilter(Collection<org.eclipse.emf.ecore.EClass> eClasses, org.eclipse.core.resources.IProject project)
    Creates a new instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    apply(org.eclipse.xtext.resource.IEObjectDescription input)
     
    Collection<org.eclipse.emf.ecore.EClass>
    Returns the scope of EClass'es to select objects from.
    org.eclipse.core.resources.IProject
    Returns the project to filter objects from.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.google.common.base.Predicate

    equals, test

    Methods inherited from interface java.util.function.Predicate

    and, negate, or
  • Constructor Details

    • TrivialEClassBasedNavigatorFilter

      public TrivialEClassBasedNavigatorFilter(Collection<org.eclipse.emf.ecore.EClass> eClasses, org.eclipse.core.resources.IProject project)
      Creates a new instance.
      Parameters:
      eClasses - the scope of EClass'es to select objects from, cannot be null
      project - the project to filter objects from, cannot be null
  • Method Details

    • getEClasses

      public Collection<org.eclipse.emf.ecore.EClass> getEClasses()
      Description copied from interface: IEClassBasedNavigatorFilter
      Returns the scope of EClass'es to select objects from.
      Specified by:
      getEClasses in interface IEClassBasedNavigatorFilter
      Returns:
      the scope of EClass'es, never null
    • getProject

      public org.eclipse.core.resources.IProject getProject()
      Description copied from interface: IEClassBasedNavigatorFilter
      Returns the project to filter objects from.
      Specified by:
      getProject in interface IEClassBasedNavigatorFilter
      Returns:
      the project to filter objects from, never null
    • apply

      public boolean apply(org.eclipse.xtext.resource.IEObjectDescription input)
      Specified by:
      apply in interface com.google.common.base.Predicate<org.eclipse.xtext.resource.IEObjectDescription>