Class ConnectionStateProvider
java.lang.Object
org.eclipse.ui.AbstractSourceProvider
org.yamcs.studio.core.ui.connections.ConnectionStateProvider
- All Implemented Interfaces:
ISourceProvider,YamcsAware
Used in plugin.xml core-expressions to keep track of connection state
-
Field Summary
FieldsFields inherited from class org.eclipse.ui.AbstractSourceProvider
DEBUG -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.eclipse.ui.AbstractSourceProvider
addSourceProviderListener, fireSourceChanged, fireSourceChanged, initialize, logDebuggingInfo, removeSourceProviderListenerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.yamcs.studio.core.YamcsAware
changeInstance, changeProcessor, changeProcessorInfo, updateClearance, updateTime
-
Field Details
-
STATE_KEY_CONNECTING
- See Also:
-
STATE_KEY_CONNECTED
- See Also:
-
-
Constructor Details
-
ConnectionStateProvider
public ConnectionStateProvider()
-
-
Method Details
-
getCurrentState
- Specified by:
getCurrentStatein interfaceISourceProvider
-
isConnected
public boolean isConnected() -
getProvidedSourceNames
- Specified by:
getProvidedSourceNamesin interfaceISourceProvider
-
onYamcsConnecting
public void onYamcsConnecting()- Specified by:
onYamcsConnectingin interfaceYamcsAware
-
onYamcsConnected
public void onYamcsConnected()Description copied from interface:YamcsAwareCalled when we the global connection to yamcs was succesfully established- Specified by:
onYamcsConnectedin interfaceYamcsAware
-
onYamcsDisconnected
public void onYamcsDisconnected()Description copied from interface:YamcsAwareCalled when the yamcs is connection went lost- Specified by:
onYamcsDisconnectedin interfaceYamcsAware
-
onYamcsConnectionFailed
- Specified by:
onYamcsConnectionFailedin interfaceYamcsAware
-
dispose
public void dispose()- Specified by:
disposein interfaceISourceProvider
-