Package ccw

Examples of ccw.ClojureProject


  // FIXME similar code in ClojureCore for finding classpath root related path
  private static String computeSourcePath(final ClojureEditor editor, final IFile editorFile, String filePath) {
    String sourcePath;
    if (editorFile != null) {
          ClojureProject proj = ClojureCore.getClojureProject(editor.getProject());
          String tempSourcePath = null;
          if (proj != null) {
              for (IFolder f : proj.sourceFolders()) {
                  if (f.getProjectRelativePath().isPrefixOf(editorFile.getProjectRelativePath())) {
                    tempSourcePath = editorFile.getProjectRelativePath().makeRelativeTo(f.getProjectRelativePath()).toOSString();
                      break;
                  }
              }
View Full Code Here


        return super.getClasspath(configuration);
      }
      
        List<String> classpath = new ArrayList<String>(Arrays.asList(super.getClasspath(configuration)));
      
        ClojureProject clojureProject = ClojureCore.getClojureProject(LaunchUtils.getProject(configuration));
        for (IFolder f: clojureProject.sourceFolders()) {
            String sourcePath = f.getLocation().toOSString();
          
            while (classpath.contains(sourcePath)) {
                // The sourcePath already exists, remove it first
                classpath.remove(sourcePath);
            }
          
            classpath.add(0, sourcePath);
        }
       
       
        if (clojureProject.getJavaProject().findElement(new Path("clojure/tools/nrepl")) == null) {
            try {
                File ccwPluginDir = FileLocator.getBundleFile(CCWPlugin.getDefault().getBundle());
                System.out.println("ccwPluginDir: " + ccwPluginDir);
                // this should *always* be a file, *unless* the user is getting nREPL from a clone of its
                // project, in which case we need to reach into that project's directory...
View Full Code Here

TOP

Related Classes of ccw.ClojureProject

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.