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
Fields inherited from class org.eclipse.core.runtime.Plugin
PLUGIN_PREFERENCE_SCOPE, PREFERENCES_DEFAULT_OVERRIDE_BASE_NAME, PREFERENCES_DEFAULT_OVERRIDE_FILE_NAME
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addListener
(YamcsAware listener) static void
disconnect
(boolean lost) formatInstant
(Instant instant) Formats a Yamcs instant.formatInstant
(Instant instant, boolean tzOffset) Formats a Yamcs instant.static ArchiveClient
org.osgi.framework.BundleContext
static YamcsPlugin
static ImageDescriptor
getImageDescriptor
(String path) Obtain image descriptor for image in pluginstatic String
static MissionDatabase
static MissionDatabaseClient
static Instant
static Instant
getMissionTime
(boolean wallClockIfUnset) static String
static ProcessorClient
static ProcessorInfo
static String
static GetServerInfoResponse
static <T extends PluginService>
TgetService
(Class<T> clazz) static SoundSystem
static StudioSpellApiClient
static StorageClient
static TimeZone
static UserInfo
getUser()
static YamcsClient
static ZoneId
static boolean
hasAnyObjectPrivilege
(String objectPrivilegeType) static boolean
hasObjectPrivilege
(String objectPrivilegeType, String object) static boolean
hasSystemPrivilege
(String systemPrivilege) static Yamcs.NamedObjectId
identityOf
(String pvName) static boolean
boolean
static Iterator<YamcsAware>
static int
static void
removeListener
(YamcsAware listener) void
setDateFormat
(String pattern) void
start
(org.osgi.framework.BundleContext context) void
stop
(org.osgi.framework.BundleContext context) static void
updateEntities
(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, startup
Methods 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:
start
in interfaceorg.osgi.framework.BundleActivator
- Overrides:
start
in classAbstractUIPlugin
- Throws:
Exception
-
addListener
-
removeListener
-
getService
-
getUser
-
getServerInfo
-
hasAnyObjectPrivilege
-
hasObjectPrivilege
-
hasSystemPrivilege
-
isAuthorizationEnabled
public static boolean isAuthorizationEnabled() -
stop
- Specified by:
stop
in interfaceorg.osgi.framework.BundleActivator
- Overrides:
stop
in 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()
-