Search in sources :

Example 1 with LaunchConfigurationStore

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;
}
Also used : IReadOnlyStore(net.vtst.eclipse.easy.ui.properties.stores.IReadOnlyStore) IStore(net.vtst.eclipse.easy.ui.properties.stores.IStore) LaunchConfigurationStore(net.vtst.eclipse.easy.ui.properties.stores.LaunchConfigurationStore) ILaunchConfigurationWorkingCopy(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy) LaunchConfigurationReadOnlyStore(net.vtst.eclipse.easy.ui.properties.stores.LaunchConfigurationReadOnlyStore) IResource(org.eclipse.core.resources.IResource)

Aggregations

IReadOnlyStore (net.vtst.eclipse.easy.ui.properties.stores.IReadOnlyStore)1 IStore (net.vtst.eclipse.easy.ui.properties.stores.IStore)1 LaunchConfigurationReadOnlyStore (net.vtst.eclipse.easy.ui.properties.stores.LaunchConfigurationReadOnlyStore)1 LaunchConfigurationStore (net.vtst.eclipse.easy.ui.properties.stores.LaunchConfigurationStore)1 IResource (org.eclipse.core.resources.IResource)1 ILaunchConfigurationWorkingCopy (org.eclipse.debug.core.ILaunchConfigurationWorkingCopy)1