|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openoffice.ide.eclipse.core.model.OOoContainer
public class OOoContainer
Singleton object containing the OOo configurations.
Method Summary | |
---|---|
static void |
addListener(IConfigListener pListener)
Add a configuration listener to the container. |
static void |
addOOo(IOOo pOoo)
Add the OOo given in parameter to the list of the others. |
static void |
clear()
Removes all the OOo contained. |
static boolean |
containsName(java.lang.String pName)
Checks whether the corresponding OOo name already exists. |
static void |
delOOo(IOOo pOoo)
remove the given OOo from the list. |
static void |
dispose()
Dispose the vector used. |
static OOoContainer |
getInstance()
|
static IOOo |
getOOo(java.lang.String pOookey)
Returns the ooo that corresponds to the given ooo name and buildid. |
static int |
getOOoCount()
Returns the number of OOo in the list. |
static java.util.Vector<java.lang.String> |
getOOoKeys()
Returns a vector containing the unique identifiers of the contained OOos. |
static IOOo |
getSomeOOo(java.lang.String pValue)
Leniently return an OOo instance descriptor from a given value. |
static java.lang.String |
getUniqueName(java.lang.String pName)
Computes a unique name from the given one. |
static void |
load()
Loads the OpenOffice.org already configured instances from the preferences. |
static void |
removeListener(IConfigListener pListener)
Removes a configuration listener from the container. |
static void |
saveOOos()
Saves the OpenOffice.org already configured instances to the preferences. |
static java.lang.Object[] |
toArray()
|
static void |
updateOOo(java.lang.String pOookey,
IOOo pOoo)
Update the with OOo from the list with the given OOo. |
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
- configuration listener to addpublic static void removeListener(IConfigListener pListener)
pListener
- configuration listener to removepublic static java.lang.Object[] toArray()
public static void addOOo(IOOo pOoo)
pOoo
- OOo to addpublic static void delOOo(IOOo pOoo)
pOoo
- OOo to removepublic static void clear()
public static java.util.Vector<java.lang.String> getOOoKeys()
public static boolean containsName(java.lang.String pName)
pName
- the OOo Name to check
true
if the name is already present,
false
otherwise.public static java.lang.String getUniqueName(java.lang.String pName)
pName
- the name to render unique
public static void updateOOo(java.lang.String pOookey, IOOo pOoo)
pOookey
- position of the ooo to updatepOoo
- new value for the OOopublic static IOOo getOOo(java.lang.String pOookey)
pOookey
- unique identifier of the wanted ooo
public static IOOo getSomeOOo(java.lang.String pValue)
This method will try several ways to find an OOo. These are the following:
pValue
pValue
null
will be returned.
pValue
- the value helping to find the OOo instance.
null
if not foundpublic static int getOOoCount()
public static void dispose()
public static void load()
public static void saveOOos()
public static OOoContainer getInstance()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |