Some compiler chain updates. Successfully invokes the java compiler, but doesn't feed it anything to compile.

This commit is contained in:
lonnen
2010-07-15 17:15:48 +00:00
parent d0d538d4b1
commit 695de9d88c
2 changed files with 15 additions and 2 deletions
@@ -1,6 +1,7 @@
package org.processing.actions;
import java.io.PrintWriter;
import java.io.StringWriter;
import org.eclipse.jface.action.IAction;
@@ -104,10 +105,22 @@ public class RunButton implements IEditorActionDelegate {
} catch (Exception e){
ProcessingLog.logError(e);
}
//to the java batch compiler!
org.eclipse.jdt.core.compiler.CompilationProgress progress = null;
// String baseCommand[] = new String[]{
// "-Xemacs",
// //"-noExit", // not necessary for ecj
// "-source", "1.5",
// "-target", "1.5",
// "-classpath", sketch.getClassPath(),
// "-nowarn", // we're not currently interested in warnings (works in ecj)
// "-d", buildPath // output the classes in the buildPath
// };
org.eclipse.jdt.core.compiler.batch.BatchCompiler.compile("-verbose", new PrintWriter(System.out), new PrintWriter(System.err), progress);
// do something with it
// do something with the results
}
/**
@@ -45,7 +45,7 @@ import org.eclipse.ui.texteditor.TextOperationAction;
* @see org.eclipse.ui.editors.text.TextEditor
*/
public class ProcessingEditor extends TextEditor {
private class DefineFoldingRegionAction extends TextEditorAction {
public DefineFoldingRegionAction(ResourceBundle bundle, String prefix, ITextEditor editor) {