|
Eclipse PDE Release 3.6 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.pde.core.plugin.TargetPlatform
public class TargetPlatform
The central class for the plug-in development target platform. This class cannot be instantiated or subclassed by clients; all functionality is provided by static methods. Features include:
Constructor Summary | |
---|---|
TargetPlatform()
|
Method Summary | |
---|---|
static void |
createPlatformConfiguration(java.io.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 java.lang.String[] |
getApplications()
Returns a list of identifiers for all available applications (i.e. |
static java.lang.String |
getBundleList()
The comma-separated list of bundles which are automatically installed and optionally started. |
static java.lang.String |
getDefaultApplication()
Returns the ID for the default application ( org.eclipse.core.runtime.applications extension) for the current target
platform. |
static java.lang.String |
getDefaultLocation()
Returns the location of the default target platform, namely the location of the host (running) instance of Eclipse. |
static java.lang.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 java.lang.String |
getLocation()
Returns the target platform's main location as specified on the Environment tab of the Plug-in Development > Target Platform preference page. |
static java.lang.String |
getNL()
Returns the target locale as specified on the Environment tab of the Plug-in Development > Target Platform preference page. |
static java.lang.String |
getOS()
Returns the target operating system as specified on the Environment tab of the Plug-in Development > Target Platform preference page. |
static java.lang.String |
getOSArch()
Returns the target system architecture as specified on the Environment tab of the Plug-in Development > Target Platform preference page. |
static java.lang.String[] |
getProducts()
Returns a list of identifiers for all available products (i.e. |
static java.lang.String |
getWS()
Returns the target windowing system as specified on the Environment tab of the Plug-in Development > Target Platform preference page. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TargetPlatform()
Method Detail |
---|
public static java.lang.String getLocation()
public static java.lang.String getDefaultLocation()
public static java.lang.String getOS()
public static java.lang.String getWS()
public static java.lang.String getNL()
public static java.lang.String getOSArch()
public static java.lang.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 java.lang.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 java.lang.String getDefaultProduct()
org.eclipse.core.runtime.products
extension) for the current target platform,
or null
if none can be determined.
If any of the
null
if none could be determinedpublic static java.lang.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(java.io.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 configuration
CoreException
- an exception is thrown if there was a problem writing the platform
configuration filepublic static java.lang.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.
|
Eclipse PDE Release 3.6 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) 2000, 2010 IBM Corporation and others. All rights reserved.