Package org.eclipse.core.variables

Examples of org.eclipse.core.variables.IStringVariableManager.performStringSubstitution()


  }
 
  public String[] getParsedArguments(IProject project) throws CoreException {
    String extraOptionsString = get(project);
    IStringVariableManager varMgr = VariablesPlugin.getDefault().getStringVariableManager();
    extraOptionsString = varMgr.performStringSubstitution(extraOptionsString, true);
    return DebugPlugin.parseArguments(extraOptionsString);
  }
 
}
View Full Code Here


                + project.getName() + "}");
        } else {
            path = ivySettingsPath;           
        }
        try {
            url = manager.performStringSubstitution(path, false);
        } catch (CoreException e) {
            throw new IvyDEException("Unrecognized variables",
                    "Unrecognized variables in the Ivy settings file " + ivySettingsPath, e);
        }
        if (ivySettingsPath.trim().startsWith("$")) {
View Full Code Here

        IStringVariableManager manager = VariablesPlugin.getDefault().getStringVariableManager();
        try {
            Iterator it = propertyFiles.iterator();
            while (it.hasNext()) {
                String propFile = (String) it.next();
                String resolvedProp = manager.performStringSubstitution(propFile, false);
                resolvedProps.add(resolvedProp);
            }
        } catch (CoreException e) {
            throw new IvyDEException("Unrecognized variables",
                    "Unrecognized variables in the Ivy settings file " + ivySettingsPath, e);
View Full Code Here

            IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot();
           
            if (path.startsWith("${workspace_loc:")) { //$NON-NLS-1$
                IStringVariableManager manager = VariablesPlugin.getDefault().getStringVariableManager();
                try {
                    path = manager.performStringSubstitution(path, false);
                    IContainer[] containers = root.findContainersForLocation(new Path(path));
                    if (containers.length > 0) {
                        res = containers[0];
                    }
                } catch (CoreException e) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.