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:
parent
4f29bbabc0
commit
b093d30afe
1 changed files with 4 additions and 5 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue