Skip to content

Commit 28758ab

Browse files
committed
Add setExecutionContext to KNIMEExecutionService
Signed-off-by: Squareys <Squareys@googlemail.com>
1 parent fa71c6a commit 28758ab

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

org.knime.knip.scijava.commands/src/org/knime/knip/scijava/commands/DefaultKnimeExecutionService.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,11 @@ public class DefaultKnimeExecutionService extends AbstractService
3232
* {@link ExecutionContext} in a {@link WeakReference}, which means that the
3333
* reference needs to be kept valid outside the service.
3434
*
35-
* @param e
35+
* @param context
3636
*/
37-
public void setExecutionContex(final ExecutionContext e) {
38-
m_exec = new WeakReference<>(e);
37+
@Override
38+
public void setExecutionContext(final ExecutionContext context) {
39+
m_exec = new WeakReference<>(context);
3940
}
4041

4142
@Override

org.knime.knip.scijava.commands/src/org/knime/knip/scijava/commands/KNIMEExecutionService.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,9 @@ public interface KNIMEExecutionService extends Service {
2424
*/
2525
ExecutionContext getExecutionContext();
2626

27+
/**
28+
* Set the ExecutionContext for this service to hold.
29+
*/
30+
void setExecutionContext(ExecutionContext context);
31+
2732
}

0 commit comments

Comments
 (0)