Class BaseScope

    • Constructor Detail

      • BaseScope

        public BaseScope()
    • Method Detail

      • getModules

        @NotNull
        public abstract Iterable<SModule> getModules()
        Specified by:
        getModules in interface SearchScope
        Returns:
        all modules jetbrains.mps.ide.findusages.findalgorithm.finders.Finder shall look into for occurrences
      • getModels

        @NotNull
        public Iterable<SModel> getModels()
        Specified by:
        getModels in interface SearchScope
        Returns:
        all models jetbrains.mps.ide.findusages.findalgorithm.finders.Finder shall look into for occurrences
      • resolve

        public SModule resolve​(@NotNull
                               SModuleReference reference)
        Description copied from interface: SearchScope
        Finder use this method to go from module reference to SModule object, Find Usages client may use this method to limit what's visible/accessible to a Finder. shall always resolve references to modules from SearchScope.getModules()
        Specified by:
        resolve in interface SearchScope
        Parameters:
        reference - module to look up in the scope
        Returns:
        module instance, or null if there's no such module in the scope
      • resolve

        public SModel resolve​(@NotNull
                              SModelReference reference)
        Description copied from interface: SearchScope
        Finder use this method to go from model reference to SModel object, Find Usages client may use this method to limit what's visible/accessible to a Finder. Generally, finder use this method to resolve references to search values shall always resolve references to models from SearchScope.getModels()
        Specified by:
        resolve in interface SearchScope
        Parameters:
        reference - model to look up in the scope
        Returns:
        model instance, or null if model with specified reference is not visible in the scope