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
ConstructorsConstructorDescriptionRemove 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 TypeMethodDescriptionvoidrun(IProgressMonitor monitor) protected voidrunBefore(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:
runin interfaceIRunnableWithProgress- Throws:
InvocationTargetExceptionInterruptedException
-
runBefore
Extension hook to run actions before switching contexts
-