Interface ApplicationInformationAccess
-
- All Known Subinterfaces:
AuthorWorkspaceAccess
,EclipsePluginWorkspace
,PluginWorkspace
,StandalonePluginWorkspace
,WebappPluginWorkspace
,Workspace
,WorkspaceUtilities
@API(type=NOT_EXTENDABLE, src=PUBLIC) public interface ApplicationInformationAccess
Access to various details about the application. One way to obtain an implementation from a plugin is:ApplicationInformationAccess info = PluginWorkspaceProvider.getPluginWorkspace();
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getApplicationName()
Get the display name of the application.ApplicationType
getApplicationType()
Get the type of the application.ro.sync.exml.workspace.api.license.LicenseInformationProvider
getLicenseInformationProvider()
Get information about the license used in the current Oxygen application.Platform
getPlatform()
Return the oXygen platform that is currently running.java.lang.String
getPreferencesDirectory()
Get the options directory where the Oxygen preferences are saved.java.lang.String
getUserInterfaceLanguage()
Get the language used to display the GUI controls (buttons, label) in Oxygen.java.lang.String
getVersion()
Get the current version of the Oxygen/Author product.java.lang.String
getVersionBuildID()
Get the build ID of the current application.
-
-
-
Method Detail
-
getLicenseInformationProvider
ro.sync.exml.workspace.api.license.LicenseInformationProvider getLicenseInformationProvider()
Get information about the license used in the current Oxygen application.- Returns:
- The license information provider
- Since:
- 12.1
-
getPreferencesDirectory
java.lang.String getPreferencesDirectory()
Get the options directory where the Oxygen preferences are saved. Can be used to save additional user data there.- Returns:
- the directory where the Oxygen preferences are saved. Returns a string like: c:\\Documents and Settings\\username\\com.oxygenxml
- Since:
- 12.1
-
getUserInterfaceLanguage
java.lang.String getUserInterfaceLanguage()
Get the language used to display the GUI controls (buttons, label) in Oxygen. Examples of format: en_US, fr_FR, de_DE, jp_JP, it_IT, nl_NL- Returns:
- The language used to display the GUI controls (buttons, label) in Oxygen.
- Since:
- 12.1
-
getVersion
java.lang.String getVersion()
Get the current version of the Oxygen/Author product. Can be used to decide if some extension functions are available or not.- Returns:
- The version of the Oxygen application in which the extension runs. Returns a string like: 11.2
- Since:
- 12
-
getVersionBuildID
java.lang.String getVersionBuildID()
Get the build ID of the current application. It is a string with a format like "YYYYMMDDHH". Example: "2013110816". This is the same information present in the Help menu -> About dialog.- Returns:
- the build ID of the current application.
- Since:
- 16
-
getApplicationType
ApplicationType getApplicationType()
Get the type of the application.- Returns:
- the type of the application, one of the constants in the
ApplicationType
enumeration. - Since:
- 19
-
getApplicationName
java.lang.String getApplicationName()
Get the display name of the application.- Returns:
- the display name of the application, one of the constants in the ro.sync.ui.application.ApplicationMainFrameDescriptor interface.
- Since:
- 19
-
getPlatform
Platform getPlatform()
Return the oXygen platform that is currently running.- Returns:
Platform.STANDALONE
if the code is running in the oXygen stand alone application,Platform.ECLIPSE
if the code is running in the oXygen Eclipse plugin, andPlatform.WEBAPP
if the code is running inside the oXygen WebApp.- Since:
- 17
-
-