|
Eclipse PDE Release 3.4 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.pde.core.plugin.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(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 as specified on the Environment tab of the Plug-in Development > Target Platform preference page. |
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. |
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 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 the
null
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 configuration
CoreException
- 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.
|
Eclipse PDE Release 3.4 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |