1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 22:52:11 +02:00

Fix casting to the correct type for compatibility with older Eclipse

releases
This commit is contained in:
Uwe Stieber 2016-03-09 09:01:45 +01:00
parent 4f29bbabc0
commit b093d30afe

View file

@ -194,11 +194,10 @@ public class ExternalExecutablesManager {
*
* @param l The list of external executables or <code>null</code>.
*/
public static void save(List<Map<String, String>> l) {
ISourceProviderService sourceProviderService =
PlatformUI.getWorkbench().getService(ISourceProviderService.class);
ExternalExecutablesState stateService =
(ExternalExecutablesState) sourceProviderService.getSourceProvider(ExternalExecutablesState.CONFIGURED_STATE);
@SuppressWarnings("cast")
public static void save(List<Map<String, String>> l) {
ISourceProviderService sourceProviderService = (ISourceProviderService) PlatformUI.getWorkbench().getService(ISourceProviderService.class);
ExternalExecutablesState stateService = (ExternalExecutablesState) sourceProviderService.getSourceProvider(ExternalExecutablesState.CONFIGURED_STATE);
IPath stateLocation = UIPlugin.getDefault().getStateLocation();
if (stateLocation != null) {