Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.9.0)

E52944-01


javax.ide.extension
Class PlatformInfo

java.lang.Object
  extended by javax.ide.extension.PlatformInfo


public final class PlatformInfo
extends java.lang.Object

Encapsulates platform specific information required for an extension to work properly.


Field Summary
static java.lang.String SWING
          GUI toolkit identifier for Swing.
static java.lang.String SWT
          GUI toolkit identifier for SWT.

 

Constructor Summary
PlatformInfo(java.util.Collection toolkits)
          Create a PlatformInfo object for the specified toolkits.

 

Method Summary
 java.lang.String getPreferredToolkit()
          Get the preferred toolkit for this extension.
 boolean isToolkitSupported(java.lang.String toolkit)
          Gets whether a specific toolkit is supported.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Field Detail

SWING

public static final java.lang.String SWING
GUI toolkit identifier for Swing.
See Also:
Constant Field Values

SWT

public static final java.lang.String SWT
GUI toolkit identifier for SWT.
See Also:
Constant Field Values

Constructor Detail

PlatformInfo

public PlatformInfo(java.util.Collection toolkits)
Create a PlatformInfo object for the specified toolkits.
Parameters:
toolkits - all toolkits supported by this extension. The first toolkit in the collection should be the preferred toolkit. Must not be null or empty.

Method Detail

getPreferredToolkit

public java.lang.String getPreferredToolkit()
Get the preferred toolkit for this extension.
Returns:
the preferred toolkit for this extension.

isToolkitSupported

public boolean isToolkitSupported(java.lang.String toolkit)
Gets whether a specific toolkit is supported.
Parameters:
toolkit - to the toolkit to check for support. Either SWING or SWT.
Returns:
true if the specified toolkit is supported.

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.9.0)

E52944-01


Copyright © 1997, 2015, Oracle. All rights reserved.