Skip to content
This repository was archived by the owner on Jan 15, 2025. It is now read-only.

Commit 9ec9f50

Browse files
committed
repl API changed in the Rascal project
1 parent d11e9e4 commit 9ec9f50

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

rascal-eclipse/src/org/rascalmpl/eclipse/repl/RascalTerminalConnector.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
import org.rascalmpl.eclipse.nature.RascalMonitor;
5252
import org.rascalmpl.eclipse.nature.WarningsToPrintWriter;
5353
import org.rascalmpl.eclipse.util.ThreadSafeImpulseConsole;
54+
import org.rascalmpl.ideservices.IDEServices;
5455
import org.rascalmpl.interpreter.Evaluator;
5556
import org.rascalmpl.interpreter.result.IRascalResult;
5657
import org.rascalmpl.interpreter.utils.RascalManifest;
@@ -264,12 +265,15 @@ protected BaseRascalREPL constructRascalREPL(ITerminalControl control, REPLPiped
264265
private DebugHandler debugHandler;
265266

266267
@Override
267-
protected Evaluator constructEvaluator(InputStream input, OutputStream stdout, OutputStream stderr) {
268+
protected Evaluator constructEvaluator(InputStream input, OutputStream stdout, OutputStream stderr, IDEServices ideServices) {
268269
IProject ipr = project != null ? ResourcesPlugin.getWorkspace().getRoot().getProject(project) : null;
269270
if (ipr != null && !ipr.isOpen()) {
270271
ipr = null;
271272
}
272273
Evaluator eval = ProjectEvaluatorFactory.getInstance().createProjectEvaluator(ipr, input, stderr, stdout);
274+
if (ideServices != null) {
275+
eval.setMonitor(ideServices);
276+
}
273277

274278
// TODO: this is a workaround to get access to a launch, but we'd rather
275279
// just get it from the terminal's properties

0 commit comments

Comments
 (0)