Search in sources :

Example 6 with TaskListener

use of org.eclipse.ceylon.langtools.source.util.TaskListener in project ceylon by eclipse.

the class MultiTaskListener method add.

public void add(TaskListener listener) {
    for (TaskListener l : listeners) {
        if (ccw.unwrap(l) == listener)
            throw new IllegalStateException();
    }
    listeners = Arrays.copyOf(listeners, listeners.length + 1);
    listeners[listeners.length - 1] = ccw.wrap(listener);
}
Also used : TaskListener(org.eclipse.ceylon.langtools.source.util.TaskListener)

Aggregations

TaskListener (org.eclipse.ceylon.langtools.source.util.TaskListener)6 TaskEvent (org.eclipse.ceylon.langtools.source.util.TaskEvent)5 CeyloncTaskImpl (org.eclipse.ceylon.compiler.java.tools.CeyloncTaskImpl)4 File (java.io.File)3 ZipFile (java.util.zip.ZipFile)3 DiagnosticListener (org.eclipse.ceylon.javax.tools.DiagnosticListener)3 JCCompilationUnit (org.eclipse.ceylon.langtools.tools.javac.tree.JCTree.JCCompilationUnit)3 JavaPositionsRetriever (org.eclipse.ceylon.compiler.java.codegen.JavaPositionsRetriever)2 ExitState (org.eclipse.ceylon.compiler.java.launcher.Main.ExitState)2 JavacTaskImpl (org.eclipse.ceylon.langtools.tools.javac.api.JavacTaskImpl)2 Context (org.eclipse.ceylon.langtools.tools.javac.util.Context)2 IOException (java.io.IOException)1 MalformedURLException (java.net.MalformedURLException)1 URLClassLoader (java.net.URLClassLoader)1 HashMap (java.util.HashMap)1 CeylonModelLoader (org.eclipse.ceylon.compiler.java.loader.CeylonModelLoader)1 RuntimeModelLoader (org.eclipse.ceylon.compiler.java.runtime.model.RuntimeModelLoader)1 RuntimeModuleManager (org.eclipse.ceylon.compiler.java.runtime.model.RuntimeModuleManager)1 CompilerError (org.eclipse.ceylon.compiler.java.test.CompilerError)1 PhasedUnit (org.eclipse.ceylon.compiler.typechecker.context.PhasedUnit)1