Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.ui.externaltools/External Tools Base/org/eclipse/ui/externaltools/internal/variables/SystemPathResolver.java')
-rw-r--r--org.eclipse.ui.externaltools/External Tools Base/org/eclipse/ui/externaltools/internal/variables/SystemPathResolver.java15
1 files changed, 8 insertions, 7 deletions
diff --git a/org.eclipse.ui.externaltools/External Tools Base/org/eclipse/ui/externaltools/internal/variables/SystemPathResolver.java b/org.eclipse.ui.externaltools/External Tools Base/org/eclipse/ui/externaltools/internal/variables/SystemPathResolver.java
index dbcfce370..e35286bef 100644
--- a/org.eclipse.ui.externaltools/External Tools Base/org/eclipse/ui/externaltools/internal/variables/SystemPathResolver.java
+++ b/org.eclipse.ui.externaltools/External Tools Base/org/eclipse/ui/externaltools/internal/variables/SystemPathResolver.java
@@ -1,10 +1,10 @@
/*******************************************************************************
- * Copyright (c) 2005, 2009 IBM Corporation and others.
+ * Copyright (c) 2005, 2013 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
- *
+ *
* Contributors:
* IBM Corporation - initial API and implementation
* Wieant (wieant@tasking.com) - Bug 138007
@@ -25,22 +25,23 @@ import org.eclipse.debug.core.DebugPlugin;
import org.eclipse.ui.externaltools.internal.model.ExternalToolsPlugin;
public class SystemPathResolver implements IDynamicVariableResolver {
-
+
/* (non-Javadoc)
* @see org.eclipse.core.variables.IDynamicVariableResolver#resolveValue(org.eclipse.core.variables.IDynamicVariable, java.lang.String)
*/
+ @Override
public String resolveValue(IDynamicVariable variable, String argument) throws CoreException {
if (argument == null) {
throw new CoreException(new Status(IStatus.ERROR, ExternalToolsPlugin.PLUGIN_ID, IExternalToolConstants.ERR_INTERNAL_ERROR, VariableMessages.SystemPathResolver_0, null));
}
- Map map= DebugPlugin.getDefault().getLaunchManager().getNativeEnvironment();
- String path= (String) map.get("PATH"); //$NON-NLS-1$
+ Map<String, String> map = DebugPlugin.getDefault().getLaunchManager().getNativeEnvironment();
+ String path= map.get("PATH"); //$NON-NLS-1$
if (path == null) {
return argument;
}
// On MS Windows the PATHEXT environment variable defines which file extensions
// mark files that are executable (e.g. .EXE, .COM, .BAT)
- String pathext = (String) map.get("PATHEXT"); //$NON-NLS-1$
+ String pathext = map.get("PATHEXT"); //$NON-NLS-1$
StringTokenizer tokenizer= new StringTokenizer(path, File.pathSeparator);
while (tokenizer.hasMoreTokens()) {
String pathElement= tokenizer.nextToken();
@@ -63,5 +64,5 @@ public class SystemPathResolver implements IDynamicVariableResolver {
}
}
return argument;
- }
+ }
}

Back to the top