Generating the Eclipse project for the QueryFunction class

The Component SDK includes a script to generate the Eclipse project for the QueryFunction class.

To generate the Eclipse project for a new QueryFunction class:

  1. From the command line, change to the components/endeca-extensions subdirectory of the Component SDK.
  2. To create a QueryFilter class, run the appropriate .sh or .bat version of the create-queryfilter command.

    For example on Linux:

    ./create-queryfilter.sh <queryFilterName>

    Where <queryFilterName> is the name you want to use for the QueryConfig class. The name cannot have spaces.

    The command creates a new directory called <queryFilterName>-QueryFilter in the endeca-extensions directory.

    This directory is an Eclipse project that you can import directly into Eclipse.

    It contains an empty sample implementation of a QueryFilter.

  3. To create a QueryConfig class, run the appropriate .sh or .bat version of the create-queryconfig command.

    For example on Linux:

    ./create-queryconfig.sh <queryConfigName>

    Where <queryConfigName> is the name you want to use for the QueryConfig class. The name cannot have spaces.

    The command creates a new directory called <queryConfigName>-QueryConfig in the endeca-extensions directory.

    This directory is an Eclipse project that you can import directly into Eclipse.

    It contains an empty sample implementation of a QueryConfig.

For both QueryFilter and QueryConfig classes, the skeleton implementation: