use of net.vtst.ow.eclipse.js.closure.preferences.ClosurePreferenceRecord in project ow by vtst.
the class JSIncludesProviderForBuilder method getCacheSettingsFromPreferences.
private JSLibrary.CacheSettings getCacheSettingsFromPreferences() {
ClosurePreferenceRecord record = ClosurePreferenceRecord.getInstance();
JSLibrary.CacheSettings result = new JSLibrary.CacheSettings();
IStore store = new PluginPreferenceStore(OwJsClosurePlugin.getDefault().getPreferenceStore());
try {
result.cacheDepsFiles = record.cacheLibraryDepsFiles.get(store);
} catch (CoreException e) {
result.cacheDepsFiles = record.cacheLibraryDepsFiles.getDefault();
}
try {
result.cacheStrippedFiles = record.cacheLibraryStrippedFiles.get(store);
} catch (CoreException e) {
result.cacheStrippedFiles = record.cacheLibraryStrippedFiles.getDefault();
}
return result;
}
use of net.vtst.ow.eclipse.js.closure.preferences.ClosurePreferenceRecord in project ow by vtst.
the class JSIncludesProviderForLaunch method getCacheSettingsFromPreferences.
private JSLibrary.CacheSettings getCacheSettingsFromPreferences() {
ClosurePreferenceRecord record = ClosurePreferenceRecord.getInstance();
JSLibrary.CacheSettings result = new JSLibrary.CacheSettings();
IStore store = new PluginPreferenceStore(OwJsClosurePlugin.getDefault().getPreferenceStore());
try {
result.cacheDepsFiles = record.cacheLibraryDepsFiles.get(store);
} catch (CoreException e) {
result.cacheDepsFiles = record.cacheLibraryDepsFiles.getDefault();
}
result.cacheStrippedFiles = JSLibrary.CacheMode.DISABLED;
return result;
}
Aggregations