Package org.yamcs.studio.core
Class YamcsPlugin
java.lang.Object
org.eclipse.core.runtime.Plugin
org.eclipse.ui.plugin.AbstractUIPlugin
org.yamcs.studio.core.YamcsPlugin
- All Implemented Interfaces:
org.osgi.framework.BundleActivator
-
Field Summary
FieldsFields inherited from class org.eclipse.core.runtime.Plugin
PLUGIN_PREFERENCE_SCOPE, PREFERENCES_DEFAULT_OVERRIDE_BASE_NAME, PREFERENCES_DEFAULT_OVERRIDE_FILE_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddListener(YamcsAware listener) static voiddisconnect(boolean lost) formatInstant(Instant instant) Formats a Yamcs instant.formatInstant(Instant instant, boolean tzOffset) Formats a Yamcs instant.static ArchiveClientorg.osgi.framework.BundleContextstatic YamcsPluginstatic ImageDescriptorgetImageDescriptor(String path) Obtain image descriptor for image in pluginstatic Stringstatic MissionDatabasestatic MissionDatabaseClientstatic Instantstatic InstantgetMissionTime(boolean wallClockIfUnset) static Stringstatic ProcessorClientstatic ProcessorInfostatic Stringstatic GetServerInfoResponsestatic <T extends PluginService>
TgetService(Class<T> clazz) static SoundSystemstatic StudioSpellApiClientstatic StorageClientstatic TimeZonestatic UserInfogetUser()static YamcsClientstatic ZoneIdstatic booleanhasAnyObjectPrivilege(String objectPrivilegeType) static booleanhasObjectPrivilege(String objectPrivilegeType, String object) static booleanhasSystemPrivilege(String systemPrivilege) static Yamcs.NamedObjectIdidentityOf(String pvName) static booleanbooleanstatic Iterator<YamcsAware>static intstatic voidremoveListener(YamcsAware listener) voidsetDateFormat(String pattern) voidstart(org.osgi.framework.BundleContext context) voidstop(org.osgi.framework.BundleContext context) static voidupdateEntities(RemoteEntityHolder holder) Methods inherited from class org.eclipse.ui.plugin.AbstractUIPlugin
createImageRegistry, getDialogSettings, getImageRegistry, getPreferenceStore, getWorkbench, imageDescriptorFromPlugin, initializeDefaultPluginPreferences, initializeDefaultPreferences, initializeImageRegistry, loadDialogSettings, loadPreferenceStore, refreshPluginActions, saveDialogSettings, savePreferenceStore, shutdown, startupMethods inherited from class org.eclipse.core.runtime.Plugin
find, find, getBundle, getLog, getPluginPreferences, getStateLocation, internalInitializeDefaultPluginPreferences, isDebugging, openStream, openStream, savePluginPreferences, setDebugging, toString
-
Field Details
-
PLUGIN_ID
- See Also:
-
CMD_CONNECT
- See Also:
-
-
Constructor Details
-
YamcsPlugin
public YamcsPlugin()
-
-
Method Details
-
start
- Specified by:
startin interfaceorg.osgi.framework.BundleActivator- Overrides:
startin classAbstractUIPlugin- Throws:
Exception
-
addListener
-
removeListener
-
getService
-
getUser
-
getServerInfo
-
hasAnyObjectPrivilege
-
hasObjectPrivilege
-
hasSystemPrivilege
-
isAuthorizationEnabled
public static boolean isAuthorizationEnabled() -
stop
- Specified by:
stopin interfaceorg.osgi.framework.BundleActivator- Overrides:
stopin classAbstractUIPlugin- Throws:
Exception
-
getDefault
-
setDateFormat
-
formatInstant
Formats a Yamcs instant. Timezone information is not added. Must be called on SWT thread due to reuse of dateformatter. -
formatInstant
Formats a Yamcs instant. Must be called on SWT thread due to reuse of dateformatter.- Parameters:
tzOffset- whether timezone offset is added to the output string.
-
parseTime
- Throws:
ParseException
-
isSpellEnabled
public boolean isSpellEnabled() -
getSoundSystem
-
getYamcsClient
-
getArchiveClient
-
getStorageClient
-
getProcessorClient
-
getMissionDatabaseClient
-
getSpellClient
-
getInstance
-
getProcessor
-
getProcessorInfo
-
getClearance
-
getMissionDatabase
-
getMissionTime
-
getMissionTime
-
getTimeZone
-
getZoneId
-
getProductString
-
nextCommandSequenceNumber
public static int nextCommandSequenceNumber() -
listeners
-
updateEntities
-
disconnect
public static void disconnect(boolean lost) -
getImageDescriptor
Obtain image descriptor for image in plugin- Parameters:
path- Path to image within plugin- Returns:
ImageDescriptor
-
identityOf
-
getContext
public org.osgi.framework.BundleContext getContext()
-