Package org.yamcs.studio.core
Class ContextSwitcher
java.lang.Object
org.yamcs.studio.core.ContextSwitcher
- All Implemented Interfaces:
IRunnableWithProgress
A job that helps to switch context (instance/processor) while keeping the same YamcsClient.
-
Constructor Summary
ConstructorDescriptionRemove any current context (no instance, and no processor)ContextSwitcher
(String instance) Switch context to a new instance, using the default processor for that instance.ContextSwitcher
(String instance, String processor) Switch context to a new instance, using a specific processor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
run
(IProgressMonitor monitor) protected void
runBefore
(IProgressMonitor monitor) Extension hook to run actions before switching contexts
-
Constructor Details
-
ContextSwitcher
Switch context to a new instance, using a specific processor. -
ContextSwitcher
Switch context to a new instance, using the default processor for that instance. -
ContextSwitcher
public ContextSwitcher()Remove any current context (no instance, and no processor)
-
-
Method Details
-
run
- Specified by:
run
in interfaceIRunnableWithProgress
- Throws:
InvocationTargetException
InterruptedException
-
runBefore
Extension hook to run actions before switching contexts
-