Changeset 409
- Timestamp:
- 10/06/08 21:03:17 (3 months ago)
- Files:
-
- jasko.tim.lisp/plugin.properties (modified) (1 diff)
- jasko.tim.lisp/plugin.xml (modified) (1 diff)
- jasko.tim.lisp/src/jasko/tim/lisp/navigator/CleanFaslsAction.java (modified) (2 diffs)
- jasko.tim.lisp/src/jasko/tim/lisp/navigator/LispResourceFilter.java (modified) (2 diffs)
- jasko.tim.lisp/src/jasko/tim/lisp/swank/LispImplementation.java (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
jasko.tim.lisp/plugin.properties
r375 r409 15 15 Action.LoadProject = Load Project 16 16 Action.LoadFile = Load file 17 Action.Delete FASLs = Delete .fasls17 Action.DeleteCompilerOutputs = Delete compiler outputs 18 18 19 19 LispViewsCategory = Lisp jasko.tim.lisp/plugin.xml
r404 r409 206 206 <action 207 207 id="jasko.tim.lisp.navigator.CleanFaslsAction" 208 label="%Action.Delete FASLs"208 label="%Action.DeleteCompilerOutputs" 209 209 icon="icons/clear.gif" 210 210 menubarPath="group.add" jasko.tim.lisp/src/jasko/tim/lisp/navigator/CleanFaslsAction.java
r354 r409 5 5 import jasko.tim.lisp.LispPlugin; 6 6 import jasko.tim.lisp.swank.SwankInterface; 7 import jasko.tim.lisp.swank.LispImplementation; 7 8 8 9 import org.eclipse.core.resources.*; … … 62 63 } else if (resource instanceof IFile) { 63 64 IFile file = (IFile) resource; 65 String fname = file.getName(); 64 66 65 if (file.exists() && file.getName().endsWith(".fasl")) {67 if (file.exists() && LispImplementation.isCompilerOutput(fname)) { 66 68 file.delete(true, monitor); 67 69 } jasko.tim.lisp/src/jasko/tim/lisp/navigator/LispResourceFilter.java
r11 r409 4 4 import org.eclipse.jface.viewers.Viewer; 5 5 import org.eclipse.ui.views.navigator.ResourcePatternFilter; 6 import jasko.tim.lisp.swank.LispImplementation; 6 7 7 8 … … 17 18 || fileName.equals(".DS_Store") 18 19 || fileName.endsWith(".fas") 19 || fileName.endsWith(".fasl")20 || LispImplementation.isCompilerOutput(fileName) 20 21 || fileName.endsWith("~") 21 22 || fileName.endsWith(".lib")) { jasko.tim.lisp/src/jasko/tim/lisp/swank/LispImplementation.java
r407 r409 12 12 protected String flispType = ""; //possible values SBCL, CLISP etc. 13 13 protected boolean hasthreads = true; 14 private static final String [] compilerOutputs = new String[] { 15 ".fasl", // SBCL compiler output 16 ".dfsl", // Clozure CL, openmcl output 17 ".d64fsl", // Same as above 18 ".dx64fsl" // Same as above 19 }; 14 20 15 21 // Probably lisp implementation specific - tested with SBCL … … 19 25 public String lispType(){ return flispType; } 20 26 public boolean hasThreads(){ return hasthreads; } 27 28 public static boolean isCompilerOutput(String lispFile) { 29 boolean result = false; 30 for (int i = 0; i < compilerOutputs.length && !result; ++i) { 31 if (lispFile.endsWith(compilerOutputs[i])) 32 result = true; 33 } 34 return result; 35 } 21 36 /** 22 37 * @return whether this instance is valid (ie can roll off a process)
