Package jetbrains.mps.make.script
Class IScriptController.Stub2
- java.lang.Object
 - 
- jetbrains.mps.make.script.IScriptController.Stub2
 
 
- 
- All Implemented Interfaces:
 IScriptController
- Enclosing interface:
 - IScriptController
 
public static class IScriptController.Stub2 extends Object implements IScriptController
Session-sensitive controller. The idea was, imo, to keep controller session-independent, but I can't find a way to pass MakeSession to individual targets without this change. Alternative is to change IScript, but it doesn't suggest a mechanism to pass MakeSession furher to the task's IJob, while IJobMonitor of the controller does. Now, I need a make session there, and don't want to spend time with IScript refactoring. XXX Nevertheless consider alternative IScript implementation with a mechanism to pass MakeSession to tasks. Script is truly session-sensitive, after all. Even then this class makes sense with generic code to employPropertyPoolInitializerto set up tasks. To pass MakeSession with Script, I can utilize the fact that MakeSession creates IScript in itstoScript(ScriptBuilder)method. Script would further to ITarget.createJob(), and pass MakeSession in there (if supported. Could even introduce createJob(MakeSession)). The reason I stick to IJobMonitor is that (a) once IProgress is history, there'd be nothing in IJobMonitor, (b) IJobMonitor gives clear scope when one could ask for session (with alternative approach, where IJob is configured, scope and presence of the session would be implicit). 
- 
- 
Nested Class Summary
- 
Nested classes/interfaces inherited from interface jetbrains.mps.make.script.IScriptController
IScriptController.Stub, IScriptController.Stub2 
 - 
 
- 
Constructor Summary
Constructors Constructor Description Stub2(MakeSession makeSession, PropertyPoolInitializer... poolInitializers) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidrunConfigWithMonitor(jetbrains.mps.baseLanguage.closures.runtime._FunctionTypes._void_P1_E0<? super IConfigMonitor> code)voidrunJobWithMonitor(jetbrains.mps.baseLanguage.closures.runtime._FunctionTypes._void_P1_E0<? super IJobMonitor> code)voidsetup(IPropertiesPool pp, Iterable<ITarget> toExecute, Iterable<? extends IResource> input)voiduseMonitor(ProgressMonitor monitor)Deprecated. 
 - 
 
- 
- 
Constructor Detail
- 
Stub2
public Stub2(@NotNull MakeSession makeSession, PropertyPoolInitializer... poolInitializers)
 
 - 
 
- 
Method Detail
- 
runConfigWithMonitor
public void runConfigWithMonitor(jetbrains.mps.baseLanguage.closures.runtime._FunctionTypes._void_P1_E0<? super IConfigMonitor> code)
- Specified by:
 runConfigWithMonitorin interfaceIScriptController
 
- 
runJobWithMonitor
public void runJobWithMonitor(jetbrains.mps.baseLanguage.closures.runtime._FunctionTypes._void_P1_E0<? super IJobMonitor> code)
- Specified by:
 runJobWithMonitorin interfaceIScriptController
 
- 
setup
public void setup(IPropertiesPool pp, Iterable<ITarget> toExecute, Iterable<? extends IResource> input)
- Specified by:
 setupin interfaceIScriptController
 
- 
useMonitor
@Deprecated public void useMonitor(ProgressMonitor monitor)
Deprecated.- Specified by:
 useMonitorin interfaceIScriptController
 
 - 
 
 -