|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openoffice.ide.eclipse.core.model.SDKContainer
public class SDKContainer
Singleton object containing the SDK instances.
Method Summary | |
---|---|
static void |
addListener(IConfigListener pListener)
Add a SDK listener to the container. |
static void |
addSDK(ISdk pSdk)
Add the SDK given in parameter to the list of the others. |
static void |
clear()
Removes all the SDK contained. |
static void |
delSDK(ISdk pSdk)
remove the given SDK from the list. |
static void |
dispose()
Dispose the vector used. |
static SDKContainer |
getInstance()
Singleton accessor, named getInstance in many other
singleton pattern implementations. |
static ISdk |
getSDK(java.lang.String pSdkkey)
Returns the sdk that corresponds to the given sdk name and buildid. |
static int |
getSDKCount()
Returns the number of SDK in the list. |
static java.util.Vector<java.lang.String> |
getSDKKeys()
Returns a vector containing the unique identifiers of the contained SDKs. |
static void |
load()
Loads the SDK already configured instances from the preferences. |
static void |
removeListener(IConfigListener pListener)
Removes a SDK listener from the container. |
static void |
saveSDKs()
Saves the SDK already configured instances to the preferences. |
static java.lang.Object[] |
toArray()
|
static void |
updateSDK(java.lang.String pSdkkey,
ISdk pSdk)
update the ith SDK from the list with the given SDK. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void addListener(IConfigListener pListener)
pListener
- SDK listener to addpublic static void removeListener(IConfigListener pListener)
pListener
- SDK listener to removepublic static java.lang.Object[] toArray()
public static void addSDK(ISdk pSdk)
pSdk
- SDK to addpublic static void delSDK(ISdk pSdk)
pSdk
- SDK to removepublic static void clear()
public static java.util.Vector<java.lang.String> getSDKKeys()
public static void updateSDK(java.lang.String pSdkkey, ISdk pSdk)
pSdkkey
- position of the sdk to updatepSdk
- new value for the SDKpublic static ISdk getSDK(java.lang.String pSdkkey)
pSdkkey
- unique identifier of the wanted sdk
public static int getSDKCount()
public static void dispose()
public static SDKContainer getInstance()
getInstance
in many other
singleton pattern implementations.
SDKContainer
singleton instance.public static void load()
public static void saveSDKs()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |