use of net.vtst.eclipse.easy.ui.properties.stores.LaunchConfigurationStore 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;
}
Aggregations