|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.aptana.ide.ui.editors.preferences.formatter.ProfileStore
public class ProfileStore
Can load/store profiles from/to profilesKey
| Field Summary | |
|---|---|
static java.lang.String |
ENCODING
The default encoding to use |
protected static java.lang.String |
VERSION_KEY_SUFFIX
|
| Constructor Summary | |
|---|---|
ProfileStore(java.lang.String profilesKey,
java.lang.String pluginId)
|
|
| Method Summary | |
|---|---|
java.util.List |
readProfiles(org.eclipse.core.runtime.preferences.IScopeContext scope)
|
java.util.List |
readProfilesFromFile(java.io.File file)
Read the available profiles from the internal XML file and return them as collection or null if the file is not a profile file. |
static java.util.List |
readProfilesFromStream(org.xml.sax.InputSource inputSource)
Load profiles from a XML stream and add them to a map or null if the source is not a profile store. |
java.util.List |
readProfilesFromString(java.lang.String profiles)
|
void |
writeProfiles(java.util.Collection profiles,
org.eclipse.core.runtime.preferences.IScopeContext instanceScope)
|
void |
writeProfilesToFile(java.util.Collection profiles,
java.io.File file,
java.lang.String encoding)
Write the available profiles to the internal XML file. |
static void |
writeProfilesToStream(java.util.Collection profiles,
java.io.OutputStream stream,
java.lang.String encoding)
Save profiles to an XML stream |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String ENCODING
protected static final java.lang.String VERSION_KEY_SUFFIX
| Constructor Detail |
|---|
public ProfileStore(java.lang.String profilesKey,
java.lang.String pluginId)
profilesKey - pluginId - | Method Detail |
|---|
public java.util.List readProfiles(org.eclipse.core.runtime.preferences.IScopeContext scope)
throws org.eclipse.core.runtime.CoreException
scope -
null if the loading failed. The elements are of type ProfileManager.CustomProfile
and are all updated to the latest version.
org.eclipse.core.runtime.CoreException
public void writeProfiles(java.util.Collection profiles,
org.eclipse.core.runtime.preferences.IScopeContext instanceScope)
throws org.eclipse.core.runtime.CoreException
profiles - instanceScope -
org.eclipse.core.runtime.CoreException
public java.util.List readProfilesFromString(java.lang.String profiles)
throws org.eclipse.core.runtime.CoreException
profiles -
org.eclipse.core.runtime.CoreException
public java.util.List readProfilesFromFile(java.io.File file)
throws org.eclipse.core.runtime.CoreException
null if the file is not a profile file.
file - The file to read from
CustomProfile or null
org.eclipse.core.runtime.CoreException
public static java.util.List readProfilesFromStream(org.xml.sax.InputSource inputSource)
throws org.eclipse.core.runtime.CoreException
null if the source is not a profile store.
inputSource - The input stream
CustomProfile or null
org.eclipse.core.runtime.CoreException
public void writeProfilesToFile(java.util.Collection profiles,
java.io.File file,
java.lang.String encoding)
throws org.eclipse.core.runtime.CoreException
profiles - List of CustomProfilefile - File to writeencoding - the encoding to use
org.eclipse.core.runtime.CoreException
public static void writeProfilesToStream(java.util.Collection profiles,
java.io.OutputStream stream,
java.lang.String encoding)
throws org.eclipse.core.runtime.CoreException
profiles - the list of CustomProfilestream - the stream to write toencoding - the encoding to use
org.eclipse.core.runtime.CoreException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||