Package org.jetbrains.plugins.clojure.config

Examples of org.jetbrains.plugins.clojure.config.ClojureFacet


        return new HashMap<String, String>();
      }
    };

    final Project project = module.getProject();
    final ClojureFacet clojureFacet = getClojureFacet(module);
    String title = REPL_TITLE;
    if (clojureFacet != null && clojureFacet.isRunNrepl()) title = nREPL_TITLE;
    final ClojureConsoleRunner runner = new ClojureConsoleRunner(module, title, provider, workingDir);

    try {
      runner.initAndRun(module, statements2execute);
    } catch (ExecutionException e) {
View Full Code Here



  protected ClojureConsoleView createConsoleView(Module module) {
    String nReplHost = null;
    String nReplPort = null;
    final ClojureFacet facet = getClojureFacet(module);
    if (facet != null) {
      nReplHost = facet.getNreplHost();
      nReplPort = facet.getNreplPort();
    }
    return new ClojureConsoleView(getProject(), getConsoleTitle(), getHistoryModel(), getConsoleExecuteActionHandler(),
        nReplHost, nReplPort);
  }
View Full Code Here

    }
    return cmd;
  }

  private static String getMainReplClass(Module module) {
    final ClojureFacet facet = getClojureFacet(module);
    if (facet == null) {
      return ClojureUtils.CLOJURE_MAIN;
    }
    return facet.getReplClass();
  }
View Full Code Here

    }
    return facet.getReplClass();
  }

  private static boolean isRunNrepl(Module module) {
    final ClojureFacet facet = getClojureFacet(module);
    if (facet == null) {
      return false;
    }
    return facet.isRunNrepl();
  }
View Full Code Here

    }
    return line;
  }

  private static List<String> getJvmClojureOptions(Module module) {
    final ClojureFacet facet = getClojureFacet(module);
    String opts = facet != null ? facet.getJvmOptions() : null;
    if (opts == null || opts.trim().isEmpty()) return Arrays.asList();
    return Arrays.asList(opts.split("\\s+"));
  }
View Full Code Here

    final FacetManager manager = FacetManager.getInstance(module);
    return manager.getFacetByType(ClojureFacet.ID);
  }

  private static List<String> getReplClojureOptions(Module module) {
    final ClojureFacet facet = getClojureFacet(module);
    String opts = facet != null ? facet.getReplOptions() : null;
    if (opts == null || opts.trim().isEmpty()) return Arrays.asList();
    return Arrays.asList(opts.split("\\s+"));
  }
View Full Code Here

      if (modules.length == 1) {
        module = modules[0];
      } else {
        for (Module m : modules) {
          final FacetManager manager = FacetManager.getInstance(m);
          final ClojureFacet clFacet = manager.getFacetByType(ClojureFacetType.INSTANCE.getId());
          if (clFacet != null) {
            module = m;
            break;
          }
        }
View Full Code Here

      if (modules.length == 1) {
        module = modules[0];
      } else {
        for (Module m : modules) {
          final FacetManager manager = FacetManager.getInstance(m);
          final ClojureFacet clFacet = manager.getFacetByType(ClojureFacetType.INSTANCE.getId());
          if (clFacet != null) {
            module = m;
            break;
          }
        }
View Full Code Here

      presentation.setVisible(false);
      return;
    }

    final FacetManager manager = FacetManager.getInstance(module);
    final ClojureFacet facet = manager.getFacetByType(ClojureFacetType.INSTANCE.getId());

    if (facet == null ||
        !ClojureUtils.isSuitableModule(module) ||
        !presentation.isEnabled() ||
        !isUnderSourceRoots(event)) {
View Full Code Here

TOP

Related Classes of org.jetbrains.plugins.clojure.config.ClojureFacet

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.