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
Fields inherited from class org.eclipse.ui.AbstractSourceProvider
DEBUG
-
Constructor Summary
-
Method Summary
Methods inherited from class org.eclipse.ui.AbstractSourceProvider
addSourceProviderListener, fireSourceChanged, fireSourceChanged, initialize, logDebuggingInfo, removeSourceProviderListener
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
getCurrentState
in interfaceISourceProvider
-
isConnected
public boolean isConnected() -
getProvidedSourceNames
- Specified by:
getProvidedSourceNames
in interfaceISourceProvider
-
onYamcsConnecting
public void onYamcsConnecting()- Specified by:
onYamcsConnecting
in interfaceYamcsAware
-
onYamcsConnected
public void onYamcsConnected()Description copied from interface:YamcsAware
Called when we the global connection to yamcs was succesfully established- Specified by:
onYamcsConnected
in interfaceYamcsAware
-
onYamcsDisconnected
public void onYamcsDisconnected()Description copied from interface:YamcsAware
Called when the yamcs is connection went lost- Specified by:
onYamcsDisconnected
in interfaceYamcsAware
-
onYamcsConnectionFailed
- Specified by:
onYamcsConnectionFailed
in interfaceYamcsAware
-
dispose
public void dispose()- Specified by:
dispose
in interfaceISourceProvider
-