Search in sources :

Example 1 with EntryParser

use of org.eclipse.wst.json.core.internal.schema.catalog.EntryParser in project webtools.sourceediting by eclipse.

the class JSONCatalogPreferencePage method storePreferences.

private void storePreferences() {
    IEclipsePreferences prefs = getPreferences();
    try {
        String value = new EntryParser().serialize(entries.getEntries());
        prefs.put(EntryParser.JSON_CATALOG_ENTRIES, value);
        JSONCorePlugin.getDefault().clearCatalogCache();
        JSONSchemaProcessor.clearCache();
    } catch (Exception e) {
        logException(e);
    }
}
Also used : IEclipsePreferences(org.eclipse.core.runtime.preferences.IEclipsePreferences) EntryParser(org.eclipse.wst.json.core.internal.schema.catalog.EntryParser)

Aggregations

IEclipsePreferences (org.eclipse.core.runtime.preferences.IEclipsePreferences)1 EntryParser (org.eclipse.wst.json.core.internal.schema.catalog.EntryParser)1