public class TargetPlatform extends Object
Constructor and Description |
---|
TargetPlatform() |
Modifier and Type | Method and Description |
---|---|
static void |
createPlatformConfiguration(File location,
IPluginModelBase[] plugins,
IPluginModelBase brandingPlugin)
Creates a platform configuration to be used when launching an Eclipse
application that uses Update Manager as a configurator
|
static String[] |
getApplications()
Returns a list of identifiers for all available applications
(i.e.
|
static String |
getBundleList()
The comma-separated list of bundles which are automatically installed
and optionally started.
|
static String |
getDefaultApplication()
Returns the ID for the default application
(
org.eclipse.core.runtime.applications extension) for the current target
platform. |
static String |
getDefaultLocation()
Returns the location of the default target platform, namely the location
of the host (running) instance of Eclipse.
|
static String |
getDefaultProduct()
Returns the ID for the default product
(
org.eclipse.core.runtime.products extension) for the current target platform,
or null if none can be determined. |
static String |
getLocation()
Returns the target platform's main location.
|
static String |
getNL()
Returns the target locale as specified on the Environment
tab of the Plug-in Development > Target Platform preference page.
|
static String |
getOS()
Returns the target operating system as specified on the Environment
tab of the Plug-in Development > Target Platform preference page.
|
static String |
getOSArch()
Returns the target system architecture as specified on the Environment
tab of the Plug-in Development > Target Platform preference page.
|
static String[] |
getProducts()
Returns a list of identifiers for all available products
(i.e.
|
static String |
getWS()
Returns the target windowing system as specified on the Environment
tab of the Plug-in Development > Target Platform preference page.
|
public static String getLocation()
public static String getDefaultLocation()
public static String getOS()
public static String getWS()
public static String getNL()
public static String getOSArch()
public static String[] getApplications()
org.eclipse.core.runtime.applications
extensions) declared in the workspace
and target platform plug-ins.
If a workspace plug-in has the same ID as a plug-in in the target platform, the extensions declared in the target counterpart are ignored.
public static String[] getProducts()
org.eclipse.core.runtime.products
extensions) declared in the workspace
and target platform plug-ins.
If a workspace plug-in has the same ID as a plug-in in the target platform, the extensions declared in the target counterpart are ignored.
public static String getDefaultProduct()
org.eclipse.core.runtime.products
extension) for the current target platform,
or null
if none can be determined.
If any of thenull
if none could be determinedpublic static String getDefaultApplication()
org.eclipse.core.runtime.applications
extension) for the current target
platform.
If none could be determined, then org.eclipse.ui.ide.workbench
application is returned.
public static void createPlatformConfiguration(File location, IPluginModelBase[] plugins, IPluginModelBase brandingPlugin) throws CoreException
location
- the location where the configuration should be persistedplugins
- the list of plug-ins that make up the configurationbrandingPlugin
- if specified, a entry for the feature containing the branding plug-in will
be created in the platform configurationCoreException
- an exception is thrown if there was a problem writing the platform
configuration filepublic static String getBundleList()
Each entry if of the form
The list computed is based on the osgi.bundles key found in the config.ini file of the target platform. If no such key is found, then a suitable list is computed based on the target platform version.
Copyright (c) 2000, 2017 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.