package nxm.sys.intr;

import nxm.sys.lib.Intrinsic;
import nxm.sys.lib.Shell;
import tools.BuildProps;

/** HelpSwap provides the fields needed to maintain the basic CLI functionality for HELP.
    This does NOT include any graphics functionalities for HELP which depend on the old lucene jar.

    NOTE: The fields in HelpSwap were originally in Help; they have been extracted into HelpSwap.

    @author Zachary Matthews
    @since NeXtMidas 4.0.0
 */
abstract class HelpSwap extends Intrinsic {
  /** properties from sys/cfg/build.props */
  BuildProps sysBuildProps; // since 3.3.4, delay loading until needed
  boolean debug = false;

  public int open () {
    return NORMAL;
  }

  int runLuceneIndex () {
    Shell.getMidasContext().warning("Help Index disabled - run adjust-jar-dependencies.sh HELP to restore needed Classes");
    return FINISH;
  }

  int runLuceneGUI () {
    Shell.getMidasContext().warning("Help GUI disabled - run adjust-jar-dependencies.sh HELP to restore needed Classes");
    return FINISH;
  }

  int runLuceneLiteGUI () {
    Shell.getMidasContext().warning("Help LiteGUI disabled - run adjust-jar-dependencies.sh HELP to restore needed Classes");
    return FINISH;
  }

  void runLuceneSearchInteraction () {
    Shell.getMidasContext().warning("Help No-Legacy Search Interaction disabled - run adjust-jar-dependencies.sh HELP to restore needed Classes");
  }

  public int close() {
    return NORMAL;
  }
}
