Skip to main content
Jump to: navigation, search

EMF Search Framework Extensibility---How It Works

There are two extensibility levels: Core & UI

- Core Extensibility only deals with search engine

- UI Extensibility deals with Search Page, Result Page


Here we will explain how extensibility things are working and how they have been architectured.

Firstly, given the fact this meta tooling framework is dealing with ecore based resources it was natural to design an extensibility around Ecore entities : EPackage, EClassifiers, EAttributes ... (mainly but not only).

The main idea is to be able to infer on EClassifiers from given EPackage in order to contextually evaluating queries against them.

One of the main goal extensibility was to be able to offer a general mechanism for EClassifiers meta element participants selection. It has been oriented by the need to selectively run query against a subset of EClassifiers meta element from a given EPackage.

Obviously, having several EPackages to consider in a tool forced to define extensibility accordingly. So, it was necessary to be able to present potential EClassifier meta element participants into independant EPackages separated form.

A search query in a pseudo mathematical form could be expressed as is :


In our case we wanted to be able to propose configuration extensibility offering a selection configuration level like :


For instance :

SELECTION(P1, P2, P3) = {P1, {A,B,C}}, {P2, {D, E}}, {P3, {H}}

would be the configuration for queries only intestested on mentioned elements {P1.A, P1.B, P1.C, P2.D, P2.E, P3.H}.

We can notice that, selection according to package is probably easier for user while packages usually deal with same concern.

Back to the top