public interface ICSettingsStorage
ICStorageElement
s).
ICProjectDescription
and ICConfigurationDescription
implement this
interface thus providing the capabilities to store custom project-wide and configuration-specific
data in the storage file
ICConfigurationDescription
storage trees. See
CConfigurationDataProvider.loadConfiguration(ICConfigurationDescription, IProgressMonitor)
and CConfigurationDataProvider.applyConfiguration(ICConfigurationDescription, ICConfigurationDescription, CConfigurationData, IProgressMonitor)
ICStorageElement
,
ICProjectDescription
,
ICConfigurationDescription
Modifier and Type | Method and Description |
---|---|
ICStorageElement |
getStorage(String id,
boolean create)
returns the storage of the specified id
|
ICStorageElement |
importStorage(String id,
ICStorageElement el)
Import an existing ICStorageElement storage module into the ICSettingsStorage
Returns a handle on the newly imported ICSettingsStorage
NB Storage IDs are unique in an ICSettingsStorage.
|
boolean |
isModified()
Returns whether any non-persisted changes exist in this tree
|
boolean |
isReadOnly()
Return whether this Settings Storage is currently read only
|
void |
removeStorage(String id)
Remove the storage module with the given ID from this ICSettingsStorage
|
void |
setReadOnly(boolean readOnly,
boolean keepModify)
Mark this Settings Storage as read only.
|
ICStorageElement getStorage(String id, boolean create) throws org.eclipse.core.runtime.CoreException
id
- any custom string value uniquely representing the storageICStorageElement
if the settings storage does not contain the information of
the specified id an empty storage is created and returnedorg.eclipse.core.runtime.CoreException
ICStorageElement
void removeStorage(String id) throws org.eclipse.core.runtime.CoreException
id
- org.eclipse.core.runtime.CoreException
ICStorageElement importStorage(String id, ICStorageElement el) throws UnsupportedOperationException, org.eclipse.core.runtime.CoreException
id
- name of the storage to be importedel
- ICStorageElement to be importedUnsupportedOperationException
org.eclipse.core.runtime.CoreException
boolean isModified()
boolean isReadOnly()
void setReadOnly(boolean readOnly, boolean keepModify)
readOnly
- keepModify
- Copyright (c) IBM Corp. and others 2004, 2020. All Rights Reserved.