use of net.vtst.eclipse.easy.ui.properties.stores.IStore in project ow by vtst.
the class ClosureLinterLaunchShortcut method adaptLaunchConfiguration.
@Override
protected ILaunchConfiguration adaptLaunchConfiguration(ILaunchConfiguration config, IResource selectedResource, String mode) throws CoreException {
IReadOnlyStore store = new LaunchConfigurationReadOnlyStore(config);
List<IResource> resources = record.inputResources.get(store);
if (isSelectedResource(resources, selectedResource))
return config;
ILaunchConfigurationWorkingCopy configwc = castILaunchConfigurationAsWorkingCopy(config);
IStore storewc = new LaunchConfigurationStore(configwc);
record.inputResources.set(storewc, Collections.singletonList(selectedResource));
return configwc;
}
use of net.vtst.eclipse.easy.ui.properties.stores.IStore 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.eclipse.easy.ui.properties.stores.IStore 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